[mapguide-dev] problems initializing web tier

alucas at srtec.com alucas at srtec.com
Mon Apr 24 09:43:46 EDT 2006


Well,

I set this variables in order to build Web Extensions:

PROJ_LIB=C:\Documents and Settings\alucas\Mis
documentos\mapguide-1.0.0\Oem\proj-4.4.9\nad

GDAL_DATA=c:\Documents and Settings\alucas\Mis
documentos\mapguide-1.0.0\Oem\gdal-1.3.0\data

I've depends.exe and have been executed selecting MapGuideDotNetApid.dll,
I'm not an expert using this tool but, the only problem I see is with
MSJAVA.dll. I attach screenshot of the result.

>
> OK that looks fine. It is probably still worth it to check with the dll
> dependecy tool -- available at http://www.dependencywalker.com/
>
> Another thing... Can you run "set" form a command line and tell me if
> the environment variables GDAL_DATA and PROJ_LIB are defined and what
> their values are?
>
> Traian
>
>
> -----Original Message-----
> From: alucas at srtec.com [mailto:alucas at srtec.com]
> Sent: Monday, April 24, 2006 8:59 AM
> To: dev at mapguide.osgeo.org
> Cc: dev at mapguide.osgeo.org
> Subject: RE: [mapguide-dev] problems initializing web tier
>
> You're right Traian, but all dll's are builded as debug. I've omitted
> this
> detail because I read this in the pdf. Excuse me this mistake.
> So, all Webtier.sln and Oem.sln have been compiled in debug mode, all
> dll's have 'd' character at the end:
>
> ACEd.dll
> MapGuideDotNetApid.dll
> ...
> I've attached a screeenshot.
>
>>
>> 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
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>


Antonio Lucas

Software Engineer
SER&TEC S.L
Phone: +34 96 395 95 13
www.srtec.com
Valencia (Spain)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dibujo.JPG
Type: image/jpeg
Size: 246045 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide-internals/attachments/20060424/f6db739d/Dibujo.jpe


More information about the Mapguide-internals mailing list