Solved

Unable to write files to mapped network deive...

Posted on 2008-10-23
5
1,926 Views
Last Modified: 2012-08-13
I am posting the same issue, becuase i didnt get any answers:

I am getting the following error when i try to write a file to network drive (on Unix server). IIS is running on
windows 2003.

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

My program is trying to write a media file to  "\\IPAddress\\ccor\\Repository\\Test_Source\\". I mapped the network drive on the server where iis is running (Y:\\Repository\\Test_Source\\), but error is the same. Here is some information about my environment
System Info:
Windows 2003 Server
IIS 6.0
.Net 2.0
Web.Config settings:
<authentication mode="Windows" />
<identity impersonate="true" />

I have added NETWORK SERVICE group to access this folder.

IIS Configurations:
Directory security-> Integrated Windows Security and also i checked the option "Enable anonymous access"
0
Comment
Question by:Chintpal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 17

Accepted Solution

by:
Rovastar earned 168 total points
ID: 22793324
See teh MS KB article here

http://support.microsoft.com/kb/257174

It tell you all you need to know.
0
 
LVL 15

Assisted Solution

by:pcsmitpra
pcsmitpra earned 168 total points
ID: 22794589
I was facing same problem sometime ago but did not find any solution for this. Try to create a user on Unix side and give it full permission on Unix share. And use "connect as" option from website dir "resource are on remote server" option and give Unix server user here. May be this will work.
0
 
LVL 10

Assisted Solution

by:harperse
harperse earned 168 total points
ID: 22797814
The NETWORK SERVICE account basically uses the computer's domain account and kerberos token for authentication to the remote resource.  Grant the computer's domain account access to the file share.  Format "DOMAINNAME\COMPUTERNAME$".  The dollar sign must be on the end to denote a computer account, or just browse AD to find it.

Best of luck,
harperse
0
 

Author Comment

by:Chintpal
ID: 22817063
Thanks for the responses.
I have progressed a littile bit in this issue. I have created a user with full permissions like super admin and "impersonate" that user through config file. My program using a thread that will check for status of entry in database, if its new entry then it will move the file to shared directory.
When i test this chnage with simple aspx page (i put simple file.copy(src,dest) method in this file. It works fine, but when i use the same in my thread its not working. Do we need to set any permissions for the thred in C#?
Any help will be appreciated.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question