Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Authentication problem after moving site

Status
Not open for further replies.

MalCarne

Technical User
Apr 1, 2005
70
US
I've been working on a site that uses .net authentication and roles. Everything is working fine on my dev box, but when moving it up to a staging server, I get the following error at login:provider: SQL Network Interfaces, error: 26 -Error Locating Server/Instance Specified

I know that this lies in my web.config, but I'm out of ideas as to what the correct settings would be. Here's the relavant piece of the web.config:
Code:
<authorization>
			<allow users="?"/>
		</authorization>
		<roleManager enabled="true">
			<providers>
				<remove name="AspNetSqlRoleProvider"/>
				<add connectionStringName="LocalSqlServer" applicationName="stratton" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
				<remove name="AspNetWindowsTokenRoleProvider"/>
				<add applicationName="slg" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
			</providers>
		</roleManager>
		<authentication mode="Forms">
			<forms loginUrl="clients/login.aspx"/>
		</authentication>

Any insight that can be provided is appreciated. Thanks in advance.
 
connectionStringName="LocalSqlServer"

- whats your connection here?
 
This is where I get a bit lost. I've uploaded the db in the app_data directory, which I mistakenly thought would use the same connection.
 
I guess the question at hand is how to reference the aspnetdb.mdf as the authentication data source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top