FileNotFound error when registering workflow assembly - workflow-foundation-4

I'm using the CRM Plugin Registration Tool to load a custom activity onto our CRM Server. My custom activity extends System.Activities.CodeActivity. However, whenever I try to regester the assembly, the following error appears:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.Assembly._GetExportedTypes()
at System.Reflection.Assembly.GetExportedTypes()
at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) in C:\Users\sblessing\Desktop\sdk\tools\pluginregistration\AssemblyReader.cs:line 60
at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)
at PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly) in C:\Users\sblessing\Desktop\sdk\tools\pluginregistration\RegistrationHelper.cs:line 49
at PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e) in C:\Users\sblessing\Desktop\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 127
Where do I need to copy my assemblies to get rid of this error?
Thanks!

You can check following..
1. CRM must support 4.0 framework.
2. Refere Workflow DLLs (System.Activity and others) at CRM or copy all these into directory.

Related

Could not load Kentor.AuthServices. A strongly-named assembly is required

I want to use Kentor.AuthServices to authenticate in my web app using Okta. I followed the article "How to use KentorIT AuthServices with Okta".
Because the application would throw an error:
The signing algorithm http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 is weaker than the minimum accepted http://www.w3.org/2000/09/xmldsig#rsa-sha1.
That's why I added in global.asax following line:
protected void Application_Start()
{
Kentor.AuthServices.Configuration.Options.GlobalEnableSha256XmlSignatures();
This line causes following error:
Could not load file or assembly 'Kentor.AuthServices, Version=0.21.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
How to solve this?

Could not load file or assembly 'Microsoft.Xrm.Client, Version ERROR

I'm creating an ASP web app that will connect to CRM.
but I got error every time I run my application:
ERROR
Could not load file or assembly 'Microsoft.Xrm.Client
Using the Microsoft.Xrm.Client.dll Version: 5.0.9690.2165 as reference give us an error :
Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9689.2166, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
But when we replace the dll with Microsoft.Xrm.Client.dll Version: 5.0.9689.2166 as reference give us an error:
Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9690.2165, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
And I cant add both version as my Reference.
I'm confused what version on of the Microsoft.Xrm.Client.dll Version to use to debug this Error.
Please let us know if you were able to resolve this, if so what was the reason.
In my case, i had a plugin which was used to create users in MSCRM.
I had two different organizations, Org A and Org B.
As per functionality it was needed that whenever a new user is created in Org A same should be created in Org B
So we registered the plugin on Org A
As the organization B was created using database restore the same plugin was also registered in org B
So, on Creation of user in Org A, plugin of Org A was triggered, which tried to create User in Org B
At the same time as the same plugin was available in Org B it was also triggered.
As per my understanding Org B also tried to load the assembly Microsoft.Xrm.Client.dll which was currently being used by plugin of Org A.
So we were getting the error
Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9689.2166, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Hope this will help somebody!

Could not load file or assembly 'Autofac, Version=3.0.0.0

I am trying to connect enFinder file manager to my asp.net project with this connector. I added Autofac Version 3. Afterwards I removed the reference and added a reference to Autofac 2.6. Now the following error occurs:
Could not load file or assembly 'Autofac, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
How can I fix this problem?
Delete all Autofac references in your project and add them again, using the correct Autofac DLL. The mismatch occurs when the reference you've added to your project via the Add Reference menu is not the same version as the actual file. This happens when you exchange the physical DLL file on your disk to which the reference in your project points.

Configuration error on my asp.net azure service using devexpress

I'm trying to publish my cloud service (which includes web role with devexpress 13.1 controls and worker role) to azure cloud.
Everything works very good on my local computer and the publish process complete successfully but when i'm trying to view the website on the cloud I get the following error:
Server Error in '/' Application.Configuration ErrorDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 31:
Line 32:
Line 33:
Line 34:
Line 35:
Source File: F:\sitesroot\0\web.config Line: 33
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045
Does someone know how to fix it?
Thanks for any help,
Tom.

Could not load file or assembly 'MySql.Data, Version=6.3.6.0

I'm at a COMPLETE loss - I'm having super wierd issues with what I still really dont even understand... I'm running Entity Framework 4.1, MySql 5.xx and my MySql Connector is v 6.4.4 - everything works beatifully locally however whenever I upload to the server I receive:
Could not load file or assembly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
Line 48: /// Initializes a new proventradesEntities object using the connection string found in the 'proventradesEntities' section of the application configuration file.
Line 49: /// </summary>
Line 50: public proventradesEntities() : base("name=proventradesEntities", "proventradesEntities")
Line 51: {
Line 52: this.ContextOptions.LazyLoadingEnabled = false;
Source File: e:\web\proventrade\htdocs\App_Code\ProvenTrades.Designer.cs Line: 50
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
I am SO confused, I am positive that I have MySql 6.4.4 dll's in my Bin directory, also my Web.config makes ZERO references to version 6.3.6 - I've searched my entire project (using global find) for 6.3.6 and even just for MySql to see if I can find ANY random references to this rogue 6.3.6 version but I find nothing!
I'm so lost and am getting no where. I would GREATLY appreciate any guidance on this, thanks so much in advance.
You must add provider library to bin directory in your web application and register provider in your web.config
Then You must download Connector .Net Mono here.
And put Dlls into bin folder.

Resources