Error using as default app for dll

2 posts, 0 answers
  1. Mike
    Mike avatar
    1 posts
    Member since:
    Apr 2011

    Posted 28 Apr 2011 Link to this post

    Perhaps this isn't an intended use case, but for the development team's reference I tried to use JustDecompile to open an assembly by right clicking the DLL in Windows Explorer and selecting Open With then picking JustDecompile.  I tried to make it the default application for opening DLL files so I can always just double click them and open them in JustDecompile.  The program started, but I received the error message below:

    ---------------------------
    Error
    ---------------------------
    An error has occurred. Please, report this exception to the Telerik team (Use CTRL + C to copy the text). Thanks in advance!

    Microsoft.Practices.Prism.Modularity.ModuleTypeLoadingException: Failed to load type for module HistoryModule. 

    If this error occurred when using MEF in a Silverlight application, please ensure that the CopyLocal property of the reference to the MefExtensions assembly is set to true in the main application/shell and false in all other assemblies. 






    Error was: Could not load file or assembly 'JustDecompile.History.dll' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly 'JustDecompile.History.dll' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)


       --- End of inner exception stack trace ---


       at System.Reflection.AssemblyName.nGetFileInformation(String s)


       at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)


       at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)


       at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase, ICompositionElement definitionOrigin)


       at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo)


       --- End of inner exception stack trace ---


       at Microsoft.Practices.Prism.Modularity.ModuleManager.HandleModuleTypeLoadingError(ModuleInfo moduleInfo, Exception exception)


       at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo)


       at Microsoft.Practices.Prism.Modularity.ModuleManager.LoadModuleTypes(IEnumerable`1 moduleInfos)


       at Microsoft.Practices.Prism.MefExtensions.MefBootstrapper.Run(Boolean runWithDefaultConfiguration)


       at JustDecompile.App.OnStartup(StartupEventArgs e) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile\App.xaml.cs:line 16


       at System.Windows.Application.<.ctor>b__1(Object unused)


       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)


       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


       at System.Windows.Threading.DispatcherOperation.InvokeImpl()


       at System.Threading.ExecutionContext.runTryCode(Object userData)


       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)


       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)


       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)


       at System.Windows.Threading.DispatcherOperation.Invoke()


       at System.Windows.Threading.Dispatcher.ProcessQueue()


       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)


       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)


       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)


       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)


       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)


       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)


       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)


       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)


       at System.Windows.Application.RunInternal(Window window)


       at System.Windows.Application.Run()


       at JustDecompile.App.() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile\obj\Release\App.g.cs:line 16777215
    ---------------------------
    OK   
    ---------------------------

  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 28 Apr 2011 Link to this post

    Hello Mike-

    I think this error is similar to others reported in the forums, and it's related to problems MEF is having loading the built-in JustDecompile modules when launched in this way. Check out the other thread for more details:

    http://www.telerik.com/community/forums/justdecompile/general-discussions/418804-crash-on-startup.aspx

    -Todd
  3. DevCraft banner
Back to Top