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

前端 未结 26 1219
臣服心动
臣服心动 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条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 06:58

    If you are maintaining one more cinfiguration file for app.config , Don't include any key in parent page.

    Parent Page : app.config

    
         
    
    

    Child Page : appSettings.config

    
       
    
    

提交回复
热议问题