I installed a package using nuget, and then deleted it manually.
I've then tried to manage pacakges withing SharpD, and I get this error:
SharpDevelop Version : 4.2.2.8818-3d0b926b
.NET Version : 4.0.30319.18033
OS Version : Microsoft Windows NT 6.2.9200.0
Current culture : English (Australia) (en-AU)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 175968kb
GC Heap Memory : 82034kb
Can't create menu command : ManagePackages
Exception thrown:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'ICSharpCode.PackageManagement.PackageManagementServices' threw an exception. ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: configuration. Line 6, position 18.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
at NuGet.XmlUtility.GetDocument(IFileSystem fileSystem, String path)
at NuGet.XmlUtility.GetOrCreateDocument(XName rootName, IFileSystem fileSystem, String path)
at NuGet.Settings..ctor(IFileSystem fileSystem)
at ICSharpCode.PackageManagement.SettingsFactory.CreateSettings(String directory)
at ICSharpCode.PackageManagement.RegisteredProjectTemplatePackageSources.CreateSettings(IPropertyService propertyService, ISettingsFactory settingsFactory)
at ICSharpCode.PackageManagement.RegisteredProjectTemplatePackageSources.GetRegisteredPackageSources(IPropertyService propertyService, ISettingsFactory settingsFactory)
at ICSharpCode.PackageManagement.RegisteredProjectTemplatePackageSources..ctor()
at ICSharpCode.PackageManagement.PackageManagementServices..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.PackageManagement.PackageManagementServices.get_OutputMessagesView()
at ICSharpCode.PackageManagement.ManagePackagesCommand..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ICSharpCode.Core.AddIn.CreateObject(String className)
at ICSharpCode.Core.WinForms.MenuCommand.CreateCommand()
---- Recent log messages:
11:48:20.940 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\CreateInstances.cs new!=null:True
11:48:20.948 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\Properties\AssemblyInfo.cs new!=null:True
11:48:20.948 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\DELETE.cs new!=null:True
11:48:20.948 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\clsIndex.cs new!=null:True
11:48:20.949 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\clsStratRunner.cs new!=null:True
11:48:20.949 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\clsSQL.cs new!=null:True
11:48:20.949 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\ExecutionTimer.cs new!=null:True
11:48:20.949 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\TEMP.cs new!=null:True
11:48:20.950 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\FastBitConverter.cs new!=null:True
11:48:20.951 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\Properties\Settings.Designer.cs new!=null:True
11:48:20.952 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\CompileStrat.cs new!=null:True
11:48:20.953 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\clsIB.cs new!=null:True
11:48:20.953 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\clsPosition.cs new!=null:True
11:48:20.953 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\TickStore.cs new!=null:True
11:48:20.953 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\ColumnStore.cs new!=null:True
11:48:20.963 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\MyClass.cs new!=null:True
11:48:20.963 [1] DEBUG - ParseInformationUpdated L:\Projects\myFuncs20\myFuncs20\Server.cs new!=null:True
11:48:20.963 [1] DEBUG - NavigationService -- resume logging
11:48:21.044 [5] DEBUG - Git: OverlayIconManager Thread finished
11:48:22.461 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
11:48:22.466 [1] INFO - CurrentProject changed to AutoTrading
11:48:22.466 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = ManagePackages, addIn=F:\Apps\SharpDevelop\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!
11:48:23.873 [1] INFO - Loading addin Package Management
11:48:23.893 [1] ERROR - Can't create menu command : ManagePackages
--> Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'ICSharpCode.PackageManagement.PackageManagementServices' threw an exception. ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: configuration. Line 6, position 18.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
at NuGet.XmlUtility.GetDocument(IFileSystem fileSystem, String path)
at NuGet.XmlUtility.GetOrCreateDocument(XName rootName, IFileSystem fileSystem, String path)
at NuGet.Settings..ctor(IFileSystem fileSystem)
at ICSharpCode.PackageManagement.SettingsFactory.CreateSettings(String directory)
at ICSharpCode.PackageManagement.RegisteredProjectTemplatePackageSources.CreateSettings(IPropertyService propertyService, ISettingsFactory settingsFactory)
at ICSharpCode.PackageManagement.RegisteredProjectTemplatePackageSources.GetRegisteredPackageSources(IPropertyService propertyService, ISettingsFactory settingsFactory)
at ICSharpCode.PackageManagement.RegisteredProjectTemplatePackageSources..ctor()
at ICSharpCode.PackageManagement.PackageManagementServices..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.PackageManagement.PackageManagementServices.get_OutputMessagesView()
at ICSharpCode.PackageManagement.ManagePackagesCommand..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ICSharpCode.Core.AddIn.CreateObject(String className)
at ICSharpCode.Core.WinForms.MenuCommand.CreateCommand()
11:48:23.897 [1] WARN - Stack trace of last exception log:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at ICSharpCode.Core.MessageService.ShowException(Exception ex, String message)
at ICSharpCode.Core.WinForms.MenuCommand.CreateCommand()
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)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)
at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)
at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()
at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()
at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
ProjectService.OpenSolution: [Solution: FileName=L:\Projects\myFuncs20\myFuncs20.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: AutoTrading]