 |
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

May 4th, 2014, 09:44 PM
|
|
Authorized User
|
|
Join Date: Jan 2009
Posts: 32
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Accessing WSAT
Hi Imar, I'm working on Chapter 16 and trying to gain access to the WAST to manage user accounts and roles. This is the "Try It Out" on page 614.
I can get through step #4 until the point where I'm prompted for my Windows credentials. When I enter my password, I get an error in the browser:
HTTP Error 401.1 - Unauthorized
You do not have permission to view this directory or page using the credentials that you supplied.
I've tried it a number of times. I'm the only user on this laptop, so it's the only Windows identity and password in use. Any ideas?
|
|

May 5th, 2014, 06:53 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Is your user account an Administrator? You can check under Windows by going to User Accounts.
Also, try running the command prompt in step 1 as ad Administrator. To do this, type CMD on the Start Screen. Then right-click Command Prompt and choose Run as Administrator.
Hope this helps,
Imar
|
|

May 5th, 2014, 09:46 AM
|
|
Authorized User
|
|
Join Date: Jan 2009
Posts: 32
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Thanks, Imar, but that did not work. I am logged into the machine as the Admin and I confirmed this using User Accounts. Next, I did "Run as Administrator" at the command prompt and repeated the steps.
After entering the address in the browser, I hit ENTER and I'm prompted with a dialog box with the title, "Windows Security". It has my Administrator Name there and asks for my password. I enter my password and the box disappears for a very short period of time and then reappears again. I repeat and then get the error message.
Interestingly, when this security box appears, like I say, my Admin name is there but the picture I use for my Admin User Account is different. The Admin name is also preceded by the name of the computer on the network.
|
|

May 5th, 2014, 10:20 AM
|
|
Authorized User
|
|
Join Date: Jan 2009
Posts: 32
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
I just rebooted the machine and logged in as the Administrator (as I always do). Followed the steps again and the first prompt by Windows for my credentials has nothing in the dialog box. It's the same Windows Security dialog box, but there is nothing in the "User Name" and "Password" text boxes. It says, "Domain: LAPTOP" (LAPTOP being the name of the computer on the network). My Administrator picture is not there, nor is there any other picture.
When I enter my User Name and Password, the dialog box disappears for a moment and then reappears. This time, instead of a User Name text box, it's a label = LAPTOP\MyUserName. There is a text box for the Password. Also the picture is different than my Administrator picture.
I enter my Password and hit enter, the dialog box disappears momentarily and then reappears exactly the same as before. When a re-enter the password and hit enter the dialog box disappears for good and the error message is loaded into the browser page.
|
|

May 5th, 2014, 04:09 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I think what you're seeing is expected. This is a browser dialog requesting security so it may look different from other Windows logon screens.
The question is why it doesn't allow you to navigate to these folders though. Can you access the folders used in Windows Explorer directly?
Imar
|
|

May 5th, 2014, 04:23 PM
|
|
Authorized User
|
|
Join Date: Jan 2009
Posts: 32
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Imar
Can you access the folders used in Windows Explorer directly?
Imar
|
Using Windows Explorer, I can open the folder "ASP.NETWebAdminFiles" and see its contents (path = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP .NETWebAdminFiles\").
There are a number of folders there including, App_Code, App_Data, App_GlobalResources, App_LocalResources, AppConfig, Images, Providers, and Security.
I can open each of those folders and look at the contents of each.
Then there are a number of files below that (default.aspx, error,aspx, home0.aspx, home1.aspx, home2.aspx, navigationBar.ascx, web.config, webAdmin.master, webAsminButtonRow.master, WebAdminHelp.aspx, WebdminHelp_Applicaiton.aspx, WebAdminHelp_Internals.aspx, WebAdminHelp_Provider.aspx, WebAdminHelp_Security.aspx, webAdminNoButtonRow.master, webAdminNoNavBar.master, WebAdminStyles.css, WebAdminWithConfirmation.master, WebAdminWithConfirmationNoButtonRow.master).
|
|

May 5th, 2014, 04:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Where did you store your Planet Wrox site? E.g. in which folder on disk?
Imar
|
|

May 5th, 2014, 04:44 PM
|
|
Authorized User
|
|
Join Date: Jan 2009
Posts: 32
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Imar
Where did you store your Planet Wrox site? E.g. in which folder on disk?
Imar
|
The site is stored at "C:\begASPNET\Planet_Wrox.
|
|

May 6th, 2014, 05:10 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I am stumped, as it's supposed to work. Here's what I just did with a new account that also works:
1. Go to User Accounts
2. Create a new Account called Test with password Test
3. Make this account an Administrator
4. Log off
5. Log into Windows using this Test account
6. Open a command prompt
7. Navigate to C:\Program Files (x86)\IIS Express
8. Enter the following command:
Code:
iisexpress.exe /path:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles" /vpath:"/ASP.NETWebAdminFiles" /port:8082 /clr:4.0 /ntlm
9. Start a browser and go to
Code:
http://localhost:8082/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=C:\BegASPNET\Planet_Wrox&applicationUrl=/
When I use Chrome, I get logged in automatically. When I use Firefox, I get a login dialog. When I enter Test/Test, I can successfully access the WSAT.
Can you try this out?
Also, in step 8, do you see that the application is successfully copying config files to the user's temp folder?
Cheers,
Imar
|
|
The Following 2 Users Say Thank You to Imar For This Useful Post:
|
|
|

May 6th, 2014, 04:49 PM
|
|
Authorized User
|
|
Join Date: Jan 2009
Posts: 32
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Imar
Can you try this out?
|
Hi Imar, using the "Test" Administrator account worked. I guess I have to finish the exercises in your book and do all of my development on this other account but I guess that's no big deal.
Thanks for all the help!
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Chapter 16: WSAT with VS2013 |
paulf |
BOOK: Beginning ASP.NET 4.5 : in C# and VB |
6 |
January 10th, 2014 06:46 AM |
| chapter 15: WSAT error |
dany96 |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
10 |
August 14th, 2011 03:20 PM |
| Cannot get WSAT to start up SQL Membership |
eddiemcham |
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 |
0 |
June 3rd, 2009 10:58 AM |
| Chapter 15 WSAT |
areed24 |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
1 |
March 13th, 2009 04:21 PM |
| Chapter 15: WSAT doesn't show up |
RobRob |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
4 |
September 27th, 2008 06:42 AM |
|
 |
|