Remote Virtual Directory

Discussion in 'ASP .Net Security' started by Coder Coder, Nov 10, 2003.

  1. Coder Coder

    Coder Coder Guest

    HI,
    I have a virtual directory on one machine pointing to a virtual
    directory on another machine on the same intranet.

    I get the following error -->


    Description: The application attempted to perform an operation not
    allowed by the security policy. To grant this application the required
    permission please contact your system administrator or change the
    application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the
    permission of type System.Web.AspNetHostingPermission, System,
    Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    failed.

    Source Error:

    An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of
    the exception can be identified using the exception stack trace below.

    Stack Trace:


    [SecurityException: Request for the permission of type
    System.Web.AspNetHostingPermission, System, Version=1.0.5000.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
    System.Type.GetType(String typeName, Boolean throwOnError) +0
    System.Web.Configuration.HandlerBase.GetAndRemoveTypeAttributeInternal(XmlNode
    node, String attrib, Boolean fRequired, Type& val) +52


    --------------------------------------------------------------------------------

    I tried to set the securityPolicy and trust elements in the web.config
    but no luck.

    - Thanks
     
    Coder Coder, Nov 10, 2003
    #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. =?Utf-8?B?cmZvbnRhaW5l?=

    logon failure to a remote share with a virtual directory

    =?Utf-8?B?cmZvbnRhaW5l?=, Sep 30, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,760
    =?Utf-8?B?cmZvbnRhaW5l?=
    Sep 30, 2004
  2. =?Utf-8?B?UmFr?=
    Replies:
    1
    Views:
    1,836
    Steven Cheng[MSFT]
    May 19, 2006
  3. Replies:
    1
    Views:
    332
    =?Utf-8?B?TGVvbiBNYXluZQ==?=
    Jun 22, 2006
  4. =?Utf-8?B?SmVmZiBCZWVt?=

    physical path to virtual path under virtual directory

    =?Utf-8?B?SmVmZiBCZWVt?=, Aug 1, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    1,046
    Eliyahu Goldin
    Aug 1, 2007
  5. Lamberti Fabrizio

    Using Virtual Directory to remote folder

    Lamberti Fabrizio, Mar 7, 2005, in forum: ASP General
    Replies:
    3
    Views:
    147
    Jeff Cochran
    Mar 7, 2005
Loading...

Share This Page