[mapguide-dev] problems initializing web tier

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


One thing bothers me here. The exception message says it is attempting
to load MapGuideDotNetApid.dll, which is a debug build of the API dll
(notice the d). The debug dll expects to find other debug dlls like
MgCommond.dll and ACEd.dll. The list you give me has no 'd', which leads
me to believe these are release dlls. You need either all debug or all
release builds of the dlls.

Traian

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

Hi Traian,

I was thinking this, for this reason, I was put all dll's generated with
WebTier.sln in the same directory that exe file. So, the directory
contains:

ACE.dll
All Api dll's : MapGuideJavaApi.dll ...
MapguideUnmanagedApi.dll
MgCommon.dll
MgCoordinateSystem.dll
...
I don't know nothing about dependency tool. I never have used it. I will
search in the net.

>
> 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
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: dev-help at mapguide.osgeo.org
>
>


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