Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2008 > BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4
|
BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4
This is the forum to discuss the Wrox book Beginning Microsoft Visual C# 2008 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780470191354
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 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
 
Old January 22nd, 2010, 03:02 PM
Registered User
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 19: Try It Out Step 4 - ASP Web Site Admin Tool can't connect

I am attempting the Try It Out exercise on page 652. When I attempt to move to the Security tab in the ASP Web Site Admin Tool, it responds back that there is something wrong with my connection and directs me to the Provider tab. If I then try to establish a single provider for all ASP features, it responds back with the following:

"Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider."

I have ran this utility to create a database with a name of aspnetdb, but this made no difference in the behavior of the ASP Web Site Admin Tool in attempting to set web site security.

In the How it Works section following this exercise, the books states that a new Access database should be created and that having refreshed the files in Solution Explorer, I would see a new SQL Server Express database ASPNETDB.mdf in the directory App_Data.

This leads me to the question of what should be installed on my machine in order for this to work properly? The MS SQL Server components I have on my machine were placed there during the installation of an application that required a MS SQL Server database engine, so I don't know if everything that is needed does exist, or if I need to de-install/reinstall. Additionally, I am confused as to what the ASP Web Site Admin tool is looking for as a connection. Is it looking for Access or SQL Server?

Any and all help would be greatly appreciated
 
Old February 9th, 2010, 12:18 PM
Authorized User
 
Join Date: Nov 2009
Posts: 22
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to msherburne84
Default Same Issue

I'm having the same problem. I used the Aspnet_regsql.exe to create the database on my server. I'm running Sql Server on a networked server. It created it fine but how do I get the page to associate with that DB? If you find a solution please post an update. Thanks
 
Old February 9th, 2010, 02:58 PM
Authorized User
 
Join Date: Nov 2009
Posts: 22
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to msherburne84
Default

I have found a solution. Here is a Microsoft link that explains this. I use an external server so I had to modify a little bit. Just make sure that you have Sql Server Express edition or if you run your own server with SQL Server that you allow remote connection through the security settings.

http://support.microsoft.com/kb/952170

Feel free to post back any questions
 
Old February 9th, 2010, 07:40 PM
Authorized User
 
Join Date: Nov 2009
Posts: 22
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to msherburne84
Default Corrected Mistake

I'm sorry. That last bit of information was how to configure the ASP.NET site administration Tool for sharepoint. I've been having a heck of a time due to a server that is connected to my network so it a little different for me. Here is a link to ASP.NET videos take a look at video's 9 and 10. Video 9 is about 18 minutes but does it right. Happy Coding

http://www.asp.net/learn/security-videos/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Site Admin Tool SQL Problem PeteC BOOK: Beginning ASP.NET 2.0 AJAX ISBN: 978-0-470-11283-0 1 July 29th, 2008 12:48 PM
Web Site Admin Tool Rich57 ASP.NET 2.0 Basics 0 October 25th, 2007 03:31 AM
ASP.NET 2.0 Web Site Admin error on Creating User fmegersa ASP.NET 2.0 Basics 0 December 1st, 2006 08:57 PM
ASP.NET web site administration tool boksi ASP.NET 1.0 and 1.1 Basics 2 June 16th, 2005 07:10 AM





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