File upload to remote fileserver

PsypherPunk

New member
Joined
Sep 18, 2007
Messages
1
Programming Experience
1-3
I've put together a webpage for uploading documents. The webserver is currently in a Workgroup while the fileserver, to which the files should go, is in a separate Domain.

The issue is that I don't seem to be able to read or write from this location. I've tried various parameters in the <identity> tag but none seems to work:
VB.NET:
<identity impersonate="true" userName="DOMAIN\User" password="password" />
System.IO.IOException: Logon failure: unknown user name or bad password.
VB.NET:
<identity impersonate="true" />
System.UnauthorizedAccessException: Access to the path...is denied...
Also, if I check the value of 'WindowsIdentity.GetCurrent().Name' during this, rather than being set to the DOMAIN\User specified above it's always set to the Webserver's MachineName\Username.

Any ideas where I'm going wrong?

Cheers.
 
Back
Top