C# 模糊车2.0-无法从程序集加载类型

C# 模糊车2.0-无法从程序集加载类型,c#,asp.net,dll,obfuscar,C#,Asp.net,Dll,Obfuscar,我正在尝试在asp.net应用程序(C#.net 4)上使用模糊卡 所以我只想混淆一个dll。此dll MyApp.Secure.dll由global.asax在应用程序启动时加载 当我的dll没有被模糊处理时,一切正常,但如果它被模糊处理,我会遇到一个错误 [TypeLoadException: Could not load type 'MyApp.Secure.Securilizer' from assembly 'MyApp.Secure, Version=1.0.0.0, Culture

我正在尝试在asp.net应用程序(C#.net 4)上使用模糊卡

所以我只想混淆一个dll。此dll MyApp.Secure.dll由global.asax在应用程序启动时加载

当我的dll没有被模糊处理时,一切正常,但如果它被模糊处理,我会遇到一个错误

[TypeLoadException: Could not load type 'MyApp.Secure.Securilizer' from assembly 'MyApp.Secure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.]
 MyApp.PL.Global..ctor() in c:\Users\me\Desktop\myapp\MyApp.PL\Global.asax.cs:12
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary  ASP.NET Files\analytics\a055a403\d63b5acc\App_global.asax.zykrw1d6.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14259449
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +312
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949
我使用了一个非常简单的配置文件和模糊CAR2.0rc7

<?xml version="1.0"?>
<Obfuscator>
  <Var name="InPath" value="MyApp.Secure\bin\Release" />
  <Var name="OutPath" value="MyApp.PL\bin" /> 

  <Module file="$(InPath)\MyApp.Secure.dll" />
</Obfuscator>

我做错什么了吗


编辑:您能告诉我如何调试它吗?

混淆会影响序列化,所以您最好跳过与序列化相关的类。我没有在这个dll或链接到这个dll或由这个dll使用的dll中使用序列化。您能告诉我如何调试它吗?这是一个开源项目,那么为什么不花点时间在代码库上呢?对于其他人来说,问题的原因可以在