how to publish my project

hibatmimi
 
on Apr 24, 2012 01:45 AM
3825 Views

Hello everybady ,

I have done with my project in visual studio 2008 , it is like a webpage and first, it should be in the comapany intranet then to the intarnet.

my question is how to deploy my asp.net application on CD so i can give it to my manager to put it in the intranet later.

another question:i put my visual studio project on USB then when I put the USB on onother computer and open the project , it doesn't show the database , which i put it in server explorer and it gives me this error

 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)

 

this is my connection :

<connectionStrings><add name="GOEEConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Documents and Settings\900244\My Documents\Visual Studio 2008\Projects\IDB\IDB\App_Data\GOEE.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />

<add name="GOEEConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\GOEE.mdf;Integrated Security=True;User Instance=True"providerName="System.Data.SqlClient" />

 </connectionStrings>

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Mudassar
 
on Apr 24, 2012 03:27 AM

Your second connection string is correct. The first one is machine specific hence it will not work on other machines as it will not find that path.

Secondly for the second connection string to work you must have the database in App_data folder