V
varnk
I have a web application that is trying to establish a connection to a
shared drive by pinvoking WnetAddConnection2. This call works as expected
when I run it locally on my Windows XP system. However, when I try the same
call on Windows Server 2003, I get an error 85 indicating that the local
device is already in use. This occurs no matter which drive letter I try to
use for the local device. If I go to the command prompt and do a Net Use
with the same data supplied to WnetAddConnection2, the net use is successful.
Why am i able to map a drive using Net Use, but I cannot get the same
mapping to work calling WnetAddConnection2 in ASP.NET while running on
Windows Server 2003? This is very perplexing.
shared drive by pinvoking WnetAddConnection2. This call works as expected
when I run it locally on my Windows XP system. However, when I try the same
call on Windows Server 2003, I get an error 85 indicating that the local
device is already in use. This occurs no matter which drive letter I try to
use for the local device. If I go to the command prompt and do a Net Use
with the same data supplied to WnetAddConnection2, the net use is successful.
Why am i able to map a drive using Net Use, but I cannot get the same
mapping to work calling WnetAddConnection2 in ASP.NET while running on
Windows Server 2003? This is very perplexing.