Solved

Unable to write files to mapped network deive...

Posted on 2008-10-23
5
1,846 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
5 Comments
 
LVL 17

Accepted Solution

by:
Rovastar earned 168 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now