local resources

F

F

I have made a web service in windows 2000 server using VS.net 2003 C#, in
the web method i'm checking to see if a local directory exists on the web
server [ie. Directory.Exists("z:\\") z:\ == mapped drive] every time i call
the web service from a client program i get that "z:\" does not exists. Can
any please help, what am i missing?

Thanks...
 
M

Michael Pearson

The ASPNet user that asp.net pages run as doesn't have a "z:\" or isn't
allowed to view "z:\"

You'll either need to use impersonation to run that webservice as a user
that DOES have access to that directory and has it mapped. I'm also
thinking that the mapped drive will not work, but a UNC path would work
(\\networkserver\zdrivepath\).

Michael

F said:
I have made a web service in windows 2000 server using VS.net 2003 C#, in
the web method i'm checking to see if a local directory exists on the web
server [ie. Directory.Exists("z:\\") z:\ == mapped drive] every time i call
the web service from a client program i get that "z:\" does not exists. Can
any please help, what am i missing?

Thanks...
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top