Hi:<br>According to my experience, you can check if you can run the offical sample : <a href="http://download.osgeo.org/mapguide/releases/1.1.0/samples/dotnetviewersample-1.1.zip">dotnetviewersample-1.1.zip</a> referred to
<a href="http://mapguide.osgeo.org/files/mapguide/docs/InstallMapGuideOpenSourceSamples.pdf" target="_blank">Installing the MapGuide Sample Data and Application</a>.<br><br>If it goes fine, I think you could develop your AP easily.
<br><br>Patrick<br><br><br><div><span class="gmail_quote">On 7/2/07, <b class="gmail_sendername">Johannes Elsinghorst</b> <<a href="mailto:JohannesElsinghorst@gmx.net">JohannesElsinghorst@gmx.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>im trying to get into he developement of mapguide-webapps using VS2005<br>and <a href="http://asp.net">asp.net</a>.<br>I set up a new Webproject and added a reference to MapGuideDotNetApi.dll<br>and also copied
<br>all the dlls from the dotnetviewer into my webapps bin folder.<br>In the load-event of my default.aspx i added the following code:<br><br>protected void Page_Load(object sender, EventArgs e)<br> {<br> try
<br> {<br><br>MapGuideApi.MgInitializeWebTier(@"C:/Programme/MapGuideOpenSource/WebServerExtensions/www/webconfig.ini");<br> }<br> catch (Exception ex)<br> {<br>
System.Diagnostics.Debug.WriteLine(ex.Message + "\n" +<br>ex.StackTrace);<br> }<br><br> MgUserInformation userInfo = new<br>MgUserInformation("Anonymous", "");<br> MgSite site = new MgSite();
<br><br> site.Open(userInfo);<br><br> sessionId = site.CreateSession();<br> int debug=0;<br> }<br><br>MgInitializeWebTier-Method throws this Exception:<br><br>[DllNotFoundException: Unable to load DLL 'MapGuideUnmanagedApi': Das angegebene Modul wurde nicht gefunden. (Exception from HRESULT: 0x8007007E)]
<br> SWIGExceptionHelper.SWIGRegisterCustomExceptionCallbacks_MapGuideApi(SWIGCustomExceptionDelegate customExceptionDelegate) +0<br> SWIGExceptionHelper..cctor() +70<br><br>[TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.]
<br> SWIGExceptionHelper..ctor() +0<br> MapGuideApiPINVOKE..cctor() +60<br><br>[TypeInitializationException: The type initializer for 'MapGuideApiPINVOKE' threw an exception.]<br> MapGuideApiPINVOKE.new_MgUserInformation__SWIG_2
(String jarg1, String jarg2) +0<br> OSGeo.MapGuide.MgUserInformation..ctor(String userName, String password) +34<br> MapGuideTest1._Default.Page_Load(Object sender, EventArgs e) in C:\Dokumente und Einstellungen\JMan\Eigene Dateien\Visual Studio 2005\Projects\MapGuideTest1\MapGuideTest1\Default.aspx.cs:32
<br> System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15<br> System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34<br> System.Web.UI.Control.OnLoad
(EventArgs e) +99<br> System.Web.UI.Control.LoadRecursive() +47<br> System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +106<br><br>Has anybody an idea what to do about it?
<br><br>thanks, Johannes<br><br><br>_______________________________________________<br>mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">
http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br></blockquote></div><br>