Saturday, March 24, 2012

Windows Authentication Problem Between localhost-server

Hi. I have an ASP.NET app using <authentication mode="Windows" /and
<identity impersonate="true" />. The program creates files in a network
share using the Create method of System.IO.FileStream.

I run the program locally and it works. But when ran on the server, I get
an access is denied error message when the program attempts to create the
files. What is going on? I have anonymous access turned OFF in IIS locally
and on the web server.

Can anyone please help me? What should I do to troubleshoot and/or resolve
the "access is denied" message?

Thankswindows authentication does not allow credentials forwarding. you need
to switch to basic or kerberos and enable credentials forwarding on the
involved servers.

-- bruce (sqlwork.com)

Mike wrote:

Quote:

Originally Posted by

Hi. I have an ASP.NET app using <authentication mode="Windows" /and
<identity impersonate="true" />. The program creates files in a network
share using the Create method of System.IO.FileStream.
>
I run the program locally and it works. But when ran on the server, I get
an access is denied error message when the program attempts to create the
files. What is going on? I have anonymous access turned OFF in IIS locally
and on the web server.
>
Can anyone please help me? What should I do to troubleshoot and/or resolve
the "access is denied" message?
>
Thanks


That being the case, could anyone recommend how I facilitate creating files
using the Create method of System.IO.FileStream? What account needs access
to do what in order for this to happen?

"bruce barker" wrote:

Quote:

Originally Posted by

windows authentication does not allow credentials forwarding. you need
to switch to basic or kerberos and enable credentials forwarding on the
involved servers.
>
-- bruce (sqlwork.com)
>
Mike wrote:

Quote:

Originally Posted by

Hi. I have an ASP.NET app using <authentication mode="Windows" /and
<identity impersonate="true" />. The program creates files in a network
share using the Create method of System.IO.FileStream.

I run the program locally and it works. But when ran on the server, I get
an access is denied error message when the program attempts to create the
files. What is going on? I have anonymous access turned OFF in IIS locally
and on the web server.

Can anyone please help me? What should I do to troubleshoot and/or resolve
the "access is denied" message?

Thanks


>

0 comments:

Post a Comment