ASP.NET permission problems from a network share

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASP.NET permission problems from a network share

    Hi there,

    I have a new win 2003 web server and having troubles setting up .NET. Im getting the following error from my applications:

    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.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

    I have done the following;

    1. Created a new domain user for asp.net, updated the machine.config file to use this user.

    2. Configured the appropriate permissions as detailed in the Table 1 here: [url]http://msdn.microsoft.com/webservices/building/security/default.aspx?pull=/library/en-us/dnnetsec/html/SecNetHT01.asp[/url]

    3. Read the info from here: [url]http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx[/url] and tried setting the LocalIntranet_Zone Permission Set to FullTrust (just to see if it would resolve the problem - but it did not)

    The websites are located on a network share (accessed by \\filer\home\websitename\)

    The database server is on a separate win 2003 domain controller

    thanks in advance for any help.


    Matt Calhoon Guest

  2. Similar Questions and Discussions

    1. Running ASP.NET app off network share
      I'm using IIS 6.0 to try to run an ASP.NET application the files for which live on a shared folder on a machine which also happens to be on a...
    2. Writing to a network share
      I posted this message in dotnet.framework.security, and was told to repost it her Alright, I've been trying to figure out the solution to this...
    3. IIS settings + Dot Net + Network share
      Hi, Good Morning! guys. I am developing a DOT NEt application, using windows 2000 Professional, Dot net FrameWork 1.1. In my localhost Setting on...
    4. share internet in small network HELP?
      First excuse me if make mistake in English still Learn Pierre Got 3 computers, A, B, C, connect together on a router R. A) Windows XP HOME,...
    5. Share files on network
      I have just installed a router between two computers. The main computer is running XP Pro and the other is running 2K pro. Both computers are able...
  3. #2

    Default Re: ASP.NET permission problems from a network share

    I asked a similar question awhile ago, and got this response.

    [url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=On3BzhGLEHA.1340%40TK2MSFTNGP12.phx.gbl& rnum=2&prev=/groups%3Fq%3Draterus%2Biis%2Bnetwork%26hl%3Den%26l r%3D%26ie%3DUTF-8%26selm%3DOn3BzhGLEHA.1340%2540TK2MSFTNGP12.phx.g bl%26rnum%3D2[/url]

    I would suggest running the websites locally on the webserver and see if that fixes the problem. Storing the websites on a network folder like that can introduce a ton of issues, and I would suggest not going that route if possible.

    Another possibility if you have to keep the website updated on this share is to frequently sync this share with the wwwroot on the IIS server. You could then update the share with changes, and it will be copied over to IIS.

    Hope any of this helps,
    --Michael

    "Matt Calhoon" <matt@community.nospam> wrote in message news:4E0CC782-041F-482E-B195-E52D1A6C1CE0@microsoft.com...
    > Hi there,
    >
    > I have a new win 2003 web server and having troubles setting up .NET. Im getting the following error from my applications:
    >
    > 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.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
    >
    > I have done the following;
    >
    > 1. Created a new domain user for asp.net, updated the machine.config file to use this user.
    >
    > 2. Configured the appropriate permissions as detailed in the Table 1 here: [url]http://msdn.microsoft.com/webservices/building/security/default.aspx?pull=/library/en-us/dnnetsec/html/SecNetHT01.asp[/url]
    >
    > 3. Read the info from here: [url]http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx[/url] and tried setting the LocalIntranet_Zone Permission Set to FullTrust (just to see if it would resolve the problem - but it did not)
    >
    > The websites are located on a network share (accessed by \\filer\home\websitename\)
    >
    > The database server is on a separate win 2003 domain controller
    >
    > thanks in advance for any help.
    >
    >
    Raterus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139