ASP.NET User Credentials

G

Gavin Jacobs

I have built an ASP.NET application which has <impersonate = true> in the WEB.CONFIG file. I have verified that the impersonation
appears to be working because the user.identity changes when I switch from true to false.

I then try to use ADO.NET to access an Excel file which is on a file server. I access the file using a connect string that contains
a UNC reference. This works fine on my Windows XP Pro computer, and it works on the target WIN2K server if the file is on the server
C: drive, but it doesn't work if the file is across the network; I get a permission error. I could understand that the ASPNET
account is not allowed to access a file on the network, but why should I get a permission error if the ASP.NET application is
impersonating my identity? Any suggestions appreciated.

Thanks,
Gavin
 
C

Chris Botha

Gavin, look further down in the newsgroup, there is a thread "IIS & SQL
Issues" by someone called "TipTop", yesterday's date, there are a number of
responses regarding the "double hop" issue, which is your problem.

Gavin Jacobs said:
I have built an ASP.NET application which has <impersonate = true> in the
WEB.CONFIG file. I have verified that the impersonation
appears to be working because the user.identity changes when I switch from true to false.

I then try to use ADO.NET to access an Excel file which is on a file
server. I access the file using a connect string that contains
a UNC reference. This works fine on my Windows XP Pro computer, and it
works on the target WIN2K server if the file is on the server
C: drive, but it doesn't work if the file is across the network; I get a
permission error. I could understand that the ASPNET
account is not allowed to access a file on the network, but why should I
get a permission error if the ASP.NET application is
 

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,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top