Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to know how to deploy aspnetdb.mdf on server?
when i put my website on live server and tried to login i got following error message.
error:
Deploying Aspnetdb Membership .. Error: 26 - Error Locating Server/Instance

i am using inbuilt membership function in visual studio for login.
My website works great on my client when I test from vs.net 2005. Howevever, when I deploy to the web server, I get this error: remotely and local from the web server. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) My web config contains this: <connectionstrings> <remove name="LocalSqlServer"> There is no sql server install on the Web Server. I used vs.net 2005 to create the site on my client. Thanks for any help or information.
Posted

1 solution

The machine you are deploying to needs to have SQL Express 2005 installed so that all the required bits are there. Check out this walkthrough[^] and there's another link in there to this guide[^].

Cheers.
 
Share this answer
 
Comments
patelKhyati 19-Nov-10 2:05am    
i have sql express 2005 installed. i already deploy whole website with other databases but not aspnetdb.mdf as it is local database and created by visual studio itself. so i want to know if there's ny way to deploy aspnetdb.mdf
thanks
TheyCallMeMrJames 19-Nov-10 9:49am    
The links I posted have a walkthrough for deployment. Did these not work for you?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900