Results 1 to 3 of 3

Thread: Web Service & SQL Server Authentication

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    South Africa
    Posts
    28

    Question Web Service & SQL Server Authentication

    Hi there

    I have this weird problem. I created a Web Service that extracts data from the SQL Server and then return it as a XML document.

    The problem is when the Web Service gets to the code to open the Connection to the server it gives this error.

    System.Data.SqlClient.SqlException: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.


    Now my Win32 application works just fine, using the same code. Thus I believe the problem might be the settings of IIS.

    But unfortunately I don't even know where to start looking.

    Some help would really be appreciated.

    Thanx in advance

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    If you are trying to open a connection via sql server authentication (note: not windows), you need to grant access to that account in your db. If you are using windows authentication, you need to grant access to the asp.net account.

  3. #3
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Wink

    Sorry misread

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