ADO.NET Entity Data Model

625
4
02-17-2013 10:53 PM
Gregory_KevinMorales
New Contributor III
i have tried using ADO.NET Entity Data Model in my ArcDesktop project using dockable windows.

but every time i start debugging im getting a error.

COMException was unhandled by user code
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Private Sub SetupDockableWindow()
        If m_dockableWindow Is Nothing Then
            Dim dockWindowManager As IDockableWindowManager
            dockWindowManager = CType(m_application, IDockableWindowManager)
            If Not dockWindowManager Is Nothing Then
                Dim windowID As UID = New UIDClass
                windowID.Value = regKey.GetValue("dwUID") 'DockableWindowGuid
                m_dockableWindow = dockWindowManager.GetDockableWindow(windowID) ' <-----on this line
            End If
        End If
End Sub
0 Kudos
4 Replies
JamesCrandall
MVP Frequent Contributor
i have tried using ADO.NET Entity Data Model in my ArcDesktop project using dockable windows.

but every time i start debugging im getting a error.

COMException was unhandled by user code
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Private Sub SetupDockableWindow()
        If m_dockableWindow Is Nothing Then
            Dim dockWindowManager As IDockableWindowManager
            dockWindowManager = CType(m_application, IDockableWindowManager)
            If Not dockWindowManager Is Nothing Then
                Dim windowID As UID = New UIDClass
                windowID.Value = regKey.GetValue("dwUID") 'DockableWindowGuid
                m_dockableWindow = dockWindowManager.GetDockableWindow(windowID) ' <-----on this line
            End If
        End If
End Sub


Add a Try...Catch with some error checking.  Or at minimum, step through and determine the exact line it is failing on.
0 Kudos
Gregory_KevinMorales
New Contributor III
Add a Try...Catch with some error checking.  Or at minimum, step through and determine the exact line it is failing on.


have tried adding try catch... still getting an error in this line...

COMException was unhandled by user code
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

m_dockableWindow = dockWindowManager.GetDockableWindow(windowID) ' <-----on this line


but if i remove the ADO.NET Entity Data Model the error won't appear...
0 Kudos
Gregory_KevinMorales
New Contributor III
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0023000000nq000000


sorry but i don't see anything related to entity data model in that link... or i just don't know what you mean...
0 Kudos