Error Creating Assembly Manifest Error Reading Key File .snk
Groups Pictures & Albums Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Rating: Display Modes #1 12-02-2004, 08:35 AM CRogers Registered User Join Date: 07-02-2003 Posts: 6 "Error reading key file" when compiling VS.NET web app I have a web app whose assembly is strongly named. Compilation within VS.NET works fine. Compiling during a build fails with the error vbc : error BC30140: Error creating assembly manifest: Error reading key file 'path\to\my.snk' -- The system cannot find the path specified. Compiling non-web apps using this same key file works fine as well. Any advice? CRogers View Public Profile Find all posts by CRogers #2 12-02-2004, 09:48 AM CRogers Registered User Join Date: 07-02-2003 Posts: 6 Follow-up: The
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Visual Basic Reference Visual Basic Language Reference Error Messages Error http://www.kinook.com/Forum/showthread.php?t=676 Messages Error creating assembly manifest: ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Advanced ASP.NET/Enterprise Services Integration/Signing Assemblies in VB.NET Signing Assemblies in VB.NET RSS 6 replies Last post http://forums.asp.net/t/335032.aspx?Signing+Assemblies+in+VB+NET Sep 14, 2003 02:32 PM by angiras ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply webdevjeff Member 10 Points 39 Posts Signing Assemblies in VB.NET Sep 10, 2003 12:15 PM|webdevjeff|LINK I have a VB console application that needs to support transaction. To error creating accomodate this I have created a vb class that usies the system.enterprise services namespace to enable this. However I need to sign this assembly to use it. I have used sn.exe to generate a key and it is in the app root and bin directories. I have also included the following lines in the class Imports System.EnterpriseServices error creating assembly Imports System.Runtime.CompilerServices Imports System.Reflection _ Public Class BOBOFileCreation Inherits ServicedComponent However when I compile I get the following error Error creating assembly manifest: Error reading key file 'myKey.snk' -- The system cannot find the file specified. Can anyone point me in the write direction, have looked on MSDN and the only thing I can see I may need to do is use al.exe but am unsure how to do this Thanks Jeff.................. Reply tomasr Member 30 Points 851 Posts Re: Signing Assemblies in VB.NET Sep 10, 2003 10:14 PM|tomasr|LINK The .snk file referenced in the AssemblyKeyFile attribute is resolved from the compilation directory. If you use the default VS.NET project setup, then you should be able to get it to work with: ... assuming the .snk file is in the project directory. Do notice, though, that to use EnterpriseServices you'll want your class in a DLL assembly, not inside your .EXE, which I'm not sure you're doing from the description you're presenting... Tomas Restrepo [MVP] tomasr@mvps.org Reply cnot None