Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 2nd, 2010, 09:31 PM
o_o o_o is offline
Registered User
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question You are not authorized to view this page – Configuring IIS/Login

Hi,

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.
  #2 (permalink)  
Old May 5th, 2010, 03:53 PM
o_o o_o is offline
Registered User
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question

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.

Thanks,
O. O.
  #3 (permalink)  
Old May 10th, 2010, 01:21 PM
o_o o_o is offline
Registered User
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

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.

O.O.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
thePhileVB Not Authorized to View Milosz1985 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 December 14th, 2008 12:23 PM
configuring IIS simplsoul .NET Framework 2.0 2 April 16th, 2008 05:50 AM
Form view control, Authorized edit only nuttylife2 ASP.NET 2.0 Professional 0 July 10th, 2006 07:57 PM
Configuring Tomcat 5.0 and IIS 5.1 bettyb1656 BOOK: Professional Apache Tomcat 3 May 30th, 2006 12:40 AM
Local WroxUnited - Not authorized to view page... willieb BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 November 20th, 2005 07:25 AM



All times are GMT -4. The time now is 11:09 AM.


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