mlv_ sanjay
mlv_ sanjay

Reputation: 23

Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information

I am trying to create a workflow in VS 2010, SharePoint 2010, Windows Server 2008 R2 environment. I added a sequential workflow to the application. When I was trying to build the application, it was throwing the below error because of the workflow.

Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

I tried all the solutions given in this site but no use.

Please help.

Upvotes: 2

Views: 10030

Answers (1)

Nanhydrin
Nanhydrin

Reputation: 4472

There are a few things you can try to help diagnose this.

Firstly check that your projects are set to compile against the right version of the .NET framework. If your project dll references are using an older version of .NET but you're compiling against a newer one that could cause problems.

Next you should use the Assembly Binding log viewer (also known as Fuslogvw) to record exactly what dlls are failing to load and where they're being looked for as it may just be that one of them isn't in the right place but it should give you more information on why it can't be loaded.

Also, if you're referencing a x64 dll on an x86 system, or vice versa that would also cause a similar error, but the Assembly Binding log viewer should highlight those sorts of problems.

Upvotes: 3

Related Questions