473,395 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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?

Thanks
Mar 28 '07 #1
2 1578
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:
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
Mar 28 '07 #2
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:
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:
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
Mar 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: phreeskier | last post by:
i want to implement authorization with windows authentication and don't have the slightest clue of how to do this implementation. the basic windows authentication for this .NET application is...
11
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get...
7
by: dave | last post by:
I have one application that is used within our intranet that places a forms auth cookie for our domain (for intranet purposes only). All other applications rely on this cookie for authentication and...
2
by: Mike | last post by:
1. For some reason after the session has ended and the authentication cookie has expired I'm not being redirected to the login page. Insted I'm be assigned a new authentication cookie? Anyone have...
0
by: Raed Sawalha | last post by:
The thing is that I want to put authentication application to the webserver root (C:\Inetpub\wwwroot\empLogin.aspx & http:\\localhost\emplogin.aspx) The problem is that another webApplication...
1
by: howard dierking | last post by:
Hi, I am using local windows groups as roles in an asp.net application. In my web.config file, I have the following: <authentication mode="Windows" /> <authorization> <allow...
1
by: yofnik | last post by:
I have seen this issue posted a number of times, but never a solution. Can someone please help. If I access my web application that uses Forms Authentication using "localhost"...
1
by: Markus Brandy | last post by:
Hi, I have to use a Java web service that requires HTTP authentication, so I have to send username and password in the HTTP headers. My C# application has a client implementation that looks...
3
by: Mark Olbert | last post by:
I have a website (ASPNET2) which uses cookieless authentication. <img> tags on restricted-access aspx pages appear to need the URL credential fragment (i.e., the long string that encodes the...
6
by: Vyoma | last post by:
This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I have been lurking around at several forums with regard to login and user authentication scripts and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.