Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default user of ASP.NET application on Server 2003
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01355112
Message ID:
01355134
Views:
14
>>Hi,
>>
>>I am working on a new installation of ASP.NET application that uses VFP data. The VFP data reside in a certain folder on the C: drive (e.g. C:\MYDATA).
>>
>>When running ASP.NET application (without impersonating a user in WEB.CONFIG) it opens the VFP tables without a problem. But it fails to add/write changes to the VFP data. In the past installations I had to ask the network administrator to create a domain user that would have access to the VFP data as well as to the ASP.NET Framework folder. It worked.
>>
>>But I am wondering if it is possible to grand the default ASP.NET user a Full Control access to the VFP data folder. In the past, when I was installing on server running XP, the default user was ASPNET (without period). And it was easy to grand this user access to the data folder. On this box, Server 2003, I don't see a user ASPNET. When I run a test ASP.NET program that shows me the current user it reports that the user name is "NETWORK SERVICE" and the Network Domain is "NT AUTHORITY". How do I grant this user "NETWORK SERVICE" Full Control access to the DATA folder?
>>
>
>NETWORK SERVICE is a local account, not a domain account. However, if the data is local to the machine, you can just go ahead and select the folder where the data is located, go to the permissions (right-click, Sharing & Security, Security) then click on Add, Advanced, then Find. NETWORK SERVICE will appear in the list. Just select it and give the appropriate permission to it. This isn't any different than any other user account. It isn't as simple if it's a network resource. In that case you are usually better off configuring IIS/the web site to use a windows user account, then give that account access to the resources you need.

Paul,

Thank you very much! I wish I knew about this before; it would save me time (on previous installations) asking network administrators to create domain accounts. This is much easier.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform