SharpDevelop Community

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

Entity Framework error

Last post 09-08-2012 4:53 AM by erkape. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-08-2012 4:53 AM

    • erkape
    • Not Ranked
    • Joined on 09-08-2012
    • Posts 2

    Entity Framework error

    I tried to create ENtity Framework with SharpDevelop, when I clicked the 'Finish' Button, it showed an error saying that it cannot create EDMX. I dont why.

    So I create the edmx with Visual Studio 2010, then I copied the EDMX and designer files into my SharpDevelop project. when I double clicked the edmx file it showed an error

    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   : 256852kb
    GC Heap Memory       : 86306kb

    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:
    09:45:49.908 [LoadSolutionProjects] DEBUG - XmlDoc: Creating cache for C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Security.xml
    09:45:49.917 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Security.dll
    09:45:49.918 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll
    09:45:49.918 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll
    09:45:49.918 [LoadSolutionProjects] DEBUG - RefreshProjectContentForReference: not refreshing (rpc.IsUpToDate) C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll
    09:46:07.150 [1] WARN - Created view content was null - DefaultName:Model1.edmx
    09:49:24.081 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\MainForm.cs]
    09:49:25.362 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
    09:49:27.189 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.AddExistingItemsToProject', activation=Menu
    09:49:54.627 [5] DEBUG - Git: OverlayIconManager Thread started
    09:49:54.685 [1] DEBUG - ParseInformationUpdated C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs new!=null:True
    09:49:54.729 [5] DEBUG - Git: OverlayIconManager Thread finished
    09:49:58.528 [1] INFO - Open file C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs
    09:49:58.546 [1] DEBUG - Activated feature 'ICSharpCode.AvalonEdit.AddIn.AvalonEditViewContent/open.cs'
    09:49:58.559 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs]' from key '1e13ec5:C:\USERS\ERKAPE\DOCUMENTS\SHARPDEVELOP PROJECTS\TES\TES\MODEL1.DESIGNER.CS'
    09:49:58.568 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs]
    09:49:58.568 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Model1.Designer.cs]
    09:49:58.568 [1] DEBUG - NavigationService
        ActiveViewContent: Model1.Designer.cs
                  Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
    09:49:58.568 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs]
    09:49:58.570 [1] DEBUG - ParseInformationUpdated C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs new!=null:True
    09:49:58.651 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
    09:49:58.653 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.Designer.cs]
    09:50:03.331 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
    09:50:04.815 [1] INFO - Open file C:\Users\erkape\Documents\SharpDevelop Projects\Tes\Tes\Model1.edmx
    09:50:04.834 [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\erkape\Documents\SharpDevelop Projects\Tes\Tes.sln, HasProjects=True, ReadOnly=False]
    ProjectService.CurrentProject: [CSharpProject: Tes]

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