473,516 Members | 3,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms Authentication displays basic authentication dialogue window

Hi,

A very large portion of my site uses forms authentication which seems
to work reasonably well. However many of my authenticated pages
display a basic authentication dialogue box prior to display, even
though I am authenticated. Clicking cancel to the dialogue box
displays the page fine with no problem however after a while this
becomes very annoying!

The pages that display the basic authentication dialogue box all pull
images, and access directories from folders that are outside of the
protected directory which it must do.

I have tried giving full control on the server to the Network Service
user which didn't work and, as a test, put full control on for all
users on the server which still didn't work.

It works fine on my local server.

If anybody could enlighten me I would be very grateful.

Many thanks,

Brett
Nov 18 '05 #1
5 1591

If I understand correctly, your these folders are outside the application directory. If that is so...Can you check the permissions of ASPNET account on those folders which are causing the username prompt......

If that doesn't help...please rephrase your question to make me understand the question better...

Regards
Avneesh
Nov 18 '05 #2
> The pages that display the basic authentication dialogue box all pull
images, and access directories from folders that are outside of the
protected directory which it must do.


If the images are static it seems like good idea to put copies under your
web application folder so you don't have to fiddle with access rights,
possibly complomise security and complicate maintenance.

Martin.
Nov 18 '05 #3
Hi Avneesh,

Thanks for your quick response. The folders are outside of the
authenticated folder but are still within the virtual directory on the
web server.

For some reason the account for anonymous users is Network Service. This
was set up by the hosting company. However I have set all of the users
to 'full control' (read / write / execute / modify etc) but this doesn't
solve the problem.

The server is Windows 2003 Server - I hope this helps.

Thanks once again,

Brett

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
Hi Martin, thanks for this.

Unfortunately they aren't static images they are documents, video,
audio, images etc for a site administrator to incorporate into their
pages they create through the content management system. These files
will be uploaded by the administrator on-site, the pages will be
created by them in the CMS then published to the site so unfortunately
the files must reside outside of the authenticated section (unless
each file they uploade is duplicated one for the administration
section and one for the front end of the site!)

Any other suggestions?
Nov 18 '05 #5
Sorted it.

I switched off both windows and basic authentication on the server in
IIS for the virtual directory. Now I can access the authenticated
areas of my site without the annoying basic authentication dialogue
window appearing every five minutes.
Nov 18 '05 #6

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

Similar topics

7
9263
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. # No warranty express or implied for the accuracy, fitness to purpose
14
8059
by: John Davis | last post by:
Anyone knows how to create the username/password authorization dialog in ASP? Thanks, John
6
4797
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and...
0
2291
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the example source code can be downloaded here: http://www.blogitek.com/timhaughton/archives/files/User%20Interrogator%20And%20TDD.zip The article...
4
2734
by: Greg Burns | last post by:
I have built a web app that uses forms authentication. There isn't a "remember me" feature (i.e. the authentication cookie is not permanent). When you close the browser, and open a new one, you must log in again. This is the behavior I expected. I just discovered that if I have a browser window open (to anything) prior to opening my web...
0
1033
by: Steve - DND | last post by:
I have the following information set in my web.config file: <authentication mode="Forms"> <forms loginUrl="Login.aspx" name="formAuthCookie" timeout="60" path="/"/> </authentication> <authorization> <deny users="?"/> <allow users="*" /> </authorization>
2
1650
by: Brett Porter | last post by:
Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user logs in each page they subsequently click on brings up a basic authentication dialogue box. Clicking cancel will still allow the user to view the page but this quickly becomes very annoying. ...
0
4199
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com....
1
2535
by: rouellette | last post by:
Is it possible to redirect to another page in your application from the start page BEFORE the user has been authenticated if you're using FORMS authentication? I can't seem to get it to work. Simple example: In your start page simply try to redirect... private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) //...
0
7273
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7405
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7574
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7136
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5712
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.