You must Sign In to post a response.
  • Category: Suggestions

    I have a problem in Database connection

    I have developp a website with asp.net 2005 express edition and sql server 2005 express but when I have upload the files of my website (Databese, webroot) , I have got a message error about database connection
    Please help me to find solution as soon as possible, because i need to send demonstration to a recruiter.
    Thank you in advance

    Here is the error message

    Server Error in '/aspdev1' Application.
    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 2923: if (((command.Connection.State & global::System.Data.ConnectionState.Open)
    Line 2924: != global::System.Data.ConnectionState.Open)) {
    Line 2925: command.Connection.Open();
    Line 2926: }
    Line 2927: object returnValue;

    Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\aspdev1\772ecc71\b8d57884\App_Code.tj-je9mb.0.cs Line: 2925
  • #7071
    Did you update your connection string typically found within the web.config file? Your local SQL Server and the one here will have different names.

  • #7072
    i have updated my webconfig file. i too have the same problem.please help me.....

  • #7073
    please............


  • Sign In to post your comments