SqlConnection

Discussion in 'ASP .Net' started by Arun S via .NET 247, Aug 4, 2004.

  1. When i use the SqlConnection class to establish a connection to asql server, i get the following error. But when i verify theconnection using a .udl file, it succeeds. Further it also worksthrough an .asp file (Server.CreateObject("ADODB.Connection"))!!!

    [SqlException: SQL Server does not exist or access denied.]
    System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&isInTransaction) +474
    System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
    System.Data.SqlClient.SqlConnection.Open() +384
    test.WebForm1.Page_Load(Object sender, EventArgs e) inc:\inetpub\wwwroot\test\webform1.aspx.cs:44
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +35
    System.Web.UI.Page.ProcessRequestMain() +731

    Any idea ?!?!

    --------------------------------
    From: Arun S

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>c6ngVEcZqEqeoVHQ84thsw==</Id>
     
    Arun S via .NET 247, Aug 4, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark

    Can't open a SqlConnection

    Mark, May 9, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    734
  2. Nick
    Replies:
    0
    Views:
    423
  3. WebDevHokie

    Re: Reflection and SqlConnection

    WebDevHokie, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    438
    WebDevHokie
    Jul 10, 2003
  4. WebDevHokie

    Re: Reflection and SqlConnection

    WebDevHokie, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    410
    WebDevHokie
    Jul 10, 2003
  5. William F. Robertson, Jr.

    Re: vbc cant find system.data.sqlClient.sqlConnection

    William F. Robertson, Jr., Jul 28, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    656
    William F. Robertson, Jr.
    Jul 28, 2003
Loading...

Share This Page