<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Odd, the only thing I can think of is that you are using another App
Pool in IIS.<br>
<br>
Have you tried calling any other methods, in order to determine if the
problem is related to InitializeWebTier, or the load/use of the
MapGuide package?<br>
<br>
The .Net dll calls a bunch of native Dll's (all those found in the
"Bin" folder), <br>
the problem may be related to loading one of those, rather than a
problem with the WebConfig.ini.<br>
<br>
You can try System.IO.File.Open(Server.MapPath("webConfig.ini")) to
determine if you have the correct permissions.<br>
If you can open the file, the problem is related to the native calls,
and that can be a bit harder to debug. <br>
You should copy the files into you own folder, and not reference the
existing path (due to IIS security restrictions).<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
william MGOS skrev:
<blockquote
cite="mid:1539398d0711010443v59f09efax7481ab041dac5134@mail.gmail.com"
type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:ks@geograf.dk"><ks@geograf.dk></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:ks@geograf.dk"><ks@geograf.dk></a> 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
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
_______________________________________________
mapguide-users mailing
list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
_______________________________________________
mapguide-users mailing
list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>