Do you have more details about this error message? I suspect it might be a DllNotFoundException which would indicate that one or more dll-s (mostly the unmanaged part) are not available to load at run-time.<br><br><br>Best regards,<br>
<br>Tamas<br><br><br><br><div class="gmail_quote">2011/2/20 Mustafa646 <span dir="ltr">&lt;<a href="mailto:noorcs22@gmail.com">noorcs22@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I am using C# MapScript in ASP.Net Application.<br>
I am getting an exception at this line:<br>
<br>
mapObj map = new<br>
mapObj(System.Configuration.ConfigurationManager.AppSettings[&quot;mapFilePath&quot;].ToString());<br>
<br>
Exception:<br>
<br>
The type initializer for &#39;OSGeo.MapServer.mapscriptPINVOKE&#39; threw an<br>
exception.<br>
<br>
Can anybody have an idea about this, what is wrong ?<br>
<br>
this is code of a sample application from:<br>
<br>
<a href="http://www.paolocorti.net/2006/07/26/implementing-the-c-mapscript-code/" target="_blank">http://www.paolocorti.net/2006/07/26/implementing-the-c-mapscript-code/</a><br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6045646.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6045646.html</a><br>

Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>