[mapguide-users] Impossible Get Entry Point
'CSharp_MgSiteConnectionToMgGuardDisposable'
in DLL 'MapGuideUnmanagedApi'
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Tue Mar 2 03:23:51 EST 2010
There were some changes to the MapGuide Unmanaged dlls between 2.0 and 2.1.
You need an updated MapGuideDotNetApi:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/MapGuideDotNetApiVersions
Regards, Kenneth Skovhede, GEOGRAF A/S
On 01-03-2010 17:18, carls wrote:
> I have just uninstalled MGOS2.0 and installed MGOS2.1 on Vista.
> It runs very well. I can access MSOS server and view the map with Maestro
> r4586.
>
> But if I intend to access the server with LocalNativeConnection of
> MaestroAPI (The code is as follows), one exception will be thrown.
>
> Impossible Get Entry Point 'CSharp_MgSiteConnectionToMgGuardDisposable' in
> DLL 'MapGuideUnmanagedApi'
>
> If use 'HttpServerConnection', it runs normally.
>
> I serched the forum and found some discussions, but no suitable answers for
> me.
>
> thanks for any helps!
>
> /********************/
> /* Code */
> public ServerConnectionI Connect()
> {
> if (string.IsNullOrEmpty(SessionID))
> {
> if (UseLocalConnection){
> m_Conn = new LocalNativeConnection(LocalConfigFile,
> UserName, Password,
> System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName);
> }
> else
> m_Conn = new HttpServerConnection(new Uri(ServerURI),
> UserName, Password,
> System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName,
> true);
> m_Conn.AutoRestartSession = true;
> SessionID = m_Conn.SessionID;
> }
> else if (m_Conn ==null)
> {
> if (UseLocalConnection)
> m_Conn = new LocalNativeConnection(SessionID);
> else
> m_Conn = new HttpServerConnection(new Uri(ServerURI),
> SessionID, Locale, true);
> m_Conn.AutoRestartSession = true;
> }
> return m_Conn;
> }
>
>
>
> -----
>
> Regards, Carl SHE
>
More information about the mapguide-users
mailing list