469,926 Members | 2,517 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Hosting ASP.NET outside of IIS with medium trust ?

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!

Jul 15 '07 #1
0 1307

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michael Howes | last post: by
reply views Thread by rodchar | last post: by
2 posts views Thread by Carl Gilbert | last post: by
4 posts views Thread by =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post: by
5 posts views Thread by Michael Howes | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.