提供程序未返回providermanifesttoken字符串ASP.NET [英] The provider did not return a providermanifesttoken string ASP.NET

查看:53
本文介绍了提供程序未返回providermanifesttoken字符串ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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

推荐答案

Google也是您最好的资源。



让我谷歌为你 [ ^ ]



以下是一些描述完全相同问题的链接,可能有助于您的案例

问题:提供商未返回ProviderManifestToken字符串。 [ ^ ]





错误:提供者没有返回ProviderManifestToken tring [ ^ ]



此外,我建议用(替换)(LocalDB)。并确保SQL实例服务正在运行
Google is your best resources too.

Let me Google that for you[^]

Here are some links that describe the exact same issue and might help your case
Issue : The provider did not return a ProviderManifestToken string.[^]


Error: The provider did not return a ProviderManifestToken string[^]

Also, I would suggest replace (LocalDB) with . and make sure the SQL instance service is running


这篇关于提供程序未返回providermanifesttoken字符串ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆