"COMException: Strong name key container not found" error after some changes to DynamicProxy

419 views
Skip to first unread message

Jonathon Rossi

unread,
Apr 5, 2009, 4:15:58 AM4/5/09
to Castle Project Development
After applying some changes to the DynamicProxy codebase I am sometimes getting the following error. It is only happening randomly which makes it more difficult to determine the issue.

The exception is being thrown in RhinoMocksTestCase.CanProxyMethodWithOutIntPtrParameter. I haven't included the changes to the codebase, I'm just posting to see if anyone has an idea why this might be failing randomly. I am running Vista x64. It has failed from both from ReSharper and NAnt.

System.Runtime.InteropServices.COMException: Strong name key container not found. (Exception from HRESULT: 0x8013141C)
at System.Reflection.Module._InternalSavePEFile(String fileNameInt32 entryPointInt32 isExeBoolean isManifestFile)
at System.Reflection.Module.InternalSavePEFile(String fileNameMethodToken entryPointInt32 isExeBoolean isManifestFile)
at System.Reflection.Emit.ModuleBuilder.SaveNoLock(String fileNameBoolean isAssemblyFilePortableExecutableKinds portableExecutableKindImageFileMachine imageFileMachine)
at System.Reflection.Emit.ModuleBuilder.Save(String fileNameBoolean isAssemblyFilePortableExecutableKinds portableExecutableKindImageFileMachine imageFileMachine)
at System.Reflection.Emit.AssemblyBuilder.SaveNoLock(String assemblyFileNamePortableExecutableKinds portableExecutableKindImageFileMachine imageFileMachine)
at System.Reflection.Emit.AssemblyBuilder.Save(String assemblyFileNamePortableExecutableKinds portableExecutableKindImageFileMachine imageFileMachine)
at System.Reflection.Emit.AssemblyBuilder.Save(String assemblyFileName)
at Castle.DynamicProxy.ModuleScope.SaveAssembly(Boolean strongNamed) in ModuleScope.cs: line 428
at Castle.DynamicProxy.ModuleScope.SaveAssembly() in ModuleScope.cs: line 367
at Castle.DynamicProxy.PersistentProxyBuilder.SaveAssembly() in PersistentProxyBuilder.cs: line 45
at Castle.DynamicProxy.Tests.BasePEVerifyTestCase.TearDown() in BasePEVerifyTestCase.cs: line 61

Thanks
--
Jono

Fabian Schmied

unread,
Jun 12, 2009, 3:15:40 AM6/12/09
to castle-pro...@googlegroups.com
> After applying some changes to the DynamicProxy codebase I am sometimes
> getting the following error. It is only happening randomly which makes it
> more difficult to determine the issue.

[...]

> System.Runtime.InteropServices.COMException: Strong name key container not found. (Exception from HRESULT: 0x8013141C)

Just curious: Have you ever been able to find the cause of this?

Fabian

Jonathon Rossi

unread,
Jun 12, 2009, 3:33:38 AM6/12/09
to castle-pro...@googlegroups.com
Not yet. The strange thing is that I don't think it is actually that patch, however that patch seems to make it happen more often. I have had it happen a few times randomly in the last few months, but it happens just about every time with that patch.

I have never had enough time when I wasn't tired to focus on looking at it. I am considering just reinstalling my desktop since no one else has every had the issue, Castle related or not, so it is most likely some strange environment issue.
--
Jono
Reply all
Reply to author
Forward
0 new messages