Hi!
I've developed an ASP.Net app which allows the browse of the contents of my computer based on SMB and an UNC path, for private use only. So from 1 computer running my app on IIS5.1 on XP, I can access the other ones thru the net, providing only the UNC path.
I have multiple computers at home and I can access all shares on the computers with WinXP. But when it comes to this one computer with Vista, I cannot access it, saying it has bad username or password. The share is 100% accessible to the computer where the asp.net app is deployed.
After some research with Wireshark I found that it was accessing the access to shares was being blocked maybe because of the credentials being used were from ASPNET account, used by default by IIS.
So searched the net and found ASP impersonation which I tried. First I tried to impersonate the account on my Vista computer, with its username and pass on web.config.IIS retuns me with this error when I access the site:
"Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Unspecified error"
I tried other logins but always this message pops up....
Then I tryed to impersonate programatically. The commands seem to be accepted but then when I try to read any file on the share it simply says:
"Access to <share> is denied"
Also I tried adding to the share the Network service user on the Vista machine to see if it would then grant me the access, but no such luck:(
I'm using the traditional DirectoryInfo and FileSystemInfo functions to access the files on the shares.
I'm completly lost now...can anyone help?
Tkx in advance!