Error Using Trusted Connection in DB Connection String

If you are using a Trusted Connection in the connection string to a database and you get the following error:

Login failed for user (null).
Reason: Not associated with a trusted SQL Server connection.

Try adding this to your Web.Config File:

<configuration>
    <system.web>
        <identity impersonate="true" />
    </system.web>
</configuration>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>