Web Service Write Files to Network Drive

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

Here is the secenario:
I create a web service to read in xml string and then save it to a
network drive, say : \\fileserver\xml\
I also have a windows application to call this web service.

Now the problem is:
If I run this web service with VS2005 built-in web server, it has no
problem at all.
But when I run it under IIS, it keeps returning an error message of
Logon error.

I also download a program from here:
http://www.codeproject.com/csharp/mapnetdrive.asp
When I test this program, it has no problem of mapping the network
drive even without username and password.
So I believe it must be something in IIS that causing the problem for
me.
Anyone can tell me what is it?

Thank you very much!!!

Sean
 
The IIS account probably does not have rights to write to the file.
You would need to change the settings in IIS-> right click on site-
properties->Directory Security->Edit.

If anonymous access is turned ON, then allow the anonymous account
enough access rights, or enable windows authentication and make sure
you pass the needed credentials to the web service.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top