Todd,
Thanks for your guidance, I can run it and when I click button, it found 1 feature, but If I put dlls from 5.0 to \Test\bin\Debug, it throws another exception.
Could not load file or assembly “MapSuiteCore, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 0828af5241fb4207” or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Could you verify this?
Thanks,
James
James, I re-compiled a version against the ThinkGeo 5 libraries. Please see attachment. Todd
Compilation_Against_5_libraries.zip (118 KB)
Todd,
Thanks for your new sample code, I am researching on solution, and progress I will let you know.
Thanks,
James
Todd,
It returns 0 feature when I click the button by using your new application, but it only has assembly files, I think I need to source code that I can debug it, you know I have create a sample code but fail to reproduce the problem, and your sample code couldn’t run as I expected, in order to make this problem resolve quickly, I think the best way is that you make a simple sample, maybe just few lines of code, so don’t need much time, and since I got it to reproduce the problem at my local machine, it will be very soon to fix it.
Thanks,
James
James,
I am really confused by this response. I gave you a sample solution (ffp.sln) with 2 associated projects in a zip file I gave you (SampleApp.zip). You have all the source code, and if you read my responses to you I’ve been telling you where the issue lies. So, if you’re telling me that you don’t have the source code, I’m truly baffled.
Todd,
Sorry about that I think there are some communication problem, from your source code I can’t run it because the exception I mentioned, your next assembly can recreate the problem, but it’s not the source code, I add your next assembly dll still has the same exception, so that I ask you give me the source code which can run in my local machine.
Thanks,
James
James,
That’s what I’m telling you. I uploaded to you the source code over 4 weeks ago. You have everything, and have had everything, you need.
Todd,
I have all thing I want, but as I mentioned it couldn’t be run because the exception, and It seems you also agree so that you re-compiled the assemblies to me, and the assemblies can reproduce the problem but lack of the corresponding code, if you use the same code the compile them, I think you may need to modify a little bit and remove all strong-named sign, to avoid the same exception thrown at my side. If you have more time, you can reduce the code of the sample and drop all useless assemblies, to make a simple sample is best.
Meanwhile I am figuring out the exception and try to modify the code to avoid it.
Thanks,
James
James,
Truly, I’ve gone out of my way to accommodate your requests. I am getting frustrated by what should be a fairly straightforward troubleshooting issue. The only thing you need to do to switch from ThinkGeo 4.0 libraries to 5.0 libraries is to clean the solution before compiling (this will remove license reference issues).
Todd,
Eventually, I have updated your sample code to make it compile successful. First, i remove the resx file because the error is from this file, and also I set currentextent by specific extent instead of reading from resx file, you can see the attached file.
this.fxfWinformMap1.MapExtent = new ThinkGeo.MapSuite.Core.RectangleShape(-70.3125, 70.3125, 752.34375, -523.125);
//this.fxfWinformMap1.MapExtent = ((ThinkGeo.MapSuite.Core.RectangleShape)(resources.GetObject("fxfWinformMap1.MapExtent")));
And I have use the latest version of dll 5.0.130.0, it has the same result with 4.0, so please get it and try it again.
Thanks,
James
SampleApp1.zip (105 KB)