Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Beginning ASP.NET 4.5 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 8th, 2014, 12:40 PM
Registered User
Points: 25, Level: 1
Points: 25, Level: 1 Points: 25, Level: 1 Points: 25, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2013
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chapter 16: WSAT with VS2013

My first post, so let me first say what an excellent book this is, clearly written with lots of explanation and multiple ways to check that what you have done is correct. I have been working through the book successfully using VS2013, which was the version available when I started the book. I had encountered no significant problems, up until now ...

I have hit a wall with the security roles in Chapter 16. I know that WSAT isn't included in VS2013 but I Googled the problem and then followed (I believe) the workaround posted on the MSDN blog to run an instance of IIS and then open the WSAT in the browser using a url that points to the location of the Site solution (presumably where the .sln file resides). This seemed to work (eventually) - at least the WSAT page opened up - and I could create roles and assign users. But - it doesn't seem to be connected to the databases that the Site is already using. The users I had previously created in the early exercises of Ch 16 were not visible in WSAT, and the new one I created in WSAT did not show up in the PlanetWrox database.

I started IIS with the following command:
iisexpress.exe /path:C:\Windows\Microsfot.NET\Framework\v4.0.30319 \ASP.NetWebAdminFiles /vpath:"/asp.netwebadminfiles" /clr:4.0 /ntlm

then I opened the WSAT using the following url:
http://localhost:8080/asp.netwebadmi...cuments\Visual Studio 2013\Projects\Site&applicationUrl=/

Am I missing something, or is there a better way to manage users and roles with VS2013? Any help gratefully received!

Paul
Reply With Quote
  #2 (permalink)  
Old January 8th, 2014, 05:56 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

Quote:
My first post, so let me first say what an excellent book this is, clearly written with lots of explanation and multiple ways to check that what you have done is correct.
Thank you!

Yes, VS 2013 behaves a little different. In the upcoming version of the book targeting VS 2013 I am using the exact same work around as you described here.

Is the command you typed below the exact thing you used? There's a typo in the word Microsoft.

Two things you can try:

1. Check your web.config file and make sure that the database connection string for membership points to the correct database.

2. Move your site away from your Documents folder and into something like C:\BegASPNET.

If that doesn't help, can you post your web.config?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
paulf (January 9th, 2014)
  #3 (permalink)  
Old January 9th, 2014, 04:44 AM
Registered User
Points: 25, Level: 1
Points: 25, Level: 1 Points: 25, Level: 1 Points: 25, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2013
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Thumbs up

Quote:
Originally Posted by Imar View Post
Yes, VS 2013 behaves a little different. In the upcoming version of the book targeting VS 2013 I am using the exact same work around as you described here.
Thanks. That in itself helps me know I am doing the right thing.

Quote:
Is the command you typed below the exact thing you used? There's a typo in the word Microsoft.
Oops! No, that was a typo in the message.

Quote:
Two things you can try:

1. Check your web.config file and make sure that the database connection string for membership points to the correct database.

2. Move your site away from your Documents folder and into something like C:\BegASPNET.
Somehow, I had the .sln file in MyDocuments but the main site files and folders were in C:/BegASPNET. I tried moving the .sln file to that location but seemed to get in a bit of mess and ended up with definitely the wrong webconfig file (issues with the way my site was being backed up each evening - not an issue for this site, or to waste your time!). So, the ultimate solution was that I used the downloaded source files to recreate the site up to the Chapter 16 point. The workaround with WSAT now seems to function as it should, with the URL pointing to the C:/BegASPNET/Site location so I'm back in business.

Paul

Thanks again for the quick response.
Reply With Quote
  #4 (permalink)  
Old January 9th, 2014, 09:21 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

The solution file isn't really used that much with Web Site Projects. It should have been enough to just point to the folder that contained your site's files. But I am glad to hear you found a solution and could make it work.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old January 9th, 2014, 12:44 PM
Registered User
Points: 25, Level: 1
Points: 25, Level: 1 Points: 25, Level: 1 Points: 25, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2013
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
The solution file isn't really used that much with Web Site Projects. It should have been enough to just point to the folder that contained your site's files.
Thanks - that is worth knowing. The MS Blog giving the workaround for WSAT says it should point at the folder containing the solution, which I assumed would be where the .sln file was (perhaps because I'm more used to VB coding).

Paul
Reply With Quote
  #6 (permalink)  
Old January 10th, 2014, 02:27 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

Ah, I see. That's confusing indeed. I tried posting a comment on that blog to mention this but it seems that comments are now closed (guess there were too many people complaining about this missing functionality ;-) )

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #7 (permalink)  
Old January 10th, 2014, 05:46 AM
EricCulbertson
Guest
 
Posts: n/a
Default

appreciate the efforts as it would be helpful in getting the suggestions
Reply With Quote
Reply


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
Chapter 16: Cannot open WSAT weixing BOOK: Beginning ASP.NET 4.5 : in C# and VB 4 March 21st, 2013 11:54 PM
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
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
Chapter 16 Fig 16-11 krsouthern BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 July 8th, 2008 12:11 PM



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


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