[mapserver-users] Trouble with a Share Point Portal.

Tamas Szekeres szekerest at gmail.com
Thu Jul 17 08:43:10 EDT 2008


2008/7/17 Pietro Giannini <pgiannini at bytewise.it>:
> Yes.
>
> The strange is that another application, in a non SharePoint IIS, run well
> with the precompiled binaries shipping in the ms4w package.
> A Share Point portal (this is Share Point Services 3.0) however has a more
> restrictive policy for the customized assemblies to deploy in, and an
> assembly must to be registrered in the Global Assembly Cach and described
> as "safe control" in the web.config of the site collection (the virtual
> directory of site).
> This is the reason I must to recompile the entire project: to have a
> mapscript_csharp.dll strong-named to add it to GAC.
>

I'm not sure how the sharepoint process and security model is looking
like. But what you've described shows as if the dependent unmanaged
dll-s (eg. mapscript.dll) couldn't be accessed at run-time. You can
use the dependency walker to inspect how the dll-s are linked to each
other and use SysInternals filemon to see which dll cannot be accessed
at run-time. You should find out the name of the host process running
your application (eg. aspnet_wp.exe or w3wp.exe) and set up a filter
to it in filemon. You might anyway have to try copying all of the
dependent dll-s into the same directory where the host process is
running.
As far as I remember as of the 5-0 version the mapscript_csharp.dll is
'strong-named' by default.


Best regards,

Tamas


> any idea?
>
> many thanks
> .................................. p
>
>
> --
> Pietro Giannini
> Bytewise srl - Area GIS
> 41°50'38.58"N 12°29'13.39"E
>
>
>
> On Gio, Luglio 17, 2008 14:04, Venkat Rao Tammineni wrote:
>> Hi,
>>
>>   Have you replaced all dll(like libmap.dll etc..) into bin folder?
>>
>> Thanks and Regard
>> Venkat.
>>
>> -----Original Message-----
>> From: Pietro Giannini [mailto:pgiannini at bytewise.it]
>> Sent: Thursday, July 17, 2008 5:25 PM
>> To: mapserver-users at lists.osgeo.org
>> Cc: Venkat Rao Tammineni
>> Subject: RE: [mapserver-users] Trouble with a Share Point Portal.
>>
>> Venkat,
>> this is the first I tried, don't work...
>>
>> In Visual Studio I can reference only the mapscript_csharp.dll, how can I
>> reference a non-assembly .dll?
>>
>> regards
>> ........................................... pg
>>
>>
>> --
>> Pietro Giannini
>> Bytewise srl - Area GIS
>> 41°50'38.58"N 12°29'13.39"E
>>
>>
>>
>> On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote:
>>> Hi,
>>>
>>>    Take latest version of mapserver (Ms4W 2.7.7) and  update all the
>>> dlls
>>> form the cgi-bin to Visual Studio  add the reference from visual
>>> studio.It
>>> will work.There is only problem with version.Because I did the same.I
>>> think
>>> it will help you.
>>>
>>> Thanks and Regards
>>> Venkat.
>>>
>>> -----Original Message-----
>>> From: mapserver-users-bounces at lists.osgeo.org
>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro
>>> Giannini
>>> Sent: Wednesday, July 16, 2008 10:05 PM
>>> To: mapserver-users at lists.osgeo.org
>>> Subject: [mapserver-users] Trouble with a Share Point Portal.
>>>
>>> Hi all,
>>>
>>> I'm in serious trouble with the ambitious project of a web mapping app
>>> in
>>> a Windows SharePoint Services 3.0 environment; in detail, the
>>> application
>>> is embedded in a web part.
>>> Obviously, I'm developing in c#, that is not my preferred...
>>>
>>> I've recompiled myself mapserver and the mapscript_csharp assembly. In a
>>> debug environment all works fine but when I deploy the web part on the
>>> server I allways receive the same error:
>>>
>>> - Exception of type: System.TypeInitializationException;
>>> - with the message: "The type initializer for
>>> 'OSGeo.MapServer.mapscript'
>>> threw an exception";
>>> - the source: mapscript_csharp;
>>> - the InnerException.StackTrace is:
>>>  -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get()
>>>  -- at OSGeo.MapServer.mapscript..cctor()
>>>
>>> If anyone has experienced the same or a similar problem, or has more
>>> experience than me, can please help me?
>>>
>>> thanks in advance.
>>>
>>> ..........................................pg
>>>
>>> --
>>> Pietro Giannini
>>> Bytewise srl - Area GIS
>>> 41°50'38.58"N 12°29'13.39"E
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>
>>
>>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list