strongname

Strong name, Manifest, and Code Signing

What order should these be done in? I'm doing this from the command prompt for a .Net app. I was able to do just strong name and code signing successfully, but when I tried all three, it doesn't look like it worked (==> Vista still trying to run the app with elevated privileges resulting in a prompt, though I set the requestedexecution...

Is it possible to register a .net assembly as COM without strong naming it?

Ok, so i know how to strong name an assembly and regasm it, so I can access it from a an ASP page. By strong naming it, it can be placed in the GAC and thus be easily accessible from an ASP page. Is it possible to somehow register the assembly without signing it with a strong name and still be able, somehow to access it from the ASP pa...

Debugging/Referncing Strong Named Libraries

How do you correctly setup a solution (C#) that has: Web App Project - contains 16 references to other projects/DLLs A total of 20 projects outside of the web project All projects are Strong Named (pfx file + version, etc) When I dropped the DLL from references and added a Project Reference instead I am getting Strong Name clashes. ...

SGEN, InternalsVisibleTo and assembly signing

Hi, I'm trying to do something a bit unusual... I have this class Foo : public class Foo { public Foo(string name) { this.Name = name; } internal Foo() { } public string Name { get; internal set; } public int Age { get; set; } } Notice the internal setter for Name, and the internal default c...

How can I sign an assembly that reference unsigned COM interop assemblies?

When I try to sign the assembly I get the following error: Error 1 Assembly generation failed -- Referenced assembly 'comlib' does not have a strong name Is it possible to sign an assembly that reference unsigned assemblies or do I have to sign the COM interop assemblies as well? ...

Signing an assembly with Nant

How do I automatically add a strong name to a .NET assembly using a nant task? ...

Anything wrong with NOT signing a .NET assembly?

Hi, One of my colleague is very keen on signing assemblies. He literally tries to sign anything, even when we use assemblies from Microsoft that are not signed he will take the source code , sign it and then ask other developers to use his copy instead. I can understand the basic idea behind signing an assembly: to ensure a particular ...

I can't seem to understand this .NET assembly signing thing

Ok, I must be dumb cause I've already read this: http://www.csharp411.com/net-assembly-faq-part-3-strong-names-and-signing/ And I still don't get it... Let's say I open my project's properties and go to the "Signing" tab, then I check "Sign the assembly" and generate a new assembly with a password. A strong name key file with the .pfx ...

Do you strong name all assemblies your product uses?

I have a product which has around 10+ assemblies. We used to ship it without strongly naming the assemblies. But after reading about strong naming, I guess it is a wise idea to strong name assemblies. Just wanted to know is that a best practice to strong name all assemblies used by a program? Any thoughts? ...

Designer to see internals?

I have my signed assemblies here, in one of them I have a picture in the resources. The other one is granted to use it as it's own, so my other assembly can reference the picture, and everything works fine. Only if it wouldn't be for the Form Designer in VS2008. It does not see the Image. ( It might be ok, since it's linked at compile...

C# Plugin Architecture with Strong Names: A Misunderstanding

I have a server executable that talks to Active Directory to retrieve user information. In addition to AD, this exe allows customers to write their own plugins to talk to custom user directories. This executable is strongly named. Is the following a true statement: In order for a strongly named assembly to load another assembly, ...

How to force WPF to use resource URIs that use assembly strong name? Argh!

O.k, this is really irritating, I had noticed previously that the code generated by WPF for loading XAML resources did not appear to use strong names and therefore may be problematic for scenarios where you need to support side by side versions of WPF assemblies. This has turned out to be the case, and it's now causing me problems - I h...

Cryptographic failure while signing assembly '<assemblyname>.dll' – 'Bad Version of Provider'

I purchased an authenticode certificate from a well known provider. Now I want to strong name an assembly and later on digitally sign it. This is what I've done so far: Extracted public key from pfx by running sn.exe -p keypair.pfx key.snk Checked both "Sign the assembly" and "Delay sign only" checkboxes on project properties signing...

Redirect assembly binding to an custom/unsigned dll

Problem The basic problem is I want to debug some 3rd party code to see how it works so I can replace part of it. Is there anyway to redirect the binding so that it will not use the dll in the GAC but instead the copy I compiled instead (which will be either unsigned or have a different public key). Details The specific item in que...

Error when typecasting a plugin instance in a signed assembly

I'm developing an application with plugins. I have a separate API assembly with all the API interfaces. The main application dynamically loads the plugins from dlls: object pi = Assembly.LoadFrom(plugin.AssemblyPath) .CreateInstance(plugin.ClassName); and then i'm casting it to the actual plugin type: IPlugin pluginIns...

Is Strong Name necessary in Sharepoint to use a WebPart?

I have created a webpart and want to deploy that in Sharepoint. I want to deploy the web part in bin. I have not created a strong name for dll (webpart code). Is strong name a must for deploying webpart in bin folder? I have referred this msdn link to do this. http://technet.microsoft.com/en-us/library/cc263271.aspx When I go to WebP...

TFS MSBuild Strong name and code signing of assemblies.

I need to strong name and code sign my assemblies. I dont want to change anything in Visual Studio, all changes must be on the TFS Build server. Any know how I can do this? ...

.NET - providing sign certificate with 3rd party libraries

Hi, I want sell some .NET library and I want provide "edition" with full source code. Should I provide the sign certificate with the source code or should users-developers sign it with their own? ...

Strong named assembly not working in my Visual C#

I have a project and I want to strong name the executable file. Using command-line compiling works well: csc ... /keyfile:... But I would like the IDE to do this, so I find this: in project property's `Signing' tab, there is a 'Sign the assembly' option. I tick it and direct to my key-pair file. After I lauch the debug, a FileNotFo...

What to consider when strong name signing a managed application?

I want to strong name a managed application which references many managed assemblies and ActiveX and COM components (written in C++) via interop. And because a strongly named assembly cannot reference weakly named assemblies, could you please tell me what problems that I should be prepared for, what you have run into, especially when de...