问题
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