Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

SEHException in sandbox

$
0
0

I'm currently trying to create a custom data provider for virtual entities. My external data source that I'm connected to has spatial data, where the plugin converts these spatial x and y coordinates to latitude and longitude.

But "all the sudden" I'm getting this error from that very same function that converts the values:

System.Runtime.InteropServices.SEHException: External component has thrown an exception.

Usually if something is null, then it simply states that. I've checked the values and they seem to be correct. 

I've changed out the variables but the line that seems to fail looks like:

var v = (6399593.62575867 / Math.Pow(1 + (0.00673949674233346 * Math.Pow(Math.Cos(1.03205401949991), 2)), 0.5)) * 0.9996;

This is a part of a bigger equation to convert spatial coordinates to latitude and longitude. In a simple console application it works like it should. 

So this leaves me thinking; are the any limits in the sandbox of an online Dynamics 365 v9?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images