I already had vs2005 installed and the sql server that comes with it. I also installed ms sql server studio manager.
I got a project that is done in vs2008, and i got the database files as well: .mdf, .ldf
I installed vs2008 and it installed a bunch of features with it that it needs and i believe that it also installed the 2008 sql server though not sure.
i attached the database using the studio manager (right click, attach, browse...)
now i ran the website and when it tries to connect to the database iget the error below.
i think its trying to find the database on the 08 db server.. ? and i attached it to the 05 db server?
your help is greatly appreciated.
thanks in advance.
System.Data.SqlClient.SqlException was unhandled by user code
Message="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)"
Source=".Net SqlClient Data Provider"
at DAL.GetUser.getUser() in C:\Users\Rogue\Desktop\TechLink\TechLink\DAL\GetUser.cs:line 40
at BLL.LoginUser.Login() in C:\Users\Rogue\Desktop\TechLink\TechLink\BLL\LoginUser.cs:line 29
at TechLink.Login.btn_click_Click(Object sender, ImageClickEventArgs e) in C:\Users\Rogue\Desktop\TechLink\TechLink\TechLink\TL\Login.aspx.cs:line 30
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)