Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fileupload: "account used is a computer account. Use your global..." 2

Status
Not open for further replies.

tomouse

Technical User
Aug 30, 2010
50
I have been working with an asp fileupload control for sometime and it has worked fine. However, we have changed the location that it uploads to (to another server) and now we get this message:

account used is a computer account. Use your global user account or local user account to access this server

Is there a way to specify which account details are used when a fileupload takes place? If it is a matter of adding write permission to the new upload location, who do I grant permission to? Thanks,

Tom
 
it's a network security issue. you can upload files to a directory within your website without much issue. when you leave that directory root (ie somewhere else on the computer, or another file) then you have to deal with passing around credentials.

if you are using windows integrated authentication, asp.net impersonation and active directory you can enable delegation within active directory for server hosting IIS to the destination server. with this configuration you can act as the client user on the destination server.

google "active directory enable delegation" for more information.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Brilliant, thanks (again!) Jason. One question: is this purely a network issue, or would there also be code changes to implement this kind of solution. I would be very happy to hand this over to the network people and let them deal with it! ;-)
 
It could be both, but it depends on what you want to do. You can impersonate a certain account by adding the details to the web.config file (look up the <impersonate /> entry), or you can leave it as is and ask them to add the permissions to the account that the website is currently running under,

Mark,

Darlington Web Design[tab]|[tab]Experts, Information, Ideas & Knowledge[tab]|[tab]ASP.NET Tips & Tricks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top