Cant get the couchbase .net memcache client to run, complains it's strong name validation failed

徘徊边缘 提交于 2019-12-08 02:39:47

问题


The error:

Could not load file or assembly 'Enyim.Caching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cec98615db04012e' or one of its dependencies

This is on server 2008, I tried disabling the strong name validation, but the instructions are totally wrong for server, and I dont' really trust this anyhow, how will I get it to work on the prod server.

Wild frustrating..

The server is up and happily running, but I can't get any memcache client to actually work..

I assume someone, somewhere has managed to make this work...


回答1:


Enyim.Caching.dll, which is a dependency of Couchbase.dll, is delay signed. So if you're running from Visual Studio, you'll need to disable assembly validation for this assembly. If you open up the Visual Studio Command Prompt and type the following, you should no longer see the error:

sn -Vr *,cec98615db04012e

Please let me know if this fix doesn't work for you. Also, be sure to run the this command in Administrator mode or sn.exe will fail since it needs to update the registry with the exception.

-- John



来源:https://stackoverflow.com/questions/8977053/cant-get-the-couchbase-net-memcache-client-to-run-complains-its-strong-name-v

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