MCPBlog

April 2010 - Posts

TSWA 2008 error - Attempted to read or write protected memory
Body:
If you experience following error accesing TFS web access, don't worry there is a solution.
 
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below."
 
Go to TFS cache folder "C:\Program Files\Microsoft Visual Studio 2008 Team System Web Access\Cache" and add NETWORK Account Change Permission.
 
Note!!!
If this doesn't work, go to web.config of TFSWA and modify location of cache to new location.
 
<configuration>

<appSettings>
<add key="WorkItemTrackingCacheRoot" value="C:\newlocation" />
....
</appSettings>

</configuration>
 
And reconfigure NTFS permissions for NETWORK account.
 

 
Published: 10.4.2010 15:32