<div dir="ltr"><div>Hi,</div>Only the first call to <span style="font-family:Verdana;font-size:12px">MgInitializeWebTier made inside the process that load MapGuideAPI.dll actually read webconfig.ini file and initialize the API. All the calls made after the first are ingnored.</span><div><span style="font-family:Verdana;font-size:12px">If the process where your app runs, is shared with 2.5 the first one that inizialize the API rules..</span></div><div><span style="font-family:Verdana;font-size:12px"><br></span></div><div><span style="font-family:Verdana;font-size:12px">Riccardo</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-19 14:07 GMT+01:00 Emma Schmidt <span dir="ltr"><<a href="mailto:emma.25@gmx.net" target="_blank">emma.25@gmx.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>
<div><a name="14ba1f39dc26f414__GoBack"></a>Hi, its me again :-)</div>
<div> </div>
<div>I've installed the MG 2.6 by now (64 bit, mapviewernet (.NET)). It’s a side by side installation with 2.5. It works fine as long as I’m not using the API.</div>
<div> </div>
<div>I can’t create a new Session with the MG2.6 with Code like that</div>
<div> </div>
<div> Dim webConfig As String = "C:\Programme\OSGeo\MapGuide26\Web\www\webconfig.ini"</div>
<div> MapGuideApi.MgInitializeWebTier(webConfig)</div>
<div> </div>
<div> Dim site As New MgSite</div>
<div> </div>
<div> site.Open(New MgUserInformation("Anonymous", ""))</div>
<div> </div>
<div> sessionId = site.CreateSession</div>
<div> Session("var_sessionId") = sessionId</div>
<div> </div>
<div> </div>
<div>The Problem is that the “MapGuideApi.MgInitializeWebTier(webConfig)” goes on the wrong “webconfig.ini”. It doesn’t matter if the sting is empty or wrong. (MapGuideApi.MgInitializeWebTier(“whatever”))</div>
<div> </div>
<div>I’ve got the feeling that it’s not using the sting inside the initialization. How can I work with the sting inside the initialization?</div>
<div> </div>
<div>Thanks helping :-)</div>
</div></div></div>
<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" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><font face="courier new, monospace">Riccardo Pucci</font></div><div><span style="color:rgb(0,0,0);background-color:rgb(245,245,245)"><font face="courier new, monospace">Geoweb Italia S.r.l.</font></span><br></div></div></div>
</div>