p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio (http://p2p.wrox.com/forumdisplay.php?f=477)
-   -   You are not authorized to view this page – Configuring IIS/Login (http://p2p.wrox.com/showthread.php?t=79276)

o_o May 2nd, 2010 09:31 PM

You are not authorized to view this page – Configuring IIS/Login

I am starting with this ASP.NET book by Varallo, and I have completed the fourth chapter. At this point the book encourages us to look at a few pages in the browser like the Administration/Administration.aspx ( i.e. http://localhost/PaidTimeOffUI/Admin...istration.aspx)

I attempted looking at these pages, (in IE and FireFox) and I get a dialog box “Connect to <My Computer Name>” asking me to enter the User name and Password.

I am new to ASP.NET and Microsoft related technologies, though I have experience on OO Design. I am wondering if someone more experienced than myself would provide me the steps on configuring this application to work from within VS 2008.

I am using VS 2008, SQL Server 2005 and IIS 5.1 on Win XP

As mentioned at the end of Chap. 1 – I created a virtual directory PaidTimeOffUI. From posts in this forum, I understand that I needed to use Windows Integrated Authentication.

So I Right Clicked on “Default Website” in the IIS, went to “Properties”, and went to the “Directory Security” Tab. Here under “Anonymous Access and Authentication Control” I clicked the “Edit” Button. In this dialog I unchecked “Anonymous Access” and checked “Integrated Windows Authentication”. I repeated these steps for the PaidTimeOffUI site which is a child of the “Default Website”.

In Chap 2, we are required to put in the first record into ENTUserAccount Table. While putting this record, I changed the WindowsAccountName to my own i.e. <My Computer>\<My User Name> (My User name has Admin rights on this machine.) instead of VARALLO1\VinceVarallo

After these settings if I got to http://localhost/PaidTimeOffUI/Admin...istration.aspx - I get the dialog box “Connect to <My Computer Name>” asking me to enter the User name and Password. I tried putting a breakpoint in the Page_Load() of the Administration/Administration.aspx page, and it does not get triggered before I get the dialog, so I think IIS is stopping it.

I would be grateful if someone could provide me the steps on configuring IIS beyond what I have done above. Also please let me know if there is some other place to put to breakpoint to check if it has gotten past IIS.

Thanks a lot,

o_o May 5th, 2010 03:53 PM

It is a pity that the author is not participating in the forum – at least since the beginning of this year.

I have not completely/correctly solved my problem – but my attempt is as below (which may help other people who have similar problems).

1.I enabled Anonymous Access:
In the IIS Manager, I selected Properties for the PaidTimeOffSolution. In the Directory Security Tab, under Anonymous access and authentication control I clicked the Edit button. Here, I checked Anonymous Access and for the Username I put Administrator. I also checked Integrated Windows Authentication at the bottom.

2. After Restarting IIS, it worked, but it had connection issues when connecting to the SQL Server. I followed this article Configuring an ASP.NET 2.0 Application to Work with Microsoft SQL Server 2000 or SQL Server 2005 and got this part to work.

So at least now I can look at the layout of the site – which is ok up to the end of Chapter 4.

I have yet to figure out how to get the site to work without Anonymous Access. I would be grateful if someone could show me how to do it.

O. O.

o_o May 10th, 2010 01:21 PM

I can’t believe this. I fixed this by clicking on the orange horizontal bar at the top of IE. I think I selected “Enable Intranet Settings” or something like that, and Integrated Windows Authentication works now.


All times are GMT -4. The time now is 02:10 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.