473,395 Members | 1,783 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.

WebDev handles authorization diffrent from IIS 5.1

When I run my webapp, IIS 5.1 (XP) is behaving different from
WebDev.WebServer (Visual Studio Development Server). I use Windows
authentication, and want to restrict access to a certain group. I do
that like this (part from web.config in the <system.webpart):
<authentication mode="Windows" />

<authorization>
<allow roles="GroupName"/>
<deny users="*,?"/>
</authorization>

When I run under IIS is just get the page after entering my username/
password in a dialog window. With WebDev I directly get an error
screen with:
"Error message 401.2.: Unauthorized: Logon failed due to server
configuration......."

Also, both following lines return true with IIS, but false with
WebDev:
User.IsInRole("GroupName")
new
WindowsPrincipal(Request.LogonUserIdentity).IsInRo le("GroupName")

Who can help?

Mar 28 '07 #1
0 1020

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

Similar topics

1
by: Chris Leffer | last post by:
Hi. I would like to confirm a behaviour in the authorization element from the web.config file. Suppose the following (using Forms authentication): <authorization> <deny users="?" /> <deny...
1
by: Shapper | last post by:
Hello, In my web site I need to restrict the access to page1.aspx, page2.aspx and page3.aspx to users which had login and which access level is "administrator". The remaining pages can be...
4
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need...
2
by: Water Cooler v2 | last post by:
Is the authorization tag/class in web.config\<system.web> available only for Windows authorization? Does it make sense for Forms based authentication?
1
by: Martin Olson | last post by:
is there a way to get the WebDev.WebServer for VS2005 to process server side includes??? thanks for your help on this, mo
0
by: David Hubbard | last post by:
I am developing a small web site for a club using asp.net 2.0. I am tyring to run test versions of the site on a system that does not have vs 2005 on it nor does it need it. To do this I run...
1
by: sonu | last post by:
Mark is creating a website using ASP.NET. He is using Forms authentication for authenticating and authorizing users. He has the following layout of files and directories in his website: Root...
1
by: swissclash79 | last post by:
Good morning everybody I have a question regarding configuring mappings in the development webserver. I am currently implementing a proxy server that is lied between the clients and a customer's...
1
by: krikaran adel | last post by:
Hi, First of all I found your tips very usfull, of course these tips becuas of all years working in access. really greet site. my Quation: is this away to change fonts in reports so the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.