<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Configuration and Deployment</title><link>http://forums.asp.net/26.aspx</link><description>Configuring and deploying ASP.NET applications - web.config, \bin, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: SQL Connection Err</title><link>http://forums.asp.net/thread/3278549.aspx</link><pubDate>Tue, 07 Jul 2009 09:16:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3278549</guid><dc:creator>Thomas Sun – MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3278549.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=3278549</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If host server support SQL Server Express Edition, we need to make sure the connection string is correct, such as server name and make sure the instance name is correct and there is actually such an instance on target machine. For more information, see &lt;a href="http://blogs.msdn.com/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx"&gt;http://blogs.msdn.com/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If there is not SQL Server Express Edition on host server. For example, the SQL Server Full Edition is available on server, you can attach the database file to SQL server or create new database on it, and then modify connection string to point new database in web.config. &lt;/p&gt;
&lt;p&gt;For more information about connection string, see &lt;a href="http://www.connectionstrings.com/"&gt;http://www.connectionstrings.com&lt;/a&gt; and (Deploying a SQL Database to a Remote Hosting Environment) &lt;a href="http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I look forward to receiving your test results.&lt;/p&gt;</description></item><item><title>Re: SQL Connection Err</title><link>http://forums.asp.net/thread/3274404.aspx</link><pubDate>Sat, 04 Jul 2009 07:33:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274404</guid><dc:creator>HostingASPNet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274404.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=3274404</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You could also check here -&amp;nbsp;&lt;a class="" title="deploy SQL Server Express on VPS ASP.NET hosting" href="http://www.windowshostingasp.net/windows_hosting_forums/showthread.php?t=1638"&gt;&lt;strong&gt;deploy SQL Server Express on VPS ASP.NET hosting&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>Re: SQL Connection Err</title><link>http://forums.asp.net/thread/3274323.aspx</link><pubDate>Sat, 04 Jul 2009 06:20:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274323</guid><dc:creator>integrasol</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274323.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=3274323</wfw:commentRss><description>&lt;p&gt;Has SQL Server Express Edition been installed on the server, and if so, is it using the default instance name, SQLEXPRESS?&lt;/p&gt;</description></item><item><title>SQL Connection Err</title><link>http://forums.asp.net/thread/3273765.aspx</link><pubDate>Fri, 03 Jul 2009 15:31:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273765</guid><dc:creator>bullet_proof302</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273765.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=3273765</wfw:commentRss><description>&lt;p&gt;Hello everybody,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been giving the publishing link from&amp;nbsp;the web server admin and I published my project&amp;nbsp;there. however, when I want to check any page using my&amp;nbsp;database, it gives me this error&lt;/p&gt;
&lt;p&gt;the database resides in the App_Data folder of my project and my connection string is :&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;add&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ConnectionString&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;connectionString&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDB.mdf;Integrated Security=True;User Instance=True&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;providerName&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;System.Data.SqlClient&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Please help!!!!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;font size="6"&gt;
&lt;p&gt;Server Error in &amp;#39;/&amp;#39; Application. &lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;
&lt;p&gt;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)&lt;/p&gt;&lt;/font&gt;&lt;font face="Arial, Helvetica"&gt;
&lt;p&gt;Description: &lt;/p&gt;&lt;/font&gt;
&lt;table cellspacing="0"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;font size="2" face="Courier New"&gt;&lt;font size="2" face="Courier New"&gt;
&lt;p dir="ltr"&gt;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.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial, Helvetica"&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;font face="Arial, Helvetica"&gt;
&lt;p&gt;&lt;br /&gt;&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;/p&gt;&lt;/font&gt;
&lt;table cellspacing="0"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;font size="2" face="Courier New"&gt;&lt;font size="2" face="Courier New"&gt;
&lt;p dir="ltr"&gt;[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)]&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844759&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4858065&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +4859187&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.SqlClient.SqlConnection.Open() +122&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState&amp;amp; originalState) +31&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.Internal.DataHelper.PerformSelect() +149&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxGridView.GridViewDataHelper.PerformSelect() +119&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.Internal.DataContainer.PerformSelect() +124&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.DataBindCore() +15&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.DataBind() +104&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxGridView.ASPxGridView.DataBind() +190&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.Internal.DataHelperBase.EnsureDataBound(Boolean ensureChildControls) +89&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.Internal.DataContainer.EnsureDataBound() +132&lt;/p&gt;
&lt;p dir="ltr"&gt;DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.OnPreRender(EventArgs e) +22&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.Control.PreRenderRecursiveInternal() +80&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;/p&gt;
&lt;p dir="ltr"&gt;System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/i&gt;&lt;/b&gt;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. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Data.SqlClient.SqlException: 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)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;/b&gt;&lt;/p&gt;</description></item></channel></rss>