strong-name

How do I find the fully qualified name of an assembly?

How do I find out the fully qualified name of my assembly such as: MyNamespace.MyAssembly, version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 I've managed to get my PublicKeyToken using the sn.exe in the SDK, but I'ld like to easily get the full qualified name. ...

Can strong naming cause problems with object serialization in C#?

Hi Folks, I serialize some configuration objects and store the result bytes within a database. new BinaryFormatter().Serialize(memoryStream, instance); Convert.ToBase64String(memoryStream.ToArray()); These objects will be deserialized later. new BinaryFormatter().Deserialize(memoryStream); It's possible, that the Application has ...

Can sn.exe utilize the Windows certificate store?

For signing an assembly with sn.exe in .NET, is it possible to specify a public key for which the private key is contained only within the Windows CryptoAPI keystore? I see the option for specifying the CSP name, and the container name. Are there values to use to access the Windows certificates? (i.e. those accessible from Windows EFS,...

Is possible to persist data in the .net assembly Metadata or Header?

I want to implement a custom assembly signature mechanism just like Strong Name, then develop a program to write the signature info in the assembly Metadata,In the assembly of internal read and verification of the signature is correct. Is possible to do this? ...

Why bother with strong names for private assemblies?

We produce a number of applications that share assemblies. Since memory or disk space is not a problem, we use private assemblies by duplicating the shared assemblies into each app's local folder. This avoids the issues caused by putting them into the GAC. I hear that strong names are a real good thing that is required if we share assemb...

What is the recommended way to manage a strong-name key pair for an open-source project?

I manage an open-source project and would like to sign the binaries that are released in the project's binary package. I use Visual Studio csproj and sln files to manage and build my project, and also distribute these files as part of the project's source packages. How can I sign the produced binaries of my build and not have to distri...

How hard is it to tamper with a strong named assembly?

Assume I have a .NET assembly which is strong named. Only I have access to the private key. I then distribute the assembly to some client system. How hard is it for the client to modify the assembly? Ie: what would they need to do to modify my assembly? ...

Creating Strongnames in .net using name.snk

Hi all, After getting the instruction from google, I was creating StrongNameFile thru this path C:\Program Files\Microsoft Visual Studio 9.0\VC\sn -k StrongNameFile.snk while i am running the above command, getting error message like... 'sn' is not recognized as an internal or external command, operable program or batch file. I tried i...

Strong name a 3rd party Interop DLL

Hello! I have a 3rd party library I need to use. this library however, is not signed, so I used Signer to strong name it. One of its dependencies is an Interop library (also provided by the 3rd party) which I cannot sign since it seems to have unmanaged code. At runtime, when the 3rd party code needs to load the Interop library it fails ...

How does the .NET Runtime Locate Non Strong-Named' Assemblies?

We have different versions of non strong-named assemblies, and no binding redirects/probing paths to them in app.exe.config. For example, MyDll (1.0.0.0_null_neutral) and MyDll (2.0.0.0_null_neutral). Relative to app.exe, these assemblies are stored in LAC\MyDll_1.0.0.0_null_neutral and LAC\MyDll_2.0.0.0_null_neutral. My understanding i...

Signing my assembly with a strong name stops it from working

A colleague of mine created an assembly in VB.net for use with JScript via COM interop. The assembly used to work fine, but we signed it and now it only seems to work on Windows 7 machines. I've tested 2 Windows 7 machines and 2 Windows Vista machines. When we signed the assembly and we try to instantiate the ActiveX object in JScript...