Error Exception.InnerException

Stayms Posted messages 102 Registration date   Status Member Last intervention   -  
NHenry Posted messages 2513 Registration date   Status Moderator Last intervention   -
Hello,

I have an error that I cannot resolve at the moment, so I am allowing myself to ask the question here.

Here is a screenshot of the error, if you need more details, I'm here :)



Thank you, Stayms

2 answers

  1. NHenry Posted messages 2513 Registration date   Status Moderator Last intervention   387
     
    What does InnerException contain ?

    --
    If a Dalek is a being of pure hate...what happens when Cadence uses her love spell on one ?
    In VB.NET, consider enabling "Option Explicit" and "Option Strict"
    1
  2. Stayms Posted messages 102 Registration date   Status Member Last intervention   5
     



    The System.InvalidOperationException exception has not been handled
    HResult=-2146233079
    Message=An error occurred while creating the form. For more information, see Exception.InnerException. The error is: Could not load file or assembly 'WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified file could not be found.
    Source=Speedy Stream
    StackTrace:
    at Speedy_Stream.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
    at Speedy_Stream.My.MyProject.MyForms.get_Form8()
    at Speedy_Stream.My.MyApplication.OnCreateMainForm() in C:\Users\Stayms10\Documents\Visual Studio 2010\Projects\SpeedyStream\Chat SQL\My Project\Application.Designer.vb:line 35
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at Speedy_Stream.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
    at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
    at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
    at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
    at System.Activator.CreateInstance(ActivationContext activationContext)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException: System.IO.FileNotFoundException
    HResult=-2147024894
    Message=Could not load file or assembly 'WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified file could not be found.
    Source=Speedy Stream
    FileName=WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    FusionLog==== Pre-bind state information ===
    JRN : DisplayName = WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    (Fully-specified)
    JRN : Appbase = file:///C:/Users/Stayms10/Documents/Visual Studio 2010/Projects/SpeedyStream/Chat SQL/bin/Debug/
    JRN : PrivatePath initial = NULL
    Assembly calling: AxInterop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
    ===
    JRN : this bind starts in the default load context.
    JRN : no application configuration file was found.
    JRN : using host configuration file:
    JRN : using computer configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    JRN : policy not applied to reference at this stage (private, custom, partial or location-based assembly binding).
    JRN : attempting to download new URL file:///C:/Users/Stayms10/Documents/Visual Studio 2010/Projects/SpeedyStream/Chat SQL/bin/Debug/WMPLib.DLL.
    JRN : attempting to download new URL file:///C:/Users/Stayms10/Documents/Visual Studio 2010/Projects/SpeedyStream/Chat SQL/bin/Debug/WMPLib/WMPLib.DLL.
    JRN : attempting to download new URL file:///C:/Users/Stayms10/Documents/Visual Studio 2010/Projects/SpeedyStream/Chat SQL/bin/Debug/WMPLib.EXE.
    JRN : attempting to download new URL file:///C:/Users/Stayms10/Documents/Visual Studio 2010/Projects/SpeedyStream/Chat SQL/bin/Debug/WMPLib/WMPLib.EXE.

    StackTrace:
    at Speedy_Stream.Form8.InitializeComponent()
    at Speedy_Stream.Form8..ctor()
    InnerException:
    0
    1. NHenry Posted messages 2513 Registration date   Status Moderator Last intervention   387
       
      Message=Unable to load the file or assembly 'WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified file could not be found.
      0
    2. Stayms Posted messages 102 Registration date   Status Member Last intervention   5
       
      Yes, but that's exactly the problem; I have no idea what this message is about :p
      0