[mapguide-users] .NET Fusion
Jackie C. Ng
jumpinjackie at gmail.com
Thu Apr 17 14:42:44 EDT 2008
Is this code that would normally execute in a Task Pane?
- Jackie
Berdel, Brian wrote:
>
> If I try to access a map via .net fusion I always get this error...Code
> works fine in regular viewer. I have heard conflicting reports of
> Fusion and .NET can someone please clarify?
>
>
>
> MgUserInformation userInfo = new MgUserInformation(mgSessionId);
>
> MgSiteConnection siteConnection = new MgSiteConnection();
>
> siteConnection.Open(userInfo);
>
> MgResourceService resourceService =
> siteConnection.CreateService(MgServiceType.ResourceService) as
> MgResourceService;
>
> MgMap map = new MgMap();
>
> map.Open(resourceService, smgMap);
>
> Resource was not found:
> Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//So
> leburyTwp.Map
>
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: OSGeo.MapGuide.MgResourceNotFoundException: Resource
> was not found:
> Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//So
> leburyTwp.Map
>
> Source Error:
>
>
>
> Line 28: MgResourceService resourceService =
> siteConnection.CreateService(MgServiceType.ResourceService) as
> MgResourceService;
>
> Line 29: MgMap map = new MgMap();
>
> Line 30: map.Open(resourceService, smgMap);
>
>
>
> Brian Berdel
>
> McMahon Associates, Inc.
>
> p: 215.283.9444
>
> www.mcmtrans.com
>
>
>
>
>
> Brian Berdel
>
> Applications Development Manager
>
>
>
> McMahon Associates, Inc.
>
> 425 Commerce Drive, Suite 200
>
> Fort Washington, Pennsylvania 19034
>
> p: 215.283.9444
>
> f: 215.283.9858
>
> brian.berdel at mcmtrans.com
>
>
>
> <http://www.mcmtrans.com>
>
> New England | Mid-Atlantic | Florida
>
>
>
>
>
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
-----
http://themapguyde.blogspot.com
http://www.linkedin.com/in/jackieng
--
View this message in context: http://www.nabble.com/.NET-Fusion-tp16722611s16610p16750971.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list