Hosting ASP.NET outside of IIS with medium trust ?
- From: ilkka@xxxxxxxxxxxxx
- Date: Sun, 15 Jul 2007 16:14:07 -0700
Hi !
SimpleWorkerRequest class can be used to host asp.net pages outside of
IIS. However when a web application is configured to run as medium
trust (or lower), you will get an exception
"System.Security.SecurityException: Request for the permission of type
'System.Security.Permissions.SecurityPermission......' failed." when
calling HttpRuntime.ProcessRequest (or trying to parse the page using
PageParser.GetCompiledPageInstance).
The reason for this is that both constructors for the
SimpleWorkerRequest perform a security demand that requires
UnmanagedCode permission. This permission is not normally granted in
any partial trust environment.
How can I host (if possible) asp.net in medium trust environment? I
suppose I'd have to inherit from the HttpWorkerRequest class and do
some stuff. Any help would be appreciated.
Thanks!
.
- Prev by Date: Re: Design question
- Next by Date: Re: web.config question 2.0
- Previous by thread: Server Application Unavailable on hosted server, not locally though
- Next by thread: not working: onmouseover="this.style.font-weight='bold';"
- Index(es):
Relevant Pages
|