Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We recently moved our application from Windows server 2003 to Windows server 2012. Application has two components-- one is MVC and other one is simple ASP.NET with aspx pages. Application is working fine but sometimes we receive-- Attempted to read and write protected memory . This is often an indication that other memory is corrupt error.

When I checked Event Viewer for the error, below is the exception: Exception information: Exception type: HibernateException Exception message: Creating a proxy instance failed

When we get this error, we usually recycle app pool and issue gets resolve. Need your inputs for long term fix.

What I have tried:

We recently moved our application from Windows server 2003 to Windows server 2012. Application has two components-- one is MVC and other one is simple ASP.NET with aspx pages. Application is working fine but sometimes we receive-- Attempted to read and write protected memory . This is often an indication that other memory is corrupt error.

When I checked Event Viewer for the error, below is the exception: Exception information: Exception type: HibernateException Exception message: Creating a proxy instance failed

When we get this error, we usually recycle app pool and issue gets resolve. Need your inputs for long term fix.
Posted
Updated 18-Jul-17 7:41am

A bit simple-minded a comment, but in case you've not considered it:

Symptoms and Attributes:
1 - You can resolve issue by modifying a resource that's limited.
2 - You only get this message sporadically.
3 - Likely cause, then, is a failed allocation, leaving you reading/writing to a null pointer.
4 - Perhaps no error handler to check for this, either?

You need to have the app pool recycle to occur as a job - not wait for it to fail.
Trap the untrapped error (if any).

The above is generically true for this type of error; going back to the days of 'C'.
 
Share this answer
 
v2
There is no way for anyone to be able troubleshoot this except yourself. You haven't provided any usable information at all.

But, there is a hint in the Exception message:
Exception information: Exception type: HibernateException Exception message: Creating a proxy instance failed


According to the Java documentation, a HibernateException is the parent class for a ton of SQL related exceptions.

It would appear that you're doing something properly related to any SQL database work, possibly not properly closing a dataset somewhere, a connection object, a reader, ... anything.

With the information you provided, that's the best answer you're going to get.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900