Try to use your connection string is as below on your
web.config file.
<connectionStrings>
<add name="MyDb" connectionString="Server=.;database=MyDb;Trusted_connection=true;pooling=true;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
</connectionStrings>
I hope this will solve your problem.