Home Dashboard Directory Help

WF4 - Could not load file or assembly 'XXXXXX' or one of its dependencies. The system cannot find the file specified. by acivic2nv


 as Not Reproducible Help for as Not Reproducible

Sign in
to vote
Type: Bug
ID: 527515
Opened: 1/27/2010 11:01:31 AM
Access Restriction: Public
User(s) can reproduce this bug


I am trying to learn WF4 so i downloaded the following example:

I am working with the Purchase Process c# example. I created an app based on this work flow and tried running it. As soon as i try to make a call to WorkflowApplication.Run() I get a long list of exceptions. I went to Debug->Exceptions and checked off Common languages Runtime Exceptions so I would be able to see where the error is.
The exception that came up is "Could not load file or assembly 'System' or one of its dependencies. The system cannot find the file specified."

I didn't receive this error when looking at the Purchase Process example until i noticed their was a WinForm Client. So i switched the start up from the Web client to Win Form client and started to receive the same types of errors when WorkflowApplication.Run() is called.

"Could not load file or assembly 'System.Activities' or one of its dependencies. The system cannot find the file specified"
Sign in to post a comment.
Posted by Microsoft on 2/15/2010 at 10:54 AM
Can you try the RC build? You can get that here:

Posted by acivic2nv on 2/9/2010 at 11:06 AM
This is a new install, no configuration on my part
Posted by Microsoft on 2/9/2010 at 10:45 AM
Hi CoreyFournier,
I tried to reproduce this on a clean installation of Beta 2 and could not. The symptoms you are seeing and lack of repro on another machine seem to point to a machine configuration issue. This is potentially an issue with the Beta 2 installation on your machine, so I would point you to the VS 2010 prerelease forums (http://social.msdn.microsoft.com/Forums/en-US/vstsprerelease/threads) for more help in debugging this problem.

Nate Talbert
Posted by acivic2nv on 1/28/2010 at 9:20 AM
I copied all of the dll's from C:\Windows\Microsoft.NET\Framework\v4.0.21006 to the bin directory of my project and it ran correctly.
Posted by Microsoft on 1/28/2010 at 3:03 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.