Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 14th, 2008, 01:15 PM
Registered User
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Where is web.config.sqlfull?

I'm having issues setting up the WroxUnited web site on my computer. I'm working with the Cassini, Visual Studio Full, SQL Server Full setup. I'm told to rename web.config.sqlfull to web.config, but from the FinalApplication.zip I downloaded off of the code section for my book (http://www.wrox.com/WileyCDA/WroxTit...load_code.html), there does not exist a web.config.sqlfull, only a web.config. I've searched through all the files and folders provided with FinalApplication.zip, and have not found any instance of web.config.sqlfull ...

Where can I obtain a copy of web.config.sqlfull? I walked through the updated Appendix B, and attempted to make the changes to web.config manually, but that's given me both errors and a headache. Any help would be greatly appreciated, be it a copy of web.config.sqlfull, or a helpful walk-through of the necessary changes to make to web.config.

Thanks.

 
Old January 14th, 2008, 05:09 PM
Registered User
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Let me document the errors that I get when I change my web.config, in case it may benefit others down the line ...

Here's what I've changed my web.config to ...
Code:
<connectionStrings>
        <clear />
        <add name="WroxUnited"
          connectionString="Data Source=PROGRAM4DT06\BMC_SQL01;Integrated Security=True;Initial Catalog=WroxUnited"
          providerName="System.Data.SqlClient" />
        <add name="WroxUnitedMembership"
          connectionString="Data Source=PROGRAM4DT06\BMC_SQL01;Integrated Security=True;Initial Catalog=WroxUnitedMembership"
          providerName="System.Data.SqlClient"/>
</connectionStrings>
... and I get the following error in my browser ...

Quote:
quote:
Server Error in '/WroxUnited' Application.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Conf ig\machine.config Line: 150

Code:
Line 148:    <roleManager>
Line 149:      <providers>
Line 150:        <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 151:        <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 152:      </providers>
It seems like it's looking in web.config for the LocalSqlServer connection? Not sure ...






Similar Threads
Thread Thread Starter Forum Replies Last Post
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
web.config rrkano .NET Framework 2.0 1 June 23rd, 2008 02:50 PM
web.config sonny1 ASP.NET 2.0 Basics 1 October 20th, 2007 01:40 PM
web.config.sqlfull needed damonuk ASP.NET 2.0 Basics 1 October 17th, 2007 01:15 PM





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