Exception : The provider did not return a ProviderManifestToken string-Entityframework

时间秒杀一切 提交于 2019-12-07 01:31:16

Your connection string uses Integrated Security = true.

This means that the connection to the database is made using the security context of the calling process.

When you run locally you are in the security context of your user. Therefore, it works.

When you deploy to IIS, the default is that you are in the security context of the application pool, which is NETWORK SERVICE. Since NETWORK SERVICE does not have access to the database you get an error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!