LINQ to SQL: intermittent AccessViolationException wrapped in TargetInvocationException

后端 未结 2 1207
春和景丽
春和景丽 2021-02-13 16:55

Since a few weeks we are experiencing W3WP-crashes with our ASP.Net web application. These started after our webservers were updated. Our application did not change and has been

2条回答
  •  心在旅途
    2021-02-13 17:39

    Hard to tell without seeing any of your Linq Code but I would venture a wild guess that an it's an internal (casting) error with the linq library you are using.

    As you mentioned that you upgraded recently
    (which .NET version did you upgrade from and to ?)

    I had similar issue which was resolved by installing windows updates, which you say you have done with some resulting success?

    Try to identify the user inputs that cause error. Try to handle the casting yourself rather than relying on Linq

提交回复
热议问题