Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. default settings SQL Server does not allow remote connections

default settings SQL Server does not allow remote connections

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serversysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amit Agarrwal
    wrote on last edited by
    #1

    hello all, I'm getting this error when connecting to my sql server 2005 with asp.net 2.0 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: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider) Regards

    Amit Agarwal

    N 1 Reply Last reply
    0
    • A Amit Agarrwal

      hello all, I'm getting this error when connecting to my sql server 2005 with asp.net 2.0 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: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider) Regards

      Amit Agarwal

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Enable the remote connections in SQL server surface area management. Make sure you don't have any firewalls running which blocks SQL server port.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      A 1 Reply Last reply
      0
      • N N a v a n e e t h

        Enable the remote connections in SQL server surface area management. Make sure you don't have any firewalls running which blocks SQL server port.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        A Offline
        A Offline
        Amit Agarrwal
        wrote on last edited by
        #3

        Thnaks for the reply, yeah, I did the certain changes from server surface area Management.i'm trying to connect sql server 2005 express edition with asp.net 2.0 on a single my PC. but still getting the same error.

        Amit Agarwal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups