1
Vote

StateMachineStateRecord error

description

Warning as Error: Reference to type 'System.Activities.Statements.Tracking.StateMachineStateRecord' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Activities.dll', but it could not be found
c:\tfsprod\Shared\Dev\Assemblies\Microsoft.Activities.UnitTesting.dll

At runtime, this gives:
Could not load type 'System.Activities.Statements.Tracking.StateMachineStateRecord' from assembly 'System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

I'm assuming this is because we have not installed the StateMachine update to WF.

So basically this is unusable under straight .NET 4.0.

No files are attached

comments

bsorensen wrote Feb 16 at 7:16 PM

I re-downloaded and retried.
I made sure to get Microsoft.Activities.UnitTesting.NET40.2.0.1.7.zip
(it's not at all obvious that that's the one to download).

I'm still getting the same warning about StateMachineStateRecord.

ronjacobs wrote Feb 15 at 4:57 PM

Are you sure you got the version that is built for .NET 4? I build for .NET 4 and .NET 4.0.1 or higher.