Error creating assembly manifest: access is denied<p><strong>Hello,</strong></p> <p><strong>I'm having problems running a Team Build when I give my assemblies a strong name.  The team build works great unless I sign my assemblies.  When I do that I get a &quot;vbc : error BC30140: Error creating assembly manifest: Access is denied.&quot;</strong></p> <p><strong>Here is the error text from the build log:</strong></p> <p><font size=2>Target Common:<br>__________________________________________________<br>Project &quot;D:\Build\Flin Flon\Release\Sources\FlinFlon.sln&quot; is building &quot;D:\Build\Flin Flon\Release\Sources\Common\Common.vbproj&quot; (default targets):</font></p> <p><font size=2>Target PrepareForBuild:<br>Creating directory &quot;D:\Build\Flin Flon\Release\Binaries\Release\&quot;.<br>Creating directory &quot;obj\Release\&quot;.<br>Target CoreResGen:<br>Processing resource file &quot;My Project\Resources.resx&quot; into &quot;obj\Release\IRC.FlinFlon.Common.Resources.resources&quot;.<br>Target CoreCompile:<br>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,<br>System.Data,System.Diagnostics /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 <br>/rootnamespace:IRC.FlinFlon.Common /doc:obj\Release\Common.xml /define:&quot;CONFIG=\&quot;Release\&quot;,TRACE=-1,_MyType=\&quot;Windows\&quot;,PLATFORM=\&quot;AnyCPU\&quot;&quot; <br>/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll,<br>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug:pdbonly /keyfile:FlinFlonCommon.snk /optimize+ /out:obj\Release\Common.dll <br>/resource:obj\Release\IRC.FlinFlon.Common.Resources.resources /target:library Common.vb &quot;My Project\AssemblyInfo.vb&quot; &quot;My Project\Application.Designer.vb&quot;<br>&quot;My Project\Resources.Designer.vb&quot; &quot;My Project\Settings.Designer.vb&quot;</font></p> <p><font size=2>vbc : error BC30140: Error creating assembly manifest: Access is denied.</font></p> <p><font size=2>Done building target &quot;CoreCompile&quot; in project &quot;Common.vbproj&quot; -- FAILED.</font></p> <p><font size=2>Done building project &quot;Common.vbproj&quot; -- FAILED.</font></p> <p><font size=2> </font></p> <p><font size=2><strong>Any help would be greatly appreciated,</strong></font></p> <p><font size=2><strong>Joel</strong></font></p>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Z5fcb9fd2-90ad-4388-a688-9dbf1ea4e361http://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#5fcb9fd2-90ad-4388-a688-9dbf1ea4e361http://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#5fcb9fd2-90ad-4388-a688-9dbf1ea4e361Joel Poironhttp://social.msdn.microsoft.com/Profile/en-US/?user=Joel%20PoironError creating assembly manifest: access is denied<p><strong>Hello,</strong></p> <p><strong>I'm having problems running a Team Build when I give my assemblies a strong name.  The team build works great unless I sign my assemblies.  When I do that I get a &quot;vbc : error BC30140: Error creating assembly manifest: Access is denied.&quot;</strong></p> <p><strong>Here is the error text from the build log:</strong></p> <p><font size=2>Target Common:<br>__________________________________________________<br>Project &quot;D:\Build\Flin Flon\Release\Sources\FlinFlon.sln&quot; is building &quot;D:\Build\Flin Flon\Release\Sources\Common\Common.vbproj&quot; (default targets):</font></p> <p><font size=2>Target PrepareForBuild:<br>Creating directory &quot;D:\Build\Flin Flon\Release\Binaries\Release\&quot;.<br>Creating directory &quot;obj\Release\&quot;.<br>Target CoreResGen:<br>Processing resource file &quot;My Project\Resources.resx&quot; into &quot;obj\Release\IRC.FlinFlon.Common.Resources.resources&quot;.<br>Target CoreCompile:<br>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,<br>System.Data,System.Diagnostics /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 <br>/rootnamespace:IRC.FlinFlon.Common /doc:obj\Release\Common.xml /define:&quot;CONFIG=\&quot;Release\&quot;,TRACE=-1,_MyType=\&quot;Windows\&quot;,PLATFORM=\&quot;AnyCPU\&quot;&quot; <br>/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll,<br>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug:pdbonly /keyfile:FlinFlonCommon.snk /optimize+ /out:obj\Release\Common.dll <br>/resource:obj\Release\IRC.FlinFlon.Common.Resources.resources /target:library Common.vb &quot;My Project\AssemblyInfo.vb&quot; &quot;My Project\Application.Designer.vb&quot;<br>&quot;My Project\Resources.Designer.vb&quot; &quot;My Project\Settings.Designer.vb&quot;</font></p> <p><font size=2>vbc : error BC30140: Error creating assembly manifest: Access is denied.</font></p> <p><font size=2>Done building target &quot;CoreCompile&quot; in project &quot;Common.vbproj&quot; -- FAILED.</font></p> <p><font size=2>Done building project &quot;Common.vbproj&quot; -- FAILED.</font></p> <p><font size=2> </font></p> <p><font size=2><strong>Any help would be greatly appreciated,</strong></font></p> <p><font size=2><strong>Joel</strong></font></p>Wed, 24 May 2006 20:52:47 Z2006-07-13T20:30:58Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#b3e1b00f-bbf0-4e7f-b5b7-4a91e826e519http://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#b3e1b00f-bbf0-4e7f-b5b7-4a91e826e519loffe1978http://social.msdn.microsoft.com/Profile/en-US/?user=loffe1978Error creating assembly manifest: access is denied<P>We have been getting the same error on our BuildServer(with&nbsp;CruiseControl) the last week and I've not found much about it on the internet.</P> <P>Our CruiseControl-task uses MSBUILD to compile the solution and it always fails on a particular project with the exception mentioned above.</P> <P>I just tried moving all solution files to my development computer and it compiles just fine so there must be something wrong with our BuildServer.</P> <P>/Johan</P> <P>&nbsp;</P>Tue, 13 Jun 2006 10:34:02 Z2006-06-13T10:34:02Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#e57c1134-137e-41e0-9ccb-80d8882eda40http://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#e57c1134-137e-41e0-9ccb-80d8882eda40msdnmonkhttp://social.msdn.microsoft.com/Profile/en-US/?user=msdnmonkError creating assembly manifest: access is deniedTry running &quot;sn -k keyPair.snk&quot;  if you get an error then you are having trouble calling the sn.exe utility.  It has something to do with the keys and delayed signing.<br><br>For some reason windows ocassionally changes the permissions in the folder <span style="font-size:12pt;font-family:Arial">C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys.<br><br></span>Write access is required for the sn.exe to work and for builds depending on it to work.<br><br>I hope this helps.  Took me like 3 days to figure out.<br>Thu, 13 Jul 2006 20:07:18 Z2006-07-13T20:30:58Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#571ad98e-b1ac-424f-8642-215d74d1e150http://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#571ad98e-b1ac-424f-8642-215d74d1e150Joel Poironhttp://social.msdn.microsoft.com/Profile/en-US/?user=Joel%20PoironError creating assembly manifest: access is denied<p>It worked!<br>Now I can finally start using an automated build.</p> <p>Thank you very much for your hard work.</p> <p>Joel</p>Thu, 13 Jul 2006 20:35:00 Z2006-07-13T20:35:00Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#4b691149-52b2-45a8-9f43-16df8b1001b1http://social.msdn.microsoft.com/Forums/en/msbuild/thread/5fcb9fd2-90ad-4388-a688-9dbf1ea4e361#4b691149-52b2-45a8-9f43-16df8b1001b1loffe1978http://social.msdn.microsoft.com/Profile/en-US/?user=loffe1978Error creating assembly manifest: access is deniedWe switched from user to machine based signing and that also solved the problem.<br><br>/johan<br>Sun, 23 Jul 2006 15:33:36 Z2006-07-23T15:33:36Z