How to build src ? #111

Closed
batooo opened this Issue Sep 5, 2012 · 15 comments

Projects

None yet

8 participants

@batooo
batooo commented Sep 5, 2012

Hey all,
I`m kinda noowbie and never used powershell, but ill tell you what i want to make.

I want check dead node is found to add "Send email" or "Do some other staff", just to make sure i shutdown my node and flush everything in it.

This will help me, when node come back so memcached dont have duplicate key.

As i saw on net, if i have 3 servers and key "test" in on 3th one, when 3th on drop i set "test" on 2nd, but when 3th server come online, it may heppen to get the "test" get from 3th server again, even i stored in 2nd. Thats why i want check memcached detect dead node, to be sure it dead..and flush it.

So how i can build memcached src? Powershell? What is private snk?

batooo commented Sep 5, 2012

p.s sorry, this is not issue , i just need help :)

sjbwylbs commented Sep 5, 2012

i have this confusion too.

batooo commented Sep 5, 2012

we are on same way then :), we are waiting for some step by step info :)

Owner
enyim commented Sep 5, 2012

You open the solution in VS and press ctrl+shift+b.

batooo commented Sep 5, 2012

uf my build directory was wrong.. and i got confused with snk key

so sjbwylbs, Enyim.Memcacehed Class library -> right click -> properties -> Build -> set your Output folder

sjbwylbs commented Sep 6, 2012

i am update the Nunit with nuget and then it can build.
but it can't be debug?

Enyim.Caching should be set to delayed signing?

diff --git a/Enyim.Caching/Enyim.Caching.csproj b/Enyim.Caching/Enyim.Caching.csproj
index 4839b1c..e2123d2 100755
--- a/Enyim.Caching/Enyim.Caching.csproj
+++ b/Enyim.Caching/Enyim.Caching.csproj
@@ -12,6 +12,12 @@
Enyim.Caching
v3.5

  • true
  • true
true

bah that patch doesn't work when pasted, properties of Enyim.Caching => signing. Ensure that Delay sign only is checked or turn off signing to allow debugging.

sjbwylbs commented Sep 6, 2012

when turn off signing.or unchecked delay signing.the project DemoApp throws can't load DemoApp or it's dep.

I'm having the same issue, I'm trying to build the project in the .Net 4.0 framework and the build is successful with signing unchecked but if I try to reference the dll's in other projects I get this error:
Could not load file or assembly 'Enyim.Caching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cec98615db04012e' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

i know it.please import the cer.by double click the cer.then you can build it.

This seems to be a common challenge. Hoping someone can help. I downloaded the source code, opened in VS2010, successfully built the project. Added a reference to Enyim.Caching to my custom project and this is the error shown at run-time:

Could not load file or assembly 'Enyim.Caching' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Any suggestions? I just want to enjoy using Enyim Caching in the simplest way possible. ;)

Thanks for your time.

David

Please click “ public_key.snk”,import the cer sign.then you can run it.

OneMHz commented Dec 6, 2013

I'm getting the same error. Built versions of the assembly from NuGet work fine, though. Windows doesn't directly import .snk files. Is there another program I can run it through to get a format windows can use? Maybe some more trace info would help?

=== Pre-bind state information ===
LOG: User =
LOG: DisplayName = Enyim.Caching
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Enyim.Caching | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Projects/sandbox/memcachedsession/
LOG: Initial PrivatePath = C:\Projects\sandbox\memcachedsession\bin

Calling assembly : (Unknown).

LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Projects\sandbox\memcachedsession\web.config
LOG: Using host configuration file: C:\Users\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users//AppData/Local/Temp/Temporary ASP.NET Files/root/ed06b325/e764c7e1/Enyim.Caching.DLL.
LOG: Attempting download of new URL file:///C:/Users//AppData/Local/Temp/Temporary ASP.NET Files/root/ed06b325/e764c7e1/Enyim.Caching/Enyim.Caching.DLL.
LOG: Attempting download of new URL file:///C:/Projects/sandbox/memcachedsession/bin/Enyim.Caching.DLL.
LOG: Using application configuration file: C:\Projects\sandbox\memcachedsession\web.config
LOG: Using host configuration file: C:\Users\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Enyim.Caching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cec98615db04012e
ERR: Failed to complete setup of assembly (hr = 0x80131045). Probing terminated.

kbalint commented Feb 4, 2016

Solution: it is not enough to set all Signing to 'off' in the project's properties, because there is an include in each .csproj file to build\CommonProperties.target where the SignAssembly flag is explicitly set to 'true' again. Set 'false' here if you want to disable signing.

@enyim enyim added the wontfix label Apr 24, 2016
@enyim enyim closed this Apr 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment