UPDATE Re: C# Mapscript ASP.NET Deployment Problem
Tamas Szekeres
szekerest at GMAIL.COM
Fri Nov 30 10:41:00 PST 2007
Bruno,
I guess your deployment configuration would require to add the following line:
[assembly:AllowPartiallyTrustedCallers]
in mapscript\csharp\config\AssemblyInfo.cs
You can add this row and recompile the csharp bindings to see whether
this fix solves the problem or not.
However I've never run into this problem. Could you describe the steps
in a ticket to reproduce this behaviour?
http://trac.osgeo.org/mapserver/newticket
Best regards,
Tamas
2007/11/30, Bruno Gendron <bruno_gendron at yahoo.com>:
> Hi Tamas,
>
> First, sorry for not answering your message sooner, I've been very busy
> since last Sunday trying to understand what's going on.
>
> To make a short story, our ASP.NET 2.0 webapp is now deployed on a shared
> server. We are using MS4W-2.2.6, with all dependencies. Right now, the web
> page that uses C#Mapscript does not load because of the following security
> exception:
>
> System.Security.SecurityException: That assembly does not allow partially
> trusted callers.
>
> I suspect the problem I was getting last week was related to the same error.
>
> I was hoping to get around this problem by re-compiling Mapserver with fewer
> dependencies.
>
> So, I've downloaded Howard Butler's Build Kit (version 4.8), and I managed
> to get it to compile OK, but no manifest is created with mapscript.dll
> (manifests are only created with mapserv.exe and other EXEs).
>
> I also tried the default build kit nmake.opts file with other versions of
> Mapserver (4.10 and 5.0), but in these cases, there is an error when
> building csharp: something like "a syntax error occurred in input #1". So,
> I'm unable to verify if a manifest will be created with the mapscript DLL.
>
> Any ideas?
>
> Yours,
>
> --
> Bruno
>
> On Sun, 25 Nov 2007 00:40:28 +0100, Tamas Szekeres <szekerest at GMAIL.COM> wrote:
>
> >I should also ask you about the mapserver version, which dependencies
> >are compiled in, and the actual use case of your application that
> >produce the problem with special regards of the usage of the mapscript
> >objects.
> >
> >Best regards,
> >
> >Tamas
>
>
More information about the MapServer-users
mailing list