Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server error in '/PubStores' Application

Status
Not open for further replies.

xcelpro

Technical User
May 28, 2005
11
US
Hi all
Trying to learn this ASP.Net stuff 4 days old now

Added for Pubs sql database "stores" table

-connection
-cmd component
-data adapter
-generated dataset

Added a dropdownlist to my webform and 2 lables
Added code for datareader to populate the drop down
Fill data set display correct data in labels.

However when I ran originally, I received some message that I did not have proper security.

I read some further and cam across a piece telling me to add to the web.config file this bit

Code:
<identity impersonate = "true"/>
which I did immediately beneath the authorization tag

The error mesage I'm receiving
Authorization rule must have an <allow> or <deny> tag.

Thanks
-xl
 
thats strange, impersonate usually means that ASP.NET will try to use the IIS's IUSR account. try giving some other user for impersonating.

anyway, what authentication mode r u using?

Known is handfull, Unknown is worldfull
 
Thanks vbkris -

<authentication mode="Windows" />

Thanks
-xl
 
Just a thought; looking in my web.config file there is an allow tag with the following detail:

<authorization>
<allow users="*"/>
<!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

 
Here's the authorization for the current project
I added the identity impersonate

Thanks
-xl
Code:
<authorization>
		<identity impersonate = "true"/>
		<allow users="*" /> <!-- Allow all users -->

            <!--  <allow     users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
                  <deny      users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
            -->
    </authorization>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top