0

My web site is on MVC5 + EntityFramework 6 code first. When running localy it works fine. But after deployment (as Azure website and Azure SQL DB) it has materialization errors like this. On different pages there are different errors, but all of them is about materialization.

What we tried to solve this problem:

  1. Increased database timeout from 30 to 120 like suggested here Entity Framework “Invalid attempt to read when no data is present” with 'large' data on Azure . This did not help.
  2. Connected to Azure DB from local web site instance in debug mode, but did not catch any errors.
  3. Then we created one Azure resource group and placed both web site and DB in that group (At first time web site was in other group). And it looks like error is not apear any more.

So we found some workaround but did not fix error. And there is no garanties that this exceptions will never apear again. Did somebody faced such errors?

Community
  • 1
  • 1
SunLiiL
  • 1
  • 1
  • Looks like an application issue, when converting Guid to Int32 or vice-versa. – Abhijeet Nov 27 '15 at 13:43
  • Thank you for reply, but it is not a cause of error. Db was created via code first migrations and there are no custom mappings from sql responce to entities. And this error is not reachable even when debugging in VS it appears only when running on Azure. – SunLiiL Nov 27 '15 at 16:15

0 Answers0