publish error in asp.net
<p>i have designed web application in asp.net...i have publish a website..
 i have create virtual directory and copy the publish file....
 and browse the website...</p>

<blockquote>
  <p>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: Named Pipes Provider, error: 40 >- Could not open a connection to SQL Server) 
  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. </p>
  
  <p>Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a >connection to SQL Server)</p>
  
  <p>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.</p>
</blockquote>
