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!

.



Relevant Pages

  • Re: Here come da judge
    ... that when you host an event of anything near that size you assume some ... private party with people you *know* you can trust. ... those unknown guests. ... I'll take the ultimate responsibility, ...
    (rec.motorcycles.harley)
  • Re: CLiki and ALU Wiki sites massively spammed
    ... It also requires you trust Wiki authors not to make ... making a fake package if your current version has known exploits. ... >> Assuming that the host they're using is safe from compromise, ... If my DNS has been hit by spoofing or the host they use is ...
    (comp.lang.lisp)
  • Re: Mix magazine article and RE20 proximty effect
    ... expectation for a medium such as usenet and they quietly went elsewhere to ... I believe and trust in listening that has been conditioned by objective ... technical ears so as to make them only marginally significant. ...
    (rec.audio.pro)
  • Re: PHP newbie. Storing sensitive data
    ... cbmeeks wrote: ... no matter how reliable and trust-worthy a host is they could ... At some point you have to put your trust in someone. ... the sysadmins at your bank have complete access to all of your account information. ...
    (comp.lang.php)
  • URL Posting Fails in Medium Trust (3rd time posting this w/ zero replies so far)
    ... Apparently HttpWebRequest doesn't work on medium trust. ... hoping I don't need to switch hosts because of this. ...
    (microsoft.public.dotnet.framework.aspnet)