I don't know yet if this a Visual Studio bug or a third party extension issue.
I have a VS solution with an ASP.NET/Visual C# project.
I add a new XtraReport report (an ASP.NET component provided by DevExpress).
I edit the report inside the XtraReport designer.
I save and I close the solution, then I open it again.
If I try to edit the report I get an error: "Error HRESULT E_FAIL has been returned from a call to a COM component".
Following is the call stack:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnTypePopulateMembers(Object sender, EventArgs e)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at DevExpress.Utils.Serializers.ComponentCodeDomeSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration codeTypeDeclaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
There is no way to open the report designer but performing some deeper tests, I found that if I remove the solution ".suo" file everything works fine! Moreover I discovered that if I reopen the existing solution and I edit any C# source file, the intellisense does not work; if I remove the ".suo" file and I open the solution again, then intellisense works fine.
It looks like the ".suo" file has some issue with serialization/deserialization. I already opened a ticket with DevExpress but, of course, they answered me it's not an issue with DevExpress product.
I think this issue may be caused by VS itself or by a third party extension but I don't know how can I debug/trace VS (please note that many of the extensions I use, cannot be disabled - I can only uninstall them and it's a problem for me to uninstall all extensions until I found the one which causes the problem - if exists).
Can someone help me with this issue?