Skip to content

System.DllNotFoundException: ole32.dll #552

Description

@ffirenze

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.

  • ConfuserEx Version:
    Confuser.Core 1.6.0+447341964f Copyright © 2014 Ki, 2018 - 2022 Martin Karing

  • Target Framework:
    .NET 4.0

  • Operating System:
    Running on Unix 4.4.0.210, 6.12.0.200 (tarball Tue Jul 11 21:34:53 UTC 2023), 64 bits
    Ubuntu 16.04.7 LTS

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...


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    potential-bugSomething does not seem to be workingtriageThis issue needs some initial analysis.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions