mkaring / ConfuserEx

An open-source, free protector for .NET applications
https://mkaring.github.io/ConfuserEx/
MIT License
2.33k stars 362 forks source link

System.DllNotFoundException: ole32.dll #552

Open ffirenze opened 4 months ago

ffirenze commented 4 months ago

I'm trying to obfuscate a project, and I'm failing the communication library with the series port. The rest of the project, which is a lot of DLL, processes without apparent problems. The DLL has not protections enabled. It works fine on ConfuserEx v1.0.0-2-g5e2bceb version.

Steps to Reproduce:

  1. Run "Confuser.CLI.exe mysolution.crproj".
[DEBUG] Executing 'Packer info extraction' phase...
 [INFO] Writing module 'DataLinkLayer.dll'...
[ERROR] Unknown error occurred.
Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: ole32.dll assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) System.__ComObject.CoCreateInstance(System.Guid,intptr,uint,System.Guid,intptr&)
  at System.__ComObject.CreateIUnknown (System.Type t) [0x00051] in <d636f104d58046fd9b195699bcb1a744>:0
  at Mono.Interop.ComInteropProxy.CreateProxy (System.Type t) [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Runtime.Remoting.RemotingServices.CreateClientProxyForComInterop (System.Type type) [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType (System.Type type) [0x0003b] in <d636f104d58046fd9b195699bcb1a744>:0
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <d636f104d58046fd9b195699bcb1a744>:0
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at dnlib.DotNet.Pdb.Dss.SymbolReaderWriterFactory.CreateSymUnmanagedWriter2 (dnlib.DotNet.Writer.PdbWriterOptions options) [0x000bc] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Pdb.Dss.SymbolReaderWriterFactory.Create (dnlib.DotNet.Writer.PdbWriterOptions options, System.IO.Stream pdbStream, System.String pdbFileName) [0x00000] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Writer.ModuleWriterBase.GetWindowsPdbSymbolWriter (dnlib.DotNet.Writer.PdbWriterOptions options, System.String& pdbFilename) [0x00043] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Writer.ModuleWriterBase.WriteWindowsPdb (dnlib.DotNet.Pdb.PdbState pdbState) [0x0001f] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Writer.ModuleWriterBase.WritePdbFile () [0x000b5] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Writer.ModuleWriter.WriteFile () [0x00038] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Writer.ModuleWriter.WriteImpl () [0x00011] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.Writer.ModuleWriterBase.Write (System.IO.Stream dest) [0x000e9] in <147e001f5404496f9787767ab5dee5cd>:0
  at dnlib.DotNet.ModuleDef.Write (System.IO.Stream dest, dnlib.DotNet.Writer.ModuleWriterOptions options) [0x00011] in <147e001f5404496f9787767ab5dee5cd>:0
  at Confuser.Core.ConfuserEngine.WriteModule (Confuser.Core.ConfuserContext context) [0x0009c] in <441878c7fdd84f79929e3bfae71d8230>:0
  at Confuser.Core.ProtectionPipeline.ExecuteStage (Confuser.Core.PipelineStage stage, System.Action`1[T] func, System.Func`1[TResult] targets, Confuser.Core.ConfuserContext context) [0x00084] in <441878c7fdd84f79929e3bfae71d8230>:0
  at Confuser.Core.ConfuserEngine.RunPipeline (Confuser.Core.ProtectionPipeline pipeline, Confuser.Core.ConfuserContext context) [0x001d6] in <441878c7fdd84f79929e3bfae71d8230>:0
  at Confuser.Core.ConfuserEngine.RunInternal (Confuser.Core.ConfuserParameters parameters, System.Threading.CancellationToken token) [0x00447] in <441878c7fdd84f79929e3bfae71d8230>:0
Failed at 7:49 PM, 0:10 elapsed.
Press any key to continue...