[mapguide-users] Impossible Get Entry Point
'CSharp_MgSiteConnectionToMgGuardDisposable' in DLL 'MapGuideUnmanagedApi'
carls
carlshe at 163.com
Mon Mar 1 11:18:27 EST 2010
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
--
View this message in context: http://n2.nabble.com/Impossible-Get-Entry-Point-CSharp-MgSiteConnectionToMgGuardDisposable-in-DLL-MapGuideUnmanagedApi-tp4655088p4655088.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list