[mapguide-dev] problems initializing web tier

Traian Stanev traian.stanev at autodesk.com
Mon Apr 24 08:16:55 EDT 2006


Could it be that it is looking for the dll that contains
MgInitializeWebTier (or one of its dependencies) and not finding it? Do
you have the dependency tool (depends.exe). Could you run it against
MapGuideDotNetApid.dll and see which dlls it depends on and is not
finding? 

For example, when you add a managed dependency, if that dll has
unmanaged dependencies (like MgCommond.dll in our case), the unmanaged
dependencies will not get automatically copied to the .exe directory and
you will need to do it by hand.

Traian
 

-----Original Message-----
From: alucas at srtec.com [mailto:alucas at srtec.com] 
Sent: Monday, April 24, 2006 7:18 AM
To: dev at mapguide.osgeo.org
Subject: [mapguide-dev] problems initializing web tier

Hello list,

When I try to connect to the server in .NET, I get the exception:

'An unhandled exception of type 'OSGeo.MapGuide.MgFileNotFoundException'
occurred in MapGuideDotNetApid.dll'

I've added as a reference 'MapGuideDotNetApi.dll' in the project.

The sample code to establish my conenction is:

// This is a sample windows form application in C#.
// I've tried with @"c:\pathtofile\webconfig.ini".
// Here, the file is in the same directory that .exe
// I've changed the IP address in the webconfig.ini


// Here, I get the exception
MapGuideApi.MgInitializeWebTier("webconfig.ini");
// I've tried several paths and combinations but
// always get the same exception.

MgUserInformation userInfo = new
MgUserInformation("Administrator","admin");
MgSiteConnection siteConn = new MgSiteConnection();
siteConn.Open(userInfo);


Antonio Lucas

Software Engineer
SER&TEC S.L
Phone: +34 96 395 95 13
www.srtec.com
Valencia (Spain)



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: dev-help at mapguide.osgeo.org







More information about the Mapguide-internals mailing list