Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hosting ASP.NET outside of IIS with medium trust ?

Reply
Thread Tools

Hosting ASP.NET outside of IIS with medium trust ?

 
 
ilkka@webfellows.fi
Guest
Posts: n/a
 
      07-15-2007
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!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with pix inside->outside + dmz->outside + inside->outside->dmz Jack Cisco 0 09-19-2007 01:57 AM
Full trust and medium trust in .net and websites Linda ASP .Net Security 1 08-31-2006 05:16 AM
Does WSE 2.0 work with Medium trust or stronger? Michael Howes ASP .Net 0 01-26-2006 12:16 AM
Hosting, ASP.NET, medium trust level, metafile - Problem!!! Mr.Cyber ASP .Net Security 3 12-16-2005 12:39 PM
Medium Level Trust and Reflection Paul Hatcher ASP .Net 0 02-25-2005 02:12 PM



Advertisments