Hosting ASP.NET outside of IIS with medium trust ?

Discussion in 'ASP .Net' started by ilkka@webfellows.fi, Jul 16, 2007.

  1. Guest

    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 16, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Hatcher

    Medium Level Trust and Reflection

    Paul Hatcher, Feb 25, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    508
    Paul Hatcher
    Feb 25, 2005
  2. Andy
    Replies:
    1
    Views:
    367
  3. Jordan M.
    Replies:
    1
    Views:
    535
    Mark Fitzpatrick
    Jun 23, 2007
  4. Mr.Cyber
    Replies:
    3
    Views:
    350
    Nicole Calinoiu
    Dec 16, 2005
  5. Linda
    Replies:
    1
    Views:
    568
    Dominick Baier
    Aug 31, 2006
Loading...

Share This Page