Could not load type from assembly exception in mono

a 夏天 提交于 2019-12-24 12:46:31

问题


I am new to c# and mono. and I encountered a strange question. I have 2 projects in my solution. and one is dependent on another one called CoreLogic. I've already set up the dependency and the compilation is successful. However, when I run it and sent it a request, the program throws an exception like:

server Error: Could not load type 'Logic.RedisStorage' from assembly 'CoreLogic, Version=1.0.5750.32870, Culture=neutral, PublicKeyToken=null'.

the strangest thing is that I can see the Logic.RedisStorage class is present in the assembly CoreLogic of xamarin studio. but the program still complains. So, what is wrong here?

EDIT: I've tried to re-add the dependency of CoreLogic, but it turns out no luck. here is what the mono has complained:

the assembly version does match what server is dependent(I can not upload imgs right now, so check following link for detail):

https://www.evernote.com/l/APWLUXOQa5pAxrm3MUZDhxZ88KkJ2Y5bhl0


回答1:


These cases occur because of mismatch of version number of Dll's references.

Rebuild your CoreLogic and Remove the refrence of CoreLogic and again add the reference.



来源:https://stackoverflow.com/questions/32841767/could-not-load-type-from-assembly-exception-in-mono

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!