Thursday, March 12, 2009

Common Language Runtime detected an invalid program

This is the error that came up today with our medium level server MOSS 2007 farm. The user was trying a simple function - creating a view in a list or a document library. We tried to see eventlogs and 12/logs but that didn't give us much information. Eventlog had a general error and on researching that we found out that it is related to a .net framework 2.0 error and there was a patch released for that. I could not quite believe that it will solve this issue because this patch was about 2 years old. I noticed that I was not able to remote in to one of our two webservers.

We found out that the webserver had hung up because of memory limit reached. The page file was full. So we, increased the page fill limit to 4 GB by going to My computer > properties > advanced and performance properties. I did an iisreset which brought down the PF usage from 5.2 GB to about 2.4 GB. We tried again and the error disappeared. This is a temporary fix and we are planning to move the page file to D:\ and also increase RAM from existing 4 gigs to 8. Lesson learnt - monitor your PF usage and your peak should not exceed you RAM. If it does, consider expanding your RAM.

No comments: