Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 March 13th, 2010, 02:55 PM
Registered User
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft Access Providers to Replace the Built-In SQL Server Providers

Using the Microsoft Access Providers to Replace the Built-In SQL Server Providers
When I uploaded a membership login web site to my web site, I get an error when I go to the login.aspx page.
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:

Line 163: <roleManager>
Line 164: <providers>
Line 165: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 166: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider , System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 167: </providers>

Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Conf ig\machine.config Line: 165
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Can you help?
Old March 14th, 2010, 05:57 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi turben_1,

As I said in my personal message, you need to supply details. A lot. In particular, I asked for the following:

What OS are you using? Which version of IIS is being used? What's the physical file / folder structure of your web site. What's the virtual structure? How did you configure IIS? Are you using sub folders to host your site and if so, did you mark them as Virtual Folders / Application in IIS? How exactly do your config files look like? What did you change with regard to membership and profile settings?

In other words, it's impossible to say something useful based on this error message alone. Somewhere, somehow, someone tries to find a LocalSqlServer config setting which isn't there. Without details, it's impossible to tell what the problem is.


Imar Spaanjaars
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!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership and Role Providers with Access Database kanzeon4 ASP.NET 2.0 Professional 1 April 2nd, 2008 04:09 PM
Access Providers not working chroniclemaster1 ASP.NET 2.0 Basics 4 March 18th, 2008 09:55 PM
Providers!!! dpkbahuguna Beginning VB 6 0 July 2nd, 2007 07:17 AM
How to change the providers to use SQL 2005 AnnHan ASP.NET 2.0 Basics 2 May 21st, 2006 03:07 AM
Custom Providers bmains ASP.NET 2.0 Basics 1 September 15th, 2004 12:30 PM

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