I have a Sharepoint/Typemock demo system that has been working in the past. I have upgraded to to VS2010RC and Isolator 6.0.1.0 (saw the same problem with 6.0.0.0) and am seeing some problems.
When I try to call the following line from inside a ASPX page Load event
protected void Page_Load(object sender, EventArgs e)
{
SPSite fakeSite = Isolate.Fake.Instance<SPSite>();
}
If running VS2010 as Admin get the error
"Could not load file or assembly 'TypeMock, Version=0.12900.25133.13153, Culture=neutral, PublicKeyToken=37342d316331342d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"TypeMock, Version=0.12900.25133.13153, Culture=neutral, PublicKeyToken=37342d316331342d"}"
If runniung as a non admin I get the error
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
If I make the same SPSite call in a standard test all is OK.
With the 6x series do I need to reference something other than typemock.dll and typemockactAssertarrange.dll
Now as I said this has been working with 5.4x and VS2010Beta2, as I use the style to allow a SharePoint web part to be run inside a ASP.NET web harness.
I wil check with other versions of VS, but wondered about Typemock API changes