During startup of Invantive Control for Excel, an error can be displayed:
itgenclr060
Unable to load DLL ‘wpfgfx_v40400.dll’:
The specified module could not be found. (Exception from HRESULT: 0x8007007E).
in a format such as:
In Dutch:
itgenclr060
Kan DLL wpfgfx_v0400.dll niet laden.
Kan opgegeven module niet vinden.
(Uitzondering van HRESULT: 0x8007007E).
This is a very rare error, occurring a few times per year across the whole user base.
Steps to fix wpfgfx_v0400.dll
Execute the following steps:
- First step is to kill Excel from the Widows task manager. And then start Excel again. Often this resolves the issue.
- Next step when that doesn’t work is to reboot the PC and then start Excel again.
- In case after the reboot the Invantive Control for Excel add-in is no longer displaying in the ribbon, follow the instructions on Excel no longer displays Invantive Control ribbon.
- When even after a reboot the wpfgfx_v0400.dll error occurs, the probably cause is that an Microsoft Office upgrade has been applied and reverted later. Sometimes the Microsoft Office installers during a downgrade do not leave the registry in the original state before the upgrade. Sadly there is not much we can do about the behavior of the Microsoft installer.
- Please try to run a repair from Install Programs and Features.
- The alternatives are to either restore the Windows backup directly before the reverted upgrade of Microsoft Office or to re-install Microsoft Windows.
Call stack
For reference reasons, find a typical internal call stack on wpfgfx_v40400.dll below:
[4840] 08:50:28.623-1: !! Memorized first chance exception of type DllNotFoundException:
[4840] 08:50:28.623-1: Kan DLL wpfgfx_v0400.dll niet laden: Kan opgegeven module niet vinden. (Uitzondering van HRESULT: 0x8007007E).
[4840] 08:50:28.623-1: !! bij System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
[4840] bij System.Environment.get_StackTrace()
[4840] bij Invantive.Data.ErrorUtility.CurrentDomain_FirstChanceException(Object sender, FirstChanceExceptionEventArgs e) in File89:regel 200
[4840] bij MS.Win32.PresentationCore.UnsafeNativeMethods.MILFactory2.CreateFactory(IntPtr& ppIFactory, UInt32 SDKVersion)
[4840] bij System.Windows.Media.FactoryMaker..ctor()
[4840] bij System.Windows.Media.StreamAsIStream.IStreamFrom(IntPtr memoryBuffer, Int32 bufferSize)
[4840] bij System.Windows.Media.Imaging.BitmapDecoder.GetIStreamFromStream(Stream& bitmapStream)
[4840] bij System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
[4840] bij System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
[4840] bij System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
[4840] bij System.Windows.Media.Imaging.BitmapImage.EndInit()
[4840] bij System.Windows.Media.Imaging.BitmapImage..ctor(Uri uriSource, RequestCachePolicy uriCachePolicy)
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.CreateWpfImageSourceFromResourceUri(String uri) in File1059:regel 22102
[4840] bij Invantive.Producer.Windows.Forms.PlatformItem..ctor(AutoDiscoverViewModel viewModel, Type providerType, Guid id, String name, String iconUri, String helpUrl, String helpText, String downloadDriverUrl) in File566:regel 211
[4840] bij Invantive.Producer.Windows.Forms.SqlServerPlatform..ctor(AutoDiscoverViewModel viewModel) in File568:regel 43
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.GetAutoDiscoveryPlatforms(AutoDiscoverViewModel vm, AsyncObservableCollection`1 platforms) in File1059:regel 12387
[4840] bij Invantive.Producer.Windows.Forms.AutoDiscoverViewModel..ctor(String connectionsFilePath) in File554:regel 57
[4840] bij Invantive.Producer.Windows.Forms.AutoDiscoverWindow..ctor() in File546:regel 20
[4840] bij Invantive.Producer.Windows.Forms.UserInteraction.Invantive.Producer.Windows.Forms.IUserInteraction.OpenAutoDiscoveryDialog(Object owner) in File505:regel 1377
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.OpenAutoDiscoveryDialog(Object owner) in File1059:regel 6100
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.OpenAutoDiscoveryDialogWhenNecessary() in File1059:regel 6077
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.ShowLogOnDialog(Object owner, String functionCode) in File1059:regel 22596
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.<>c__DisplayClass602_2.<CheckConnection>b__2(Object o) in File1059:regel 11995
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.InvokeOnUIThread[T](Func`2 action, String context, Object arg) in File1059:regel 21968
[4840] bij Invantive.Producer.Windows.Forms.UtilityBase.CheckConnection(Boolean forceReconnect, Boolean silent) in File1059:regel 11997
[4840] bij Invantive.Producer.Control.ThisAddIn.ThisAddIn_WorkbookOpen(Workbook workbook) in File178:regel 1012
[4840] bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[4840] bij System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[4840] bij System.Delegate.DynamicInvokeImpl(Object[] args)
[4840] bij System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper.Invoke(Object[] args)
[4840] bij System.Runtime.InteropServices.ComEventsMethod.Invoke(Object[] args)
[4840] bij System.Runtime.InteropServices.ComEventsSink.System.Runtime.InteropServices.NativeMethods.IDispatch.Invoke(Int32 dispid, Guid& riid, Int32 lcid, INVOKEKIND wFlags, DISPPARAMS& pDispParams, IntPtr pvarResult, IntPtr pExcepInfo, IntPtr puArgErr)
[4840] 08:50:28.623-1: !! property-0-System.DllNotFoundException-HelpLink='null'
[4840] property-0-System.DllNotFoundException-HResult='-2146233052'
[4840] property-0-System.DllNotFoundException-Source='PresentationCore'
[4840] property-0-System.DllNotFoundException-TargetSite='Int32 CreateFactory(IntPtr ByRef, UInt32)'
[4840] 08:50:28.628-1: *** Process exception 'DllNotFoundException.-2146233052', show to user is True. ***
[4840] 08:50:28.628-1: Kan DLL wpfgfx_v0400.dll niet laden: Kan opgegeven module niet vinden. (Uitzondering van HRESULT: 0x8007007E).