Results 1 to 2 of 2

Thread: Problem connecting from Web App

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    2

    Problem connecting from Web App

    My Windows application connects fine to the Sql Server I have on my machine but the same code in a Web Application does not. Here is the code in the Windows App and the Web App.


    Dim objConnection As New SqlClient.SqlConnection ("Server=Elliot;Initial catalog=Pubs;Integrated Security=true")

    objConnection.Open()


    Here is the error message I get when running the Web App.

    Login failed for user 'ELLIOT\ASPNET'.
    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: Login failed for user 'ELLIOT\ASPNET'.

    Source Error:


    Line 21:
    Line 22: Dim objConnection As New SqlClient.SqlConnection("Server=Elliot;Initial catalog=Pubs;Integrated Security=true")
    Line 23: objConnection.Open()


    Any help would be much appreciated.

    Thanks,
    Elliot

  2. #2
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442
    Problems loggin in, try to use the login details in the SQL connectionstring, like: User ID=James;Password=bond;
    There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width