Catalog="C:\USERS\JAM
Yo
But another solution could be to "merge" both database together:
Hi,
I'm in the process of creating a website that links to two databases, one for user authentication (microsofts default one), and a seperate database for storing the data to be used on the website. When I setup the second database, I created on the server, which I can only seem to connect to when I've got my instance of SQL Server Express edition running on my laptop, even though the connection string points to the server. I have also put the default membership provider database on the server, which appears to be accessesable, however when I try use it, it detects that a password is incorrect or that a user doesn't exist, but when I enter in a correct user account the page reloads, and the group specific content, i.e. menus doesn't appear.
I've tried accessing the pages via url, with everything running, but it just says I'm not autherised to view those pages.
When I do try to access the files I get an error page:
"
Server Error in '/' Application.
--------------------------
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlE
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.SqlClient.SqlI
System.Data.SqlClient.TdsP
System.Data.SqlClient.TdsP
System.Data.SqlClient.SqlI
System.Data.SqlClient.SqlI
System.Data.SqlClient.SqlI
System.Data.SqlClient.SqlI
System.Data.SqlClient.SqlC
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.SqlClient.SqlC
System.Web.DataAccess.SqlC
System.Web.DataAccess.SqlC
System.Web.Security.SqlRol
System.Web.Security.RolePr
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.Control.Ensu
System.Web.UI.Control.PreR
System.Web.UI.Control.PreR
System.Web.UI.Control.PreR
System.Web.UI.Control.PreR
System.Web.UI.Page.Process
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
"
I've looked this up and I have setup the server for remote connection, but it doesn't seem to make any difference on the website side of things.
I've attached my web.config file, hopefully that might help shed some light on this.
Any help at this would be really appreciated!!
Cheers
James
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Catalog="C:\USERS\JAM
Yo
But another solution could be to "merge" both database together:
Also in your AspNetSqlMembershipProvide
C:\USERS\JAMES\DOCUMENTS\D
Has the ASPNETDB.MDF been copied to the web server in this location. If not then SQL Server 2005 Express will not be able to find it.
You should publish the database in you App_Data folder and update you connection string to use the version on the remote server.
Thanks for the quick replies.
Ye I've enabled TCP, I can communicate with the server remotely, however it's accesssing the databases that's causing me the problems. I was origonaly, publishing both databases to App_Data folder but that didn't seem to work so I was trying to install them them on the server, which appears to have worked with my other database which I built from scratch on the server.
Yes ASPNETDB.MDF was copied to the webserver from that location, I was trying to install it on the server but in all honesty I'm not too sure I know how to know!
Business Accounts
Answer for Membership
by: wolfman007Posted on 2009-02-25 at 06:04:36ID: 23733615
Are you sure you have configured your SQL Server 2005 Express to accept remote connections?
om/kb/9142 77
xpress/arc hive/2004/ 07/23/ 1920 44.aspx
http://support.microsoft.c
Have you enabled the network protocols for local and remote connections?
Enable Protocols
a. Launch SQL Computer Manager
b. Expand "Server Network Configuration"
c. Expand Protocols for "SQLEXPRESS"
d. Enable Np (for local and remote access)
e. Enable TCP (for local and remote access)
Restart SQL Express
a. can be done from either SQL Computer Manager, Services applet, or command line( net start mssql$sqlexpress)
http://blogs.msdn.com/sqle