I installed the personal website on my localhost server and it works fine. But after installing on Doman.com hosting I got the following error message (below): Please help:
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)
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.
Exception Details: 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)
Source Error:
Line 194: Using command As New SqlCommand("GetNonEmptyAlbums", connection)
Line 195: command.CommandType = CommandType.StoredProcedure
Line 196: connection.Open()
Line 197: Dim list As New Generic.List(Of Album)()
Line 198: Using reader As SqlDataReader = command.ExecuteReader
lindatwinz
0 Points
2 Posts
Server Error in '/' Application.- error - But install works fine on localhost on my computer via ...
Aug 23, 2009 05:14 AM|LINK
I installed the personal website on my localhost server and it works fine. But after installing on Doman.com hosting I got the following error message (below): Please help:
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)
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.
Exception Details: 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)
Source Error:
Source File: D:\CustomerData\webspaces\webspace_00168320\wwwroot\lindamcgraw.com\App_Code\PhotoManager.vb Line: 196
Stack Trace:
junaid_arif
Participant
1326 Points
242 Posts
Re: Server Error in '/' Application.- error - But install works fine on localhost on my computer ...
Aug 23, 2009 08:55 AM|LINK
Have you adjusted the connection string for the new environment ? This is important please check
Junaid Arif
Software Engineer
PioneeringDev
Synistosa Technologies
lindatwinz
0 Points
2 Posts
Re: Server Error in '/' Application.- error - But install works fine on localhost on my computer ...
Aug 23, 2009 05:23 PM|LINK
I am not sure how to do that for my host Domain.com.
Domain.com allows MS SQL 2000 and asp.net
I was trying to configure it to use the personal.mdf which I copied to the app_data folder within the domain's folder.
This is how the script configured the web.conf file on my local host using Visual Studio 2005:
<configuration>connectionStrings>add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient" />remove name="LocalSqlServer"/>add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" />connectionStrings>
How do I convert to Domain.com enviroment?
Please advise.