[mapguide-users] security exception webconfig.ini
william MGOS
mgoslist at gmail.com
Thu Nov 1 07:43:55 EDT 2007
Hi , the user identity in IIS under directory sercurity is IUSR_.
the ex.message is: System.Security.Permissions.SecurityPermission
that's really all I have at this point.
The sample application from OSGEO is working, the only difference is
that I have put my app in visual studio, cause I'm trying to setup a
clean development environment...
On Nov 1, 2007 12:38 PM, Kenneth, GEOGRAF A/S <ks at geograf.dk> wrote:
> What is the exception message?
>
> Perhaps the application is not trusted?
>
> Did you modify the user that the application runs under? (in IIS).
>
>
> Regards, Kenneth, GEOGRAF A/S
>
>
>
> william MGOS skrev:
> hi,
>
> I have already tried that, all those users have full persmissions
> on
> the folder / files.
>
> what else could be wronh?
>
>
> On Nov 1, 2007 12:19 PM,
> Kenneth, GEOGRAF A/S <ks at geograf.dk> wrote:
>
> That looks like the caller (IUSR or NETWORK SERVICE) is not allowed to
> open
> the file.
> Try right clicking the file and adjust permissions for the
> "Everyone"
> user, start with "Full control".
> If it works, remove it again and
> ajust permissions for either
> IUSR_<machinename> or
> NETWORK_SERVICE.
>
> Regards, Kenneth, GEOGRAF A/S
>
>
>
> william MGOS skrev:
>
>
> Hi,
>
> i created an IIS webapplication and created a page. In the load
> event
> of the page I put this. The file exists, so mgInitializeWebTier
> is
> called. Now it throws an exception. What could this
> be?
>
> System.Security.SecurityException:
> System.Security.Permissions.SecurityPermission
>
> at MapGuideApi.MgInitializeWebTier(String configFile)
>
>
> string filename;
>
>
> filename = Server.MapPath("webconfig.ini");
>
> try{
>
> if
> (File.Exists(filename))
> {
> MapGuideApi.MgInitializeWebTier(filename);
>
> }
> }catch(Exception
> ex)
> {
>
> }
> _______________________________________________
> mapguide-users
> mailing
> list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> _______________________________________________
> mapguide-users mailing
> list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> _______________________________________________
> mapguide-users mailing
> list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
More information about the mapguide-users
mailing list