<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Not entirely familiar with fusion, but could it be that Fusion uses the
MapID as the mapname and not the name of the MapDefinition?<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Berdel, Brian skrev:
<blockquote
cite="mid:C1C7B6846221DF4A903A1433293BBD4304E88ADA@fwex02.home.mcmtrans.com"
type="cite">
<pre wrap="">Hi Jackie,
I am actually passing it via a session variable from another Sub. It is
the correct value. And like I said the code does work in the regular
Ajax viewer.
String smgMap = (Session["smgMap"]).ToString();
Brian
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] On Behalf Of Jackie C Ng
Sent: Wednesday, April 16, 2008 8:45 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
Subject: Re: [mapguide-users] .NET Fusion
Where are you getting that value of the variable smgMap ?
- Jackie
Berdel, Brian wrote:
</pre>
<blockquote type="cite">
<pre wrap="">If I try to access a map via .net fusion I always get this
</pre>
</blockquote>
<pre wrap=""><!---->error...Code
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
</blockquote>
<pre wrap=""><!---->Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//So
</pre>
<blockquote type="cite">
<pre wrap="">leburyTwp.Map
Description: An unhandled exception occurred during the execution of
</pre>
</blockquote>
<pre wrap=""><!---->the
</pre>
<blockquote type="cite">
<pre wrap="">current web request. Please review the stack trace for more
</pre>
</blockquote>
<pre wrap=""><!---->information
</pre>
<blockquote type="cite">
<pre wrap="">about the error and where it originated in the code.
Exception Details: OSGeo.MapGuide.MgResourceNotFoundException:
</pre>
</blockquote>
<pre wrap=""><!---->Resource
</pre>
<blockquote type="cite">
<pre wrap="">was not found:
</pre>
</blockquote>
<pre wrap=""><!---->Session:ba7530b4-ffff-ffff-800a-00142260e7d1_en_7F0000010AFC0AFB0AFA//So
</pre>
<blockquote type="cite">
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="http://www.mcmtrans.com">www.mcmtrans.com</a>
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
<a class="moz-txt-link-abbreviated" href="mailto:brian.berdel@mcmtrans.com">brian.berdel@mcmtrans.com</a>
<a class="moz-txt-link-rfc2396E" href="http://www.mcmtrans.com"><http://www.mcmtrans.com></a>
New England | Mid-Atlantic | Florida
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>