The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception

前端 未结 26 847
臣服心动
臣服心动 2020-11-30 06:17

I\'m working with EF5 in a MVC 4 aspnet website. Locally, everything works just fine, but when I publish it to the IIS and try to enter, I get the error

相关标签:
26条回答
  • The general issue is just any issue involving Machine/Web/App configs.

    I had the same connection strings in Machine.Config as in my App.Config so I put before my first connection string in my App.Config

    0 讨论(0)
  • 2020-11-30 07:11

    actual error thrown Message=Unrecognized element 'providers' in web.config so from the web.config file remove the providers section

    0 讨论(0)
提交回复
热议问题