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

Pietro Giannini pgiannini at bytewise.it
Thu Jul 17 07:54:40 EDT 2008


Antti,
I downloaded the mapserver buildkit from
http://download.osgeo.org/buildkit/mapserver-buildkit-ms502-020508.zip.

The error happens when I try to invoke an instance of mapserver, e.g.
string v += OSGeo.MapServer.mapscript.msGetVersion();

I used the preconfigured SWIG shipped with it, the compiler is MS Visual
Studio 2005.
Maybe could you provide me a link or instruction for a better, updated
buildkit?

many thanks
...............................p

-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E

On Gio, Luglio 17, 2008 03:00, Roppola, Antti - BRS wrote:
> Hi all,
>
> For Java bindings (about a year ago), we found that using a current
> version of SWIG to re-build the pre-canned SWIG interface gave a
> better result. Before this we has issues with SWIG doing things like
> flattening structs.
>
> We identified and solved the problem by intercepting and inspecting
> the map objects that threw the exception to ensure they contained
> what the API said they ought to contain.
>
> Cheers,
>
> Antti
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas
> Szekeres
> Sent: Thursday, 17 July 2008 5:46 AM
> To: Pietro Giannini
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Trouble with a Share Point Portal.
>
> Pietro,
>
> Could you provide a code sample to investigate the problem in more detail?
>
> Best regards,
>
> Tamas
>
> 2008/7/16 Pietro Giannini <pgiannini at bytewise.it>:
>> 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
>
> ------IMPORTANT - This message has been issued by The Department of
> Agriculture, Fisheries and Forestry (DAFF). The information transmitted is
> for the use of the intended recipient only and may contain sensitive
> and/or legally privileged material. It is your responsibility to check any
> attachments for viruses and defects before opening or sending them on.
>
> Any reproduction, publication, communication, re-transmission, disclosure,
> dissemination or other use of the information contained in this e-mail by
> persons or entities other than the intended recipient is prohibited. The
> taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. If you have
> received this e-mail in error please notify the sender and delete all
> copies of this transmission together with any attachments. If you have
> received this e-mail as part of a valid mailing list and no longer want to
> receive a message such as this one advise the sender by return e-mail
> accordingly. Only e-mail correspondence which includes this footer, has
> been authorised by DAFF
> ------
>






More information about the mapserver-users mailing list