Have you experienced this when you update the database (Code First) using the Package Manager?
I have a simple solution.
I just add the below script in web.config
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
and I made sure that the below script is present
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
And everything went fine.
have both the scripts placed already in my web.config, but still facing the issue
ReplyDeleteThank you very .is working
ReplyDeleteYou're welcome.
Delete