TargetInvocationException occurred in mscorlib.dll but was not handled in user code when using DbGeometry

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



TargetInvocationException occurred in mscorlib.dll but was not handled in user code when using DbGeometry



I've been getting this error when trying to open up one of my web pages. The code behind throws a TargetInvocationException on the following code:


public DbGeometry DynamicGeo

get

if (String.IsNullOrEmpty(WKT))
return null;
else
return DbGeometry.FromText(WKT, 4326);




Any ideas as to wy or how to fix this would be much appreciated!





Why the <sql> tag?
– jarlh
Aug 10 at 14:38





Been having sql issues with the code and thought my tinkering my have made something unstable. Mostly just trying to cover all my bases since I'm not 100% sure where the issue is originating.
– mightynifty
Aug 10 at 14:42









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard