So I successfully converted from Visual Basic to C# the 3 projects that made up my solution. Since I had no solution in the C# domain, I tried to create a new one so I could include the 3 projects I just converted to C#. That is when I got the following error:
SharpDevelop Version : 4.4.2.9749-39bf891c
.NET Version : 4.0.30319.42000
OS Version : Microsoft Windows NT 6.2.9200.0
Current culture : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 160848kb
GC Heap Memory : 42139kb
Error while loading project template:
(C:\Program Files (x86)\SharpDevelop\4.4\data\templates\project\CSharp\Mvc3RazorProject.xpt)
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.UnauthorizedAccessException: Access to the path 'C:\Users\Tom\AppData\Roaming\NuGet\NuGet.Config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at NuGet.PhysicalFileSystem.AddFileCore(String path, Action`1 writeToStream)
at NuGet.PhysicalFileSystem.AddFile(String path, Action`1 writeToStream)
at NuGet.Settings.<Save>b__b()
at NuGet.Settings.ExecuteSynchronized(Action ioOperation)
at NuGet.Settings.Save()
at NuGet.Settings.SetValues(String section, IList`1 values)
at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.UpdatePackageSourceSettingsWithChanges()
at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.ReadPackageSources()
at ICSharpCode.PackageManagement.PackageManagementOptions.get_PackageSources()
at ICSharpCode.PackageManagement.PackageManagementServices..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.PackageManagement.PackageManagementServices.get_ProjectTemplatePackageRepositoryCache()
at ICSharpCode.PackageManagement.InstallProjectTemplatePackagesCommand..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.ClassDoozer.BuildItem(BuildItemArgs args)
at ICSharpCode.Core.Codon.BuildItem(BuildItemArgs args)
at ICSharpCode.Core.AddInTreeNode.BuildChildItem(Codon codon, Object caller, IEnumerable`1 additionalConditions)
at ICSharpCode.Core.AddInTreeNode.BuildChildItem(String childItemID, Object caller, IEnumerable`1 additionalConditions)
at ICSharpCode.Core.AddInTree.BuildItem(String path, Object caller, IEnumerable`1 additionalConditions)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.ReadAction(XmlElement el)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.LoadFromXml(XmlElement templateElement, String xmlFileName)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate..ctor(String fileName)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.UpdateTemplates()
---- Recent log messages:
15:01:58.821 [53] DEBUG - Adding existing class frmMuseum from frmMuseum.Designer.cs
15:01:58.821 [53] DEBUG - Creating compound for PresentationLayer.frmMuseum
15:01:58.821 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmMuseum.Designer.cs new!=null:True
15:01:58.821 [58] DEBUG - Removing part C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmLogin.Designer.cs from compound class PresentationLayer.frmLogin
15:01:58.821 [58] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
15:01:58.821 [58] DEBUG - Adding existing class frmLogin from frmLogin.Designer.cs
15:01:58.821 [58] DEBUG - Creating compound for PresentationLayer.frmLogin
15:01:58.821 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmLogin.Designer.cs new!=null:True
15:01:58.821 [54] DEBUG - Removing part C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmShowManual.Designer.cs from compound class PresentationLayer.frmShowManual
15:01:58.821 [54] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
15:01:58.822 [54] DEBUG - Adding existing class frmShowManual from frmShowManual.Designer.cs
15:01:58.822 [54] DEBUG - Creating compound for PresentationLayer.frmShowManual
15:01:58.822 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\frmShowManual.Designer.cs new!=null:True
15:01:58.822 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\My Project\Settings.Designer.cs new!=null:True
15:01:58.823 [45] DEBUG - Removing part C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\MyNamespaceSupportForCSharp.cs from compound class PresentationLayer.My.MyApplication
15:01:58.823 [45] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
15:01:58.823 [45] DEBUG - Adding existing class MyApplication from MyNamespaceSupportForCSharp.cs
15:01:58.823 [45] DEBUG - Creating compound for PresentationLayer.My.MyApplication
15:01:58.823 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\MyNamespaceSupportForCSharp.cs new!=null:True
15:01:58.823 [1] DEBUG - ParseInformationUpdated C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\Presentation Layer.ConvertedToC#\My Project\Resources.Designer.cs new!=null:True
15:01:58.851 [40] DEBUG - Git: OverlayIconManager Thread finished
15:02:22.305 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.CreateNewSolution', activation=MainMenu
15:02:22.742 [1] INFO - Loading addin Package Management
15:02:22.930 [1] ERROR - Error while loading project template:
(C:\Program Files (x86)\SharpDevelop\4.4\data\templates\project\CSharp\Mvc3RazorProject.xpt)
--> 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.UnauthorizedAccessException: Access to the path 'C:\Users\Tom\AppData\Roaming\NuGet\NuGet.Config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at NuGet.PhysicalFileSystem.AddFileCore(String path, Action`1 writeToStream)
at NuGet.PhysicalFileSystem.AddFile(String path, Action`1 writeToStream)
at NuGet.Settings.<Save>b__b()
at NuGet.Settings.ExecuteSynchronized(Action ioOperation)
at NuGet.Settings.Save()
at NuGet.Settings.SetValues(String section, IList`1 values)
at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.UpdatePackageSourceSettingsWithChanges()
at ICSharpCode.PackageManagement.RegisteredPackageSourceSettings.ReadPackageSources()
at ICSharpCode.PackageManagement.PackageManagementOptions.get_PackageSources()
at ICSharpCode.PackageManagement.PackageManagementServices..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.PackageManagement.PackageManagementServices.get_ProjectTemplatePackageRepositoryCache()
at ICSharpCode.PackageManagement.InstallProjectTemplatePackagesCommand..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.ClassDoozer.BuildItem(BuildItemArgs args)
at ICSharpCode.Core.Codon.BuildItem(BuildItemArgs args)
at ICSharpCode.Core.AddInTreeNode.BuildChildItem(Codon codon, Object caller, IEnumerable`1 additionalConditions)
at ICSharpCode.Core.AddInTreeNode.BuildChildItem(String childItemID, Object caller, IEnumerable`1 additionalConditions)
at ICSharpCode.Core.AddInTree.BuildItem(String path, Object caller, IEnumerable`1 additionalConditions)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.ReadAction(XmlElement el)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.LoadFromXml(XmlElement templateElement, String xmlFileName)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate..ctor(String fileName)
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.UpdateTemplates()
15:02:23.117 [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.SharpDevelop.Internal.Templates.ProjectTemplate.UpdateTemplates()
at ICSharpCode.SharpDevelop.Internal.Templates.ProjectTemplate.get_ProjectTemplates()
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.InitializeTemplates()
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog..ctor(Boolean createNewSolution)
at ICSharpCode.SharpDevelop.Project.Commands.CreateNewSolution.Run()
at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(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.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: [AvalonEditViewContent 39114066\Conversion Results]
ProjectService.OpenSolution: [Solution: FileName=C:\Users\Tom\Desktop\CE_MuseumTWRvb\CE_Museum\CE_Museum.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: PresentationLayer]