Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Unhandled Exception Sharp Develop 5. opening EDMX file

$
0
0

Seems to be happening with Entity Framework Version 6 edmx files.

SharpDevelop Version : 5.1.0.5084-Beta 2-c5791b46
.NET Version         : 4.5.50938
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 259188kb
GC Heap Memory       : 75104kb

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.Workbench.OpenedFile.SwitchedToView(IViewContent newView)
   at ICSharpCode.SharpDevelop.Workbench.OpenedFile.ForceInitializeView(IViewContent view)
   at ICSharpCode.SharpDevelop.Workbench.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.Workbench.FileService.LoadFileWrapper.Invoke(FileName fileName)
   at ICSharpCode.Core.FileUtility.<>c__DisplayClass13.<ObservedLoad>b__12()
   at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, FileName fileName, String message, FileErrorPolicy policy)
   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
   at ICSharpCode.SharpDevelop.Workbench.FileService.OpenFile(FileName fileName, Boolean switchToOpenedView)
   at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName)
   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:
12:52:23.922 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\EntityFramework\SQLServer\sysdiagram.cs
12:52:23.926 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\EntityFramework\SQLServer\ViewConfig.cs
12:52:23.929 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Historian\ItemHist.cs
12:52:23.931 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Config\OpcServerConfig.cs
12:52:23.934 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\OPC\Item.cs
12:52:23.936 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\OPC\ItemCollection.cs
12:52:23.938 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Base\BAY.cs
12:52:23.941 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Base\CUSTOMER.cs
12:52:23.943 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Base\REJECTREASON.cs
12:52:23.946 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Base\CUSTOMERS_BATCH.cs
12:52:23.949 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\TieSort\BATCH_PRODUCT.cs
12:52:23.951 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\TieSort\PRODUCTBYBATCH_Result.cs
12:52:23.953 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\TieSort\PRODUCTS_BATCHES.cs
12:52:23.957 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\TieSort\PRODUCT.cs
12:52:23.959 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\TieSort\GRADE.cs
12:52:23.962 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\TieSort\BRAND.cs
12:52:23.964 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Config\Server.cs
12:52:23.966 [1] DEBUG - Save C:\Users\Public\MyProjectSolution\MyProjectClientContracts\Entities\Applications\Config\ServerType.cs
12:52:24.031 [33] DEBUG - Git: OverlayIconManager Thread finished
12:52:25.866 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
12:53:15.119 [1] DEBUG - ExternalProcessDisplayBinding> "C:\Windows otepad.exe" "C:\Users\Public\MyProjectSolution\MyProjectClientContracts\EntityFramework\SQLServer\MyProjectITDataModel.edmx"
12:53:15.144 [1] DEBUG - OpenedFileClosed: C:\Users\Public\MyProjectSolution\MyProjectClientContracts\EntityFramework\SQLServer\MyProjectITDataModel.edmx
12:53:16.414 [1] DEBUG - Resolved (Line 26, Col 10) to
12:54:31.136 [1] INFO - Open file C:\Users\Public\MyProjectSolution\MyProjectClientContracts\EntityFramework\SQLServer\MyProjectITDataModel.edmx
12:54:31.138 [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.Workbench.OpenedFile.SwitchedToView(IViewContent newView)
   at ICSharpCode.SharpDevelop.Workbench.OpenedFile.ForceInitializeView(IViewContent view)
   at ICSharpCode.SharpDevelop.Workbench.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.Workbench.FileService.LoadFileWrapper.Invoke(FileName fileName)
   at ICSharpCode.Core.FileUtility.<>c__DisplayClass13.<ObservedLoad>b__12()
   at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, FileName fileName, String message, FileErrorPolicy policy)
   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
   at ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
   at ICSharpCode.SharpDevelop.Workbench.FileService.OpenFile(FileName fileName, Boolean switchToOpenedView)
   at ICSharpCode.SharpDevelop.FileService.OpenFile(String fileName)
   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: [PInvoke Add-in 0.0.0.0], [WSPBuilderAddinV5 0.0.0.0]
ProjectService.CurrentSolution: [Solution C:\Users\MeMyself\Documents\SharpDevelop Projects\MyProjectsSoluion\MyProjectsSoluion.sln with 3 projects]
ProjectService.CurrentProject: [CSharpProject: MyProjectClientContracts]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad


Viewing all articles
Browse latest Browse all 1764

Trending Articles