Asp.net and SQL server

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

    The above message is given when I tried to conncet to SQL server from ASP.net Webpage. I did the following reading forums but none of them helped.

    1) added <identity impersonate="true" /> to web.config file

    2) unchecked Anonymous Access in Properties of webapplication in

    IIS.

    Please guide me with steps that can resolve the problem.

    Thanks in Advance!

  • This was removed by the editor as SPAM

  • Hello,

    Can you give me connection string please ?

    Try this : Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=base test;Data Source=yourServerName


    Kindest Regards,

    degrem_m
    Degremont

  • Thanks problem is sloved.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply