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

Why my sharpdeveloper can not add reference? Here is the error! Thank you!

$
0
0

 SharpDevelop Version : 5.0.0.4755-c848dc28
.NET Version         : 4.5.51209
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : Chinese (Simplified, PRC) (zh-CN)
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 337184kb
GC Heap Memory       : 48351kb

Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.SharpDevelop.Parser.GlobalAssemblyCacheService.<GetGacAssemblyFullNames>d__0.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel.GetCacheContent()
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel.PrintCache()
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel..ctor(ISelectReferenceDialog selectDialog)
   at ICSharpCode.SharpDevelop.Gui.SelectReferenceDialog..ctor(IProject configureProject)
   at ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject.Run()
   at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
   at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.ExecuteCommand(ICommand command, Object caller)
   at ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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:
23:22:08.558 [1] DEBUG - Resolved (Line 16, Col 40) to [LocalResolveResult System.Array ObjectTypes;]
23:22:08.606 [1] DEBUG - Resolved (Line 16, Col 40) to [LocalResolveResult System.Array ObjectTypes;]
23:22:08.652 [1] DEBUG - Resolved (Line 15, Col 33) to
23:22:08.682 [1] DEBUG - Resolved (Line 15, Col 33) to
23:22:08.906 [1] DEBUG - Resolved (Line 15, Col 33) to
23:22:09.806 [1] DEBUG - Resolved (Line 15, Col 33) to
23:22:12.820 [1] DEBUG - Resolved (Line 16, Col 37) to [LocalResolveResult System.Array ObjectTypes;]
23:22:17.159 [1] DEBUG - Resolved (Line 25, Col 5) to
23:22:17.232 [1] DEBUG - Resolved (Line 25, Col 5) to
23:22:17.266 [1] DEBUG - Resolved (Line 24, Col 50) to [LocalResolveResult System.Int32 i;]
23:22:17.326 [1] DEBUG - Resolved (Line 25, Col 5) to
23:23:32.622 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
23:23:33.358 [1] INFO - Show add reference dialog for E:\TemWork\DeskTop\sapPlugin\sapPlugin\sapPlugin.csproj
23:23:36.573 [1] ERROR - ThreadException caught
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.SharpDevelop.Parser.GlobalAssemblyCacheService.<GetGacAssemblyFullNames>d__0.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel.GetCacheContent()
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel.PrintCache()
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel..ctor(ISelectReferenceDialog selectDialog)
   at ICSharpCode.SharpDevelop.Gui.SelectReferenceDialog..ctor(IProject configureProject)
   at ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject.Run()
   at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
   at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.ExecuteCommand(ICommand command, Object caller)
   at ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)
23:23:48.289 [1] DEBUG - Resolved (Line 12, Col 53) to [LocalResolveResult ref SapModel:Sap2000.cSapModel&]
23:23:48.353 [1] DEBUG - Resolved (Line 21, Col 35) to [ConstantResolveResult System.Int32 = 2]
23:23:48.400 [1] DEBUG - Resolved (Line 23, Col 22) to [LocalResolveResult System.Int32 FrameObjectNumbers;]
23:23:50.741 [1] DEBUG - Resolved (Line 23, Col 1) to [ResolveResult System.Void]
23:23:50.763 [1] DEBUG - Resolved (Line 22, Col 1) to [ResolveResult System.Void]
23:23:50.772 [1] DEBUG - Resolved (Line 22, Col 1) to [ResolveResult System.Void]
23:23:50.786 [1] DEBUG - Resolved (Line 21, Col 1) to [ResolveResult System.Void]
23:23:50.803 [1] DEBUG - Resolved (Line 21, Col 1) to [ResolveResult System.Void]
23:23:50.818 [1] DEBUG - Resolved (Line 20, Col 1) to [ResolveResult System.Void]
23:23:52.184 [1] INFO - Show add reference dialog for E:\TemWork\DeskTop\sapPlugin\sapPlugin\sapPlugin.csproj
23:23:53.669 [1] ERROR - ThreadException caught
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.SharpDevelop.Parser.GlobalAssemblyCacheService.<GetGacAssemblyFullNames>d__0.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel.GetCacheContent()
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel.PrintCache()
   at ICSharpCode.SharpDevelop.Gui.GacReferencePanel..ctor(ISelectReferenceDialog selectDialog)
   at ICSharpCode.SharpDevelop.Gui.SelectReferenceDialog..ctor(IProject configureProject)
   at ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject.Run()
   at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
   at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.ExecuteCommand(ICommand command, Object caller)
   at ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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:
ProjectService.CurrentSolution: [Solution E:\TemWork\DeskTop\sapPlugin\sapPlugin.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: sapPlugin]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad


Viewing all articles
Browse latest Browse all 1764

Trending Articles