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.
...
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?
...
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...
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...
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...
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 ...
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...
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 ...
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...
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...
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....
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...
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...
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...
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 ...
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" .....
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...
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?
...
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,...
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?
...