Using PostSharp with delay signed assembly
2 posts • Page 1 of 1
Using PostSharp with delay signed assembly
Hi everyone,
I'm trying to use post sharp in a delay-signed C# project.
But all the time I get this error:
7>PostSharp 1.5 [1.5.1.409] - Copyright (c) Gael Fraiteur, 2005-2008.
7>
7>error: Unhandled exception: Error while loading the assembly "E:\work\branch\Main\IDE\obj\d32\N_NT.N.IDE.UnitTestUtil\Before-PostSharp\NT.N.IDE.UnitTestUtil.dll": Could not load file or assembly 'NT.N.IDE.UnitTestUtil, Version=4.20091.0.0, Culture=neutral, PublicKeyToken=14ef4a483ef6a64b' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
7>===== PostSharp Assembly Binder =================
7>Loading assembly from file {E:\work\branch\Main\IDE\obj\d32\N_NT.N.IDE.UnitTestUtil\Before-PostSharp\NT.N.IDE.UnitTestUtil.dll}.
7> System.IO.FileLoadException: Could not load file or assembly 'NT.N.IDE.UnitTestUtil, Version=4.20091.0.0, Culture=neutral, PublicKeyToken=14ef4a483ef6a64b' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
7>File name: 'NT.N.IDE.UnitTestUtil, Version=4.20091.0.0, Culture=neutral, PublicKeyToken=14ef4a483ef6a64b' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
7>The Zone of the assembly that failed was:
7>MyComputer
7> at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
7> at System.Reflection.Assembly.LoadFile(String path)
7> at PostSharp.CodeModel.AssemblyLoadHelper.LoadAssemblyFromFile(String fileName, Evidence assemblySecurity)
========== Build: 6 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
How can I fix it? What should I change and where? I'm completely new to PostSharp and all this signed/delay-signed assemblies stuff. Please, help me with step by step changes required to fix this problem.
Thank you in advance!
I'm trying to use post sharp in a delay-signed C# project.
But all the time I get this error:
7>PostSharp 1.5 [1.5.1.409] - Copyright (c) Gael Fraiteur, 2005-2008.
7>
7>error: Unhandled exception: Error while loading the assembly "E:\work\branch\Main\IDE\obj\d32\N_NT.N.IDE.UnitTestUtil\Before-PostSharp\NT.N.IDE.UnitTestUtil.dll": Could not load file or assembly 'NT.N.IDE.UnitTestUtil, Version=4.20091.0.0, Culture=neutral, PublicKeyToken=14ef4a483ef6a64b' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
7>===== PostSharp Assembly Binder =================
7>Loading assembly from file {E:\work\branch\Main\IDE\obj\d32\N_NT.N.IDE.UnitTestUtil\Before-PostSharp\NT.N.IDE.UnitTestUtil.dll}.
7> System.IO.FileLoadException: Could not load file or assembly 'NT.N.IDE.UnitTestUtil, Version=4.20091.0.0, Culture=neutral, PublicKeyToken=14ef4a483ef6a64b' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
7>File name: 'NT.N.IDE.UnitTestUtil, Version=4.20091.0.0, Culture=neutral, PublicKeyToken=14ef4a483ef6a64b' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
7>The Zone of the assembly that failed was:
7>MyComputer
7> at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
7> at System.Reflection.Assembly.LoadFile(String path)
7> at PostSharp.CodeModel.AssemblyLoadHelper.LoadAssemblyFromFile(String fileName, Evidence assemblySecurity)
========== Build: 6 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
How can I fix it? What should I change and where? I'm completely new to PostSharp and all this signed/delay-signed assemblies stuff. Please, help me with step by step changes required to fix this problem.
Thank you in advance!
- nnye
- Posts: 1
- Joined: Thu Sep 04, 2008 11:38 am
- First Name: Nickolay
- Last Name: Yeremin
Re: Using PostSharp with delay signed assembly
You should disable the verification of that strong name on your development machine. You will use the command "sn -Vr".
-g
-g
Gael Fraiteur, project leader
- gfraiteur
- Site Admin
- Posts: 834
- Joined: Tue Dec 18, 2007 3:09 pm
- First Name: Gael
- Last Name: Fraiteur
- Company: postsharp.org
2 posts • Page 1 of 1
