Click here to Skip to main content
15,937,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The Exception:

Could not load type 'Service.WorkFlowForm.Contract.RequestDto' from assembly 'Service.WorkFlowForm.Contract, Version=, Culture=neutral, PublicKeyToken=null'.

I was referenced the Service.WorkFlowForm.Contract.dll, the class RequestDto was new add,i can load
other class in Service.WorkFlowForm.Contract.dll but RequestDto, what's wrong with that?any help?
Updated 23-Jun-23 4:19am

1.This error signals that your Service.WorkFlowForm.Contract.dll do not contains the RequestDto class, or the class that you are trying to access is private.

2.If your class was new added in your DLL, maybe your are referring a wrong version of the DLL and you have to clean your solution and rebuild all.
Share this answer
tanghuawei 15-May-14 5:21am    
thanks Raul Iloc,the class is public, and the version i referred was right too, i was referred it in WorkflowApplicationService.cs is ok but not work in WorkflowRuntimeEndpoint.cs,i have no idea
When you add a new class to the dll, and that class is used by both the server and the client, you have to deploy the new dll on both the server and the client (note: you ought to change the version number when you do such a change!).
Share this answer
tanghuawei 15-May-14 5:23am    
Thanks for Bernhard Hiller,how can i to change the version number?i should deploy the new dll instead of rebuild?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900