Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' Possible Connection String Issue?

后端 未结 2 658
天涯浪人
天涯浪人 2021-01-12 18:39

I\'m attempting to deploy my first MVC application and I keep running into issues revolving around connecting to my sql server database. My current problem is that when I tr

相关标签:
2条回答
  • 2021-01-12 18:43

    If you intend to use integrated security you need to turn impersonation on:

    <identity impersonate="true" />
    

    Otherwise add username and password to the connection string:

    Data Source=myServerAddress;Initial Catalog=myDataBase;User ID=xxx;Password=yyy;
    
    0 讨论(0)
  • 2021-01-12 18:59

    Integration tests are passing but in debug mode your getting login failed for user 'NT AUTHORITY\ANONYMOUS LOGON', then I'd be adding authenticate to the Web.config:

    <system.web>
        <authentication mode="Windows"></authentication>
    
    0 讨论(0)
提交回复
热议问题