WCF Service returns 400 Bad Request

后端 未结 3 914
感动是毒
感动是毒 2021-01-19 20:25

I\'ve got this application that works locally and when deployed and using a .mdf SQL Express database file (which I usually use for testing purposes). However, when I change

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-19 21:10

    A database connection from a hosted WCF Service is considered a remote connection so make sure your connection strings specifies the authentication method. So try using Integrated Security=SSPI in your connection string and if that doesn't work make sure that your Application Pool's Identity is set to a domain account that has permissions on the SQL server. :)

提交回复
热议问题