Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Unable to add an assembly created from ASP.Net (4.5) web site to GAC due to strong name failure

$
0
0
Hi,

I have created an ASP.Net 4.5 Empty website from which I need an assembly as output, which needs to be deployable in GAC. In that, I have updated the MSBuild project property option to "Use Fixed Naming and Single Page Assemblies" and "Enable Strong Naming on Precompiled Assemblies". I have also used a Key File generated with a Strong Name tool and I have used a valid file location for the snk file.

While publishing this website, I have used "Web Deploy Package" option with a valid location for the .zip file. Also, I have set "Merge all outputs to a single assembly" and "treat this as a library component". I have also unchecked"Allow pre-compiled site to be updatable." I have also unchecked the option to exclude files from App_Data folder.

In spite of all this, after I published, I am unable to add this assembly to GAC, from the extracted zip. I am getting an error in the command line, saying, "Failure to add assembly to cache: Attempt to install an assembly without a strong name." I am not able to figure out, what I am doing wrong. Can anyone please help?

Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>