Visual Studio Developer Center > Visual Studio Forums > Visual Studio Extensibility > Why am I receiving an "Exception from HRESULT: 0xC0000005"
Ask a questionAsk a question
 

AnswerWhy am I receiving an "Exception from HRESULT: 0xC0000005"

  • Tuesday, November 03, 2009 5:22 AMRonald Osmo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am reading data in from an external source adding Tables to the diagram when i receive an Exception, raised at

       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
       at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr)
       at Microsoft.VisualStudio.Modeling.Shell.DocData.QueryEditFile(String fileName, tagVSQueryEditFlags vsQueryEditFlags)
       at Microsoft.VisualStudio.Modeling.Shell.DocData.QueryEditFile()
       at Microsoft.VisualStudio.Modeling.Shell.ModelingDocStore.CanCommit(Transaction transaction)
       at Microsoft.VisualStudio.Modeling.Transaction.Commit()
       at Redox.DataWarehouseDesigner.DslPackage.AddArtifact.AddCubesToModel(BackgroundWorker worker, DoWorkEventArgs e) in C:\Workspaces\Ron.Osmo\Redebiz 1.0\Redox.DataWarehouse.Designer\DslPackage\CustomCode\AddArtifact.cs:line 480

    I am obviously missing some crucial DSL features like EMD's or the like.

    Interestingly i can manually add MEL's and LINKS to the model, but not automatically, could someone please explain how the diagram fixup process is failing in my case, as I cannot find any documentation that helps explain the issue that is arising?
    •  

Answers

  • Wednesday, November 04, 2009 11:20 PMRonald Osmo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    DOH!

    The problem was not linking new MELs into the root MEL for the project. Once i did that the code worked.
    • Marked As Answer byRonald Osmo Wednesday, November 04, 2009 11:20 PM
    •  

All Replies

  • Wednesday, November 04, 2009 11:20 PMRonald Osmo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    DOH!

    The problem was not linking new MELs into the root MEL for the project. Once i did that the code worked.
    • Marked As Answer byRonald Osmo Wednesday, November 04, 2009 11:20 PM
    •