Hi Guys,
The new features available from the methods in the SqlTypesGeometryHelper class are very convenient. Recently, however, when a feature I was constructing was reported not Valid I tried to use the MakeValid method. It always fails with the same error message: "String cannot have zero length."
I have attached a sample project.
Thanks!
Steve
MakeValidDemo.zip (15.4 KB)
Problem with MakeValid
Hi Steve,
Thanks for contacting us. The reason you always got this error because the Microsoft.SqlServer.Types.dll can’t be found in your GAC nor application output folder. The quick fix is to copy the “C:\Program Files (x86)\ThinkGeo\Map Suite Desktop Full Edition 7.0\Developer Reference\Desktop Edition\Microsoft.SqlServer.Types.dll” to your application output folder.
Please feel free to let us know if you have any question.
Thanks,
Jack
Jack
Jack/Lee,
Thanks very much for your prompt reply. I think a more thorough fix is to add a reference to Microsoft.SqlServer.Types.dll to the project and set ‘Copy Local’ to True. If possible, some time in the future it would be helpful if the error message could indicate that the problem is due to a missing dll.
Thanks guys!
Steve
Thanks Steve,
We will add some more descriptive message for that kind of error. This has been logged in our tracking system, product team will look into it.
Thanks,
Jack