Re: Problem running local asp.net app with web site on network share

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 04/23/04


Date: Fri, 23 Apr 2004 08:19:32 GMT

Hi JR,

I have performed some tests on my side. I can also reproduce this error
message.

Actually, the cause for the error message is in Windows XP, ASP.NET
application run with the work process aspnet_wp.exe, which by default use
the local "ASPNET" account. Since it is only a local account, we can't add
it to the UNC folder. This will cause the error message.

To trouble-shoot this error, we can try the following methods:

Method 1:
----------

We can set the account for aspnet_wp.exe to local system, and then add the
computer as one account to the UNC folder.

1. Locate the "machine.config" file.

2. Make a backup of this file.

3. Locate the following in this config file:

<processModel ... userName="machine" password="AutoGenerate"... >

4. Change "machine" to "SYSTEM".

5. Add the computer as one account to the UNC folder with appropriate
permission (or just "Full Control" permission).

Note: To add one computer as one account, make sure to check "Computers"
for "Object Type" when adding accounts.

Method 2:
----------

We can also specify one domain user account for aspnet_wp.exe, which has
appropriate permission to the UNC folder.

1. Locate the following in the machine.config file:

<processModel ... userName="machine" password="AutoGenerate"... >

2. Change the user name and password like following:

userName="DomainName\username" password="password"

3. Add the account to the UNC folder with appropriate permission (or just
"Full Control" permission).

For more information with the steps and the permission needed for this new
account, please refer to the following Knowledge Base articles from
Microsoft:

324393 HOW TO: Install the .NET Framework on a Cluster
http://support.microsoft.com/?id=324393

317012 INFO: Process and Request Identity in ASP.NET
http://support.microsoft.com/?id=317012

Have a nice day!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • RE: Problem deserializing file from asp.net
    ... I gave the file write permission and it works. ... should write out an error message, ... > As for the file permissions you need to give the ASPNET account write access ... >> web service. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem running local asp.net app with web site on network share
    ... I can't investigate #1 because that won't work for our production ... Web.config to a domain account that has permission to the network share ... This will cause the error message. ... > computer as one account to the UNC folder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mobile I amt jam
    ... The error is just "you don't have permission"? ... OWA connection? ... mobile phone to my email account in my exchange server threw GPRS ... connection but I have error message you don't have permission ...
    (microsoft.public.exchange.admin)
  • Re: Problem with database connection
    ... The database attached to the web application was a read-only one. ... I did not find anything named Change Permission. ... The error message I quoted earlier was incorrect.The correct error message ... > account permissions for the folder containing the file - the account should ...
    (microsoft.public.inetserver.asp.db)
  • Re: xp_msadenabled
    ... account for that machine on the pdc, ... >This has been seen before when the account that SQL ... >didn't have permission to access Active Directory. ... >> I keep getting this error message sent to me ...
    (microsoft.public.sqlserver.server)

Loading