问题描述
我正在使用ASP.NET MVC
这是我的配置连接字符串,但我无法连接到数据库
异常 - 从数据库获取提供程序信息时发生错误。这可能是由实体框架使用不正确的连接字符串引起的。检查内部异常以获取详细信息并确保连接字符串正确。
内部异常 - 提供程序未返回ProviderManifestToken字符串。
I'm Using ASP.NET MVC
This is my Configuration Connection String but i cannot connect to the database
Exception - An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.
Inner Exception - The provider did not return a ProviderManifestToken string.
Why is that ? what is the Wrong ?
Thank in advance!
<connectionStrings>
<add name="ReportReffAddContext" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\OilSystem.mdf;Integrated Security=True" />
</connectionStrings>
我尝试过:
删除数据目录并替换本地路径但没有运气
What I have tried:
remove the data directory and replace the local path but no Luck
推荐答案
这篇关于提供程序未返回providermanifesttoken字符串ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!