EDN Admin
Well-known member
Every time I open an dialog-based MFC project, there is an error in the properties saying
<pre class="prettyprint An exception was encountered while constructing the content of this frame. This information is also logged by running the application with the /log parameter on the command line, which stores results in "C:UsersDeveloperAppDataRoamingMicrosoftVisualStudio10.0ActivityLog.xml".
Exception details:
System.InvalidCastException: Package Windows Forms Designer Package failed to load.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Platform.WindowManagement.PropertyBrowserSwitcher.OnQuerySwitchPane(FrameMoniker frameMoniker)
at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.QuerySwitchPane(FrameMoniker frameMoniker)
at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.OnElementValueChanged(UInt32 elementid, Object varValueOld, Object varValueNew)
at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.OnToolWindowCreated()
at Microsoft.VisualStudio.Platform.WindowManagement.PropertyBrowserSwitcher.OnToolWindowCreated()
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()[/code]
I have tried to re-install VS2010, but the error still appeared. Would anyone please advise how to solve it?<br/>
<hr class="sig I am new to VC++ programming, but I am passionate about it
View the full article
<pre class="prettyprint An exception was encountered while constructing the content of this frame. This information is also logged by running the application with the /log parameter on the command line, which stores results in "C:UsersDeveloperAppDataRoamingMicrosoftVisualStudio10.0ActivityLog.xml".
Exception details:
System.InvalidCastException: Package Windows Forms Designer Package failed to load.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Platform.WindowManagement.PropertyBrowserSwitcher.OnQuerySwitchPane(FrameMoniker frameMoniker)
at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.QuerySwitchPane(FrameMoniker frameMoniker)
at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.OnElementValueChanged(UInt32 elementid, Object varValueOld, Object varValueNew)
at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.OnToolWindowCreated()
at Microsoft.VisualStudio.Platform.WindowManagement.PropertyBrowserSwitcher.OnToolWindowCreated()
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()[/code]
I have tried to re-install VS2010, but the error still appeared. Would anyone please advise how to solve it?<br/>
<hr class="sig I am new to VC++ programming, but I am passionate about it
View the full article