SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

edmx files error

Last post 01-08-2014 12:47 AM by wslyhbb. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-18-2013 12:00 PM

    • eiadxp
    • Not Ranked
    • Joined on 02-18-2013
    • Posts 3

    edmx files error

    When i try to open an .emdx file which has been created in VS2012(VB) i got unhandled exception:

     

    SharpDevelop Version : 4.3.0.9338-alpha-5f770be6

    .NET Version         : 4.0.30319.18034

    OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

    Current culture      : Arabic (Qatar) (ar-QA)

    Current UI language  : en

    Running under WOW6432, processor architecture: x86-64

    Working Set Memory   : 106648kb

    GC Heap Memory       : 27380kb

     

    Exception thrown:

    System.NullReferenceException: Object reference not set to an instance of an object.

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent.Dispose()

       at ICSharpCode.SharpDevelop.OpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.SharpDevelop.FileServiceOpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent..ctor(OpenedFile primaryFile)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerDisplayBinding.CreateContentForFile(OpenedFile file)

       at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

       at ICSharpCode.Core.FileUtility.<>c__DisplayClass14.<ObservedLoad>b__13()

       at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, FileErrorPolicy policy)

       at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName, Boolean switchToOpenedView)

       at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()

       at ICSharpCode.SharpDevelop.Gui.ExtTreeView.OnMouseDoubleClick(MouseEventArgs e)

       at System.Windows.Forms.TreeView.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    ---- Recent log messages:

    13:54:37.130 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll

    13:54:37.130 [LoadSolutionProjects] DEBUG - Loading PC for System.Xml.Linq

    13:54:37.130 [LoadSolutionProjects] DEBUG - Try find XMLDoc @C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\en\System.Xml.Linq.xml

    13:54:37.130 [LoadSolutionProjects] DEBUG - Try find XMLDoc @C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.xml

    13:54:37.130 [LoadSolutionProjects] DEBUG - Loading XmlDoc for C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.xml

    13:54:37.130 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll

    13:54:37.150 [8] DEBUG - Adding existing class MyApplication from Application.Designer.vb

    13:54:37.150 [8] DEBUG - Creating compound for WindowsApplication1.My.MyApplication

    13:54:37.150 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Form1.vb new!=null:True

    13:54:37.150 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\My Project\Application.Designer.vb new!=null:True

    13:54:37.150 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\My Project\AssemblyInfo.vb new!=null:True

    13:54:37.160 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\My Project\Settings.Designer.vb new!=null:True

    13:54:37.160 [13] DEBUG - Adding existing class Form1 from Form1.Designer.vb

    13:54:37.160 [13] DEBUG - Creating compound for WindowsApplication1.Form1

    13:54:37.160 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Form1.Designer.vb new!=null:True

    13:54:37.160 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\My Project\Resources.Designer.vb new!=null:True

    13:54:37.160 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb new!=null:True

    13:54:37.160 [1] DEBUG - NavigationService -- resume logging

    13:54:37.295 [5] DEBUG - Git: OverlayIconManager Thread finished

    13:54:39.613 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

    13:54:39.613 [1] DEBUG - ActiveWorkbenchWindowChanged to 

    13:54:39.615 [1] INFO - CurrentProject changed to WindowsApplication1

    13:54:39.658 [1] INFO - Loading addin ASP.NET MVC Binding

    13:54:39.884 [1] INFO - Open file C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx

    13:54:39.933 [1] ERROR - ThreadException caught

    --> Exception:

    System.NullReferenceException: Object reference not set to an instance of an object.

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent.Dispose()

       at ICSharpCode.SharpDevelop.OpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.SharpDevelop.FileServiceOpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent..ctor(OpenedFile primaryFile)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerDisplayBinding.CreateContentForFile(OpenedFile file)

       at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

       at ICSharpCode.Core.FileUtility.<>c__DisplayClass14.<ObservedLoad>b__13()

       at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, FileErrorPolicy policy)

       at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName, Boolean switchToOpenedView)

       at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()

       at ICSharpCode.SharpDevelop.Gui.ExtTreeView.OnMouseDoubleClick(MouseEventArgs e)

       at System.Windows.Forms.TreeView.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    ---- Post-error application state information:

    Installed 3rd party AddIns: 

    Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

    ProjectService.OpenSolution: [Solution: FileName=C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\EntityDataTest.sln, HasProjects=True, ReadOnly=False]

    ProjectService.CurrentProject: [VBNetProject: WindowsApplication1]

  • 02-18-2013 8:37 PM In reply to

    Re: edmx files error

    Can you try a more recent release of SharpDevelop 4.3 available from the build server? This should have some fixes for errors that occur when opening .edmx files.

  • 02-19-2013 10:19 PM In reply to

    • eiadxp
    • Not Ranked
    • Joined on 02-18-2013
    • Posts 3

    Re: edmx files error

    Sorry my friend, But i've got an exception again:

     

    SharpDevelop Version : 4.3.0.9377-2c197e33

    .NET Version         : 4.0.30319.18034

    OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

    Current culture      : Arabic (Qatar) (ar-QA)

    Current UI language  : en

    Running under WOW6432, processor architecture: x86-64

    Working Set Memory   : 138928kb

    GC Heap Memory       : 33268kb

     

    Exception thrown:

    System.NullReferenceException: Object reference not set to an instance of an object.

       at ICSharpCode.Data.EDMDesigner.Core.IO.SSDLIO.ReadXElement(XElement ssdlXElement)

       at ICSharpCode.Data.EDMDesigner.Core.IO.EDMXIO.Read(XElement edmx, Action`1 readMoreAction)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent.Load(OpenedFile file, Stream stream)

       at ICSharpCode.SharpDevelop.OpenedFile.SwitchedToView(IViewContent newView)

       at ICSharpCode.SharpDevelop.OpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.SharpDevelop.FileServiceOpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent..ctor(OpenedFile primaryFile)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerDisplayBinding.CreateContentForFile(OpenedFile file)

       at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

       at ICSharpCode.Core.FileUtility.<>c__DisplayClass14.<ObservedLoad>b__13()

       at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, FileErrorPolicy policy)

       at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName, Boolean switchToOpenedView)

       at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()

       at ICSharpCode.SharpDevelop.Gui.ExtTreeView.OnMouseDoubleClick(MouseEventArgs e)

       at System.Windows.Forms.TreeView.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    ---- Recent log messages:

    00:14:06.805 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb]

    00:14:06.805 [1] DEBUG - ParseInformationUpdated C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb new!=null:True

    00:14:09.035 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

    00:14:09.465 [1] INFO - Open file C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx.diagram

    00:14:09.495 [1] DEBUG - Activated feature 'ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent/open.?'

    00:14:09.495 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx.diagram]' from key '1e13ec5:C:\USERS\EIAD AL-KHANSHOUR\DOCUMENTS\VISUAL STUDIO 2012\PROJECTS\ENTITYDATATEST\WINDOWSAPPLICATION1\MODEL1.EDMX.DIAGRAM'

    00:14:09.505 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx.diagram]

    00:14:09.505 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Model1.edmx.diagram]

    00:14:09.505 [1] DEBUG - NavigationService

    ActiveViewContent: Model1.edmx.diagram

             Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}

    00:14:09.505 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx.diagram]

    00:14:11.286 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx.diagram]' to key '1e13ec5:C:\USERS\EIAD AL-KHANSHOUR\DOCUMENTS\VISUAL STUDIO 2012\PROJECTS\ENTITYDATATEST\WINDOWSAPPLICATION1\MODEL1.EDMX.DIAGRAM'

    00:14:11.316 [1] DEBUG - ActiveContentChanged to 

    00:14:11.316 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb]

    00:14:11.316 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Model1.Designer.vb]

    00:14:11.316 [1] DEBUG - NavigationService

    ActiveViewContent: Model1.Designer.vb

             Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}

    00:14:11.316 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb]

    00:14:11.326 [1] DEBUG - OpenedFileClosed: C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx.diagram

    00:14:12.516 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb]' to key '1e13ec5:C:\USERS\EIAD AL-KHANSHOUR\DOCUMENTS\VISUAL STUDIO 2012\PROJECTS\ENTITYDATATEST\WINDOWSAPPLICATION1\MODEL1.DESIGNER.VB'

    00:14:12.526 [1] DEBUG - ActiveContentChanged to 

    00:14:12.536 [1] DEBUG - ActiveViewContentChanged to 

    00:14:12.536 [1] DEBUG - OpenedFileClosed: C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.Designer.vb

    00:17:08.908 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

    00:17:08.908 [1] DEBUG - ActiveWorkbenchWindowChanged to 

    00:17:09.219 [1] INFO - Open file C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\WindowsApplication1\Model1.edmx

    00:17:09.220 [1] ERROR - ThreadException caught

    --> Exception:

    System.NullReferenceException: Object reference not set to an instance of an object.

       at ICSharpCode.Data.EDMDesigner.Core.IO.SSDLIO.ReadXElement(XElement ssdlXElement)

       at ICSharpCode.Data.EDMDesigner.Core.IO.EDMXIO.Read(XElement edmx, Action`1 readMoreAction)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent.Load(OpenedFile file, Stream stream)

       at ICSharpCode.SharpDevelop.OpenedFile.SwitchedToView(IViewContent newView)

       at ICSharpCode.SharpDevelop.OpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.SharpDevelop.FileServiceOpenedFile.ForceInitializeView(IViewContent view)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerViewContent..ctor(OpenedFile primaryFile)

       at ICSharpCode.Data.EDMDesigner.Core.UI.DisplayBinding.EDMDesignerDisplayBinding.CreateContentForFile(OpenedFile file)

       at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

       at ICSharpCode.Core.FileUtility.<>c__DisplayClass14.<ObservedLoad>b__13()

       at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)

       at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, String fileName, FileErrorPolicy policy)

       at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName, Boolean switchToOpenedView)

       at ICSharpCode.SharpDevelop.Project.FileNode.ActivateItem()

       at ICSharpCode.SharpDevelop.Gui.ExtTreeView.OnMouseDoubleClick(MouseEventArgs e)

       at System.Windows.Forms.TreeView.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    ---- Post-error application state information:

    Installed 3rd party AddIns: 

    Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

    ProjectService.OpenSolution: [Solution: FileName=C:\Users\Eiad Al-Khanshour\Documents\Visual Studio 2012\Projects\EntityDataTest\EntityDataTest.sln, HasProjects=True, ReadOnly=False]

    ProjectService.CurrentProject: [VBNetProject: WindowsApplication1]

  • 02-25-2013 11:09 PM In reply to

    Re: edmx files error

    Tried generating a few .edmx files in Visual Studio 2012 but they all seem to open in SharpDevelop. So I would probably need to see your .edmx file and how you generated it.

  • 01-08-2014 12:47 AM In reply to

    Re: edmx files error

    I am getting the same error with the latest SharpDevelop 4.4.

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.