Hi I just downloaded and installed the Evaluation Version of Map Suite Silverlight and I was going through the Quick Start Guide. I was able to work through the example and get the client side layers to work but I am getting a 4001 'SilverlightMapConnector1': AG_E_NETWORK_ERROR when I try to do Server Side Layers. This occurs in the code I downloaded from the Quick Start Guide (C#) and in the example VS2008 C# example project that came with the evaluation. I get this error while debugging in VS2008 and when I publish the web site to IIS 7.
Attached below is my original post that I posted on to the bottom of the Quick Start Guide lcoated here
gis.thinkgeo.com/Support/Dis...fault.aspx
This product looks promising and I would like to see if it would meet our needs but right now I can't really do much with it.
Thanks in advance, Leon
-------------------------------------------------------------------
Hello,
I am following the steps outlines above and I am getting the same error that Ric got above, An unhandled exception ("Unhandled Error in Silverlight Application Code: 4004
Category: ManagedRuntimeError
Message: System.Reflection.TargetInvocationException: An exception occured during the operation, making the result invalid"
HelloWorld.Web is set as the startup project. I am using Silverlight 3. Is there anything else to try and fix this problem.
UPDATE: I FIXED the above problem: Under properties for HelloWorld.Web, on the "Web" tab, I change the "Start Action" from "Sepecfic Page" to "Current page" I will continue on with the step by step instructions
However I still have the error below when I download the already completed example code:
When I download the code above (c#) and try and run it, I get the following error: Line: 437
Error: Sys.InvalidOperationException: ImageError error #4001 in control 'SilverlightMapConnector1': AG_E_NETWORK_ERROR
UPDATE: I completed the first tutorial section and I get the exact same error with the project that I coded along with the Quick Start Guide as I did with the already coded project that I downloaded. I downloaded the C# program example.
Any help would be much appreciate.
UPDATE: Any help on the error below would be appreciated. I am dead in the water right now as far as evaluating your product
Line: 437 Error: Sys.InvalidOperationException: ImageError error #4001 in control 'SilverlightMapConnector1': AG_E_NETWORK_ERROR
I am using Visual Studio 2008 sp1 with silverlight 3 and asp.net 3.51. I can get the client side layers in the tutorial to run fine. I only get this error when I try doing the server side layers
I get this same error with the C# code I downloaded from this page, the example C# project that came with the evaluation, and the code I create while following along with the exampels on this page.
UPDATE: From looking in the Forum, I see this can be caused it the applicaiton can not find the shape files. I have been debugging in Visual Studio 2008. I tried publishing the website but I get the same error (client side shapre layer is fine). Here is the line of code that sets the path
worldLayer = new ShapeFileFeatureLayer(MapPath("~/App_Data/Countries02.shp"));
My Website directory contains APP_Data that is immediately off of the root of the site. APP_Data also contains a cile called Countries02.shp. I got this file from the Evaluations sample form your company. Does relative pathing work? Does it need to be hard coded to the actual windows path?
ShapeFileFeatureLayer