strongname

Using the same key for signing multiple assemblies: wise/unwise?

It's possible to use the same strong name key for multiple related projects/assemblies. I'm interested to know whether there are any drawbacks to using this approach. SPecifically, can it lead to a lack of security? One area I'm thinking about this is in the use of the friend assemblies. ...

C# - Using strongname isn't protecting the assembly

I have signed my assembly with strong-name. I have done it from VS2005 Solution Explorer -> Assembly Right-click -> Signing. But still RedGate's .net reflector is able to browse through the code. Then what is the use of assembly signing? ...

Strong name validation failure exception in ASP.NET

I have a project solution in VS 2005 in which there is one web application in asp.net and couple of libraries written in c# which are used by the web application. We are using all dll/exe of solution project signed with strong name in their project properties. Now when we build the whole solution and try to run the web application thro...

What 's the best way to protect product from cracking by using Public key token in .Net Assembly?

I know it is impossible to 100% guarantee from cracking your real-world software. But I want only protect my product from unauthorized accessing of normal user. .Net framework has feature about strongly-typed name that can be used to protect software because you can specific what assembly and public key token will be loaded. So, what i...

interface not implemented error when signing C# assembly

I've been trying to sign an assembly and getting this error: 'Utils.Connection' does not implement interface member 'Interfaces.IConnection.BugFactory()'. 'Utils.Connection.BugFactory()' cannot implement 'Interfaces.IConnection.BugFactory()' because it does not have the matching return type of 'ThirdPartyLibrary.BugFactory'. That e...

Strongly name three assemblies that reference each other

This is probably really easy, but I'm stumped (and I'm a noob with c#). I have 3 assemblies that reference each other (for example, registering for notification of a delegate method, or calling a public method), all of which compile fine until I try to sign them with a strong name. Then I can't compile any of them, since the other two ...

Strong named assemblies in winforms .net

Ok, I've read every question on here about strong named assemblies and just want to clarify something. First though, from what I've read, GAC aside, strong named assemblies prevent a malicious 3rd party changing and impersonating your code. It'd be great to have some links to some real world examples of this kind of spoofing that happen...

.NET: Should executables be strong-name signed? What about private DLLs?

My application consists of three assemblies: a single EXE which references a couple of DLLs. The DLLs are private to my application - they are used only by this executable. Should these assemblies be given a strong name? FxCop suggests that they should - for all of the assemblies it currently produces: CA2210: Sign <assembly> with ...

Validate Strong Name of Running Assembly

Is it possible for one to check the strong name of a .NET application that is already currently running separately from your own running applications process? EDIT: For clarification, a solution that does not require a hard coded path to the executing assembly would be the most ideal solution. EDIT #2: Is there any way to do this w...

unable to obtain public key for StrongNameKeyPair

I have visual studio 2008 running on a Windows 2008 virtual PC. I decided to try out the Microsoft Test Tools built into the IDE (as opposed to NUnit, which I typically use). Using the Unit Testing wizard, VS adds a new test project to the source tree, creates a bunch of unit tests. When I try and compile, I get this "Unable to obtain...

How do I strong name a C++ assembly in VS2008?

I have no experience developing C++ on Windows, but I am a C# developer. I have a wrapper around some native DLLs that is written in C++. (A LGPL project)). I was to use this from a strong named assembly. How do I set up the strong naming of the C++ assembly? There is no 'Signing' properties tab available as there is in C# projects....

StrongNameKeyPair problem when attempting to use MoQ

Hi, I'm trying to create a mock HttpContextBase for unit test. var fakePrinciple = new GenericPrincipal( new GenericIdentity(userId), rolesList.ToArray()); var mockHttpContext = new Mock<HttpContextBase>(); mockHttpContext.Setup(t => t.User).Returns(fakePrinciple); HttpContextBase mockedContext = mock...

How do I specify a keys password with MSBuild for the purpose of using Hudson?

We have just setup our hudson server to build .NET projects which seems to be working fine, however for projects that require a password when signing the assemblies I can not figure out how to tell hudson what the password is? For us the password is asked the first time a developer checks out the source code and they open with visual st...

Signing 3rd Party Assemblies leads to them turnign invisible!

Hi All, I followed OJ's instructions here This allowed me to successfully breakdown, then rebuild and sign some 3rd party DLLs. Here's what I did: Dissassembled Old.dll Rebuild and signed as New.dll (using the same *.snk that my VS2005 proj is signed with) Removed all references in my proj to Old.dll and added references to New.dll...

VS 2010 Profiling Problem with Signed Assemblies

I have a website that uses AjaxControlToolkit.dll and Log4Net.dll; When I try to run the performance profiling tool in VS 2010 on it it gives me the following warnings "AjaxControlToolkit.dll is signed and instrumenting it will invalidate its signature. If you proceed without a post-instrument event to re-sign the binary it may not load ...

Strong name validation failed on VB.NET Assembly

I have a VB.Net 1.1 application works just fine after compiling in Visual Studio. However, I want to use ILMerge to combine all the referenced assemblies into a single executable just to make it easier to move around. After I send it through ILMerge and try to run it I get the error "Strong name validation failed for assembly.exe" .....

Strong Naming an assembly using command line compile

I am trying to use NAnt in order to compile and sign an assembly using the vbc compiler. I have a project set up and am able to successfully sign the assembly compiling with VS2010. When I try to sign it using the command line I get this error: vbc : error BC30140: Error creating assembly manifest: Error signing assembly -- The parame...

how to assign Strong Name to an Assembly?

I have created strong name using - sn -k C:\strong.snk nao how to assign this key to any assembly? and where I have to use gacutil? ...

C# Strong Naming of dll, not detecting modifications

It is my understanding that strong naming creates a cryptographic Hash of the a assembly to which is used as a strong name to load the dll. I was hoping to use this feature to detect corruption of a binary to inform the user there is a problem with the software and they need to reinstall it. This works for some changes to the binary,...

ClickOnce Strong-Name dependency signing

I have a windows application that that a lot of dependant DLLs. When I publish this application it returns an error for one of the DLLs that it must be strongly signed in order to be marked as a prerequiste. How can I resolve this problem? ...