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

2.4k views Asked by At

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

There are 1 answers

5
John Zablocki On BEST ANSWER

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