SharpDevelop icon indicating copy to clipboard operation
SharpDevelop copied to clipboard

SharDevelop throwing exception on start

Open Braasileiro opened this issue 7 years ago • 0 comments

Hello,

I'm new to SharpDevelop and wanted to try out a lighter and simpler IDE.

There is a problem when starting the IDE, it closes after confirming the crash screen. I have already installed Build Tools 2013 and 2015 and .NET Developer Pack 4.5.2 and still giving the error. It seems that can not find Build Tools 4.0 but the problem is that I use Windows 10 and it already comes with built-in .NET 4.0 and when I try to install the old Windows 7 SDK with the .NET Framework 4.0 the installation gets disabled Which I believe are needed for operation, but as I said Windows 10 already comes with. NET 4.0 built-in.

Here is the exception:

SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version         : 4.6.01586
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : Portuguese (Brazil) (pt-BR)
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 85572kb
GC Heap Memory       : 7868kb

Unhandled exception
Exception thrown:
Microsoft.Build.Exceptions.InvalidProjectFileException: A versão das ferramentas "4.0" não é reconhecida. As versões de ferramentas disponíveis são "12.0", "14.0", "2.0".
   em Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
   em Microsoft.Build.Evaluation.Project.Data.InitializeForEvaluation(IToolsetProvider toolsetProvider)
   em Microsoft.Build.Evaluation.Evaluator`4..ctor(IEvaluatorData`4 data, ProjectRootElement projectRootElement, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)
   em Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)
   em Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation)
   em Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
   em Microsoft.Build.Evaluation.Project..ctor(XmlReader xmlReader, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
   em ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.PreloadThread()
   em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em System.Threading.ThreadHelper.ThreadStart()

---- Recent log messages:
01:01:09.055 [1] DEBUG - [AddInManager2] AddInsViewModelBase: Changed package source to Repositório de adicionais do SharpDevelop
01:01:09.060 [1] INFO - Starting workbench...
01:01:09.062 [1] DEBUG - NavigationService -- suspend logging
01:01:09.062 [1] INFO - Loading addin Start Page
01:01:09.112 [1] INFO - Loading addin Usage Data Collector
01:01:09.196 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.WinForms.IWinFormsService
01:01:09.212 [1] DEBUG - NavigationService -- resume logging
01:01:09.397 [1] INFO - Number of screens: 1
01:01:09.397 [1] INFO - Screen {X=0,Y=0,Width=1440,Height=900}: Validating {X=10,Y=10,Width=750,Height=550}; intersection {X=10,Y=10,Width=750,Height=550}
01:01:09.428 [1] INFO - dockingManager_Loaded
01:01:09.428 [1] INFO - Loading layout file: C:\Program Files (x86)\SharpDevelop\data\layouts\Default.xml, hideAllLostPads=False
01:01:09.481 [1] DEBUG - ActiveContentChanged to ICSharpCode.StartPage.StartPageViewContent
01:01:09.481 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Start Page]
01:01:09.481 [1] DEBUG - NavigationService
	ActiveViewContent: Start Page
	          Subview: TabPageText
01:01:09.481 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.StartPage.StartPageViewContent
01:01:09.513 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.PropertyPad...
01:01:09.877 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.WinForms.IWinFormsMenuService
01:01:09.898 [1] DEBUG - PropertyPad created
01:01:09.898 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Project.ProjectBrowserPad...
01:01:09.914 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.WinForms.IWinFormsToolbarService
01:01:09.945 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.ErrorListPad...
01:01:10.230 [1] DEBUG - [AddInManager2.Events] Package list download ended (success: True).
01:01:10.379 [10] DEBUG - Preload-Thread started.
01:01:10.499 [10] FATAL - UnhandledException caught
--> Exception:
Microsoft.Build.Exceptions.InvalidProjectFileException: A versão das ferramentas "4.0" não é reconhecida. As versões de ferramentas disponíveis são "12.0", "14.0", "2.0".
   em Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
   em Microsoft.Build.Evaluation.Project.Data.InitializeForEvaluation(IToolsetProvider toolsetProvider)
   em Microsoft.Build.Evaluation.Evaluator`4..ctor(IEvaluatorData`4 data, ProjectRootElement projectRootElement, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)
   em Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)
   em Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation)
   em Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
   em Microsoft.Build.Evaluation.Project..ctor(XmlReader xmlReader, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
   em ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.PreloadThread()
   em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em System.Threading.ThreadHelper.ThreadStart()
01:01:10.499 [10] FATAL - Runtime is terminating because of unhandled exception.

---- Post-error application state information:
Installed 3rd party AddIns: 
ProjectService.CurrentSolution: <null>
ProjectService.CurrentProject: <null>
Workbench.ActiveContent: System.InvalidOperationException: O thread de chamada não pode acessar este objeto porque ele pertence a um thread diferente.
   em System.Windows.Threading.Dispatcher.VerifyAccess()
   em ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()
   em ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()
   em ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<>c.<InitializeWorkbench>b__4_0()
   em ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()

Sorry for the exception being in brazillian portuguese but I'm brazilian and the system language is configured accordingly.

Braasileiro avatar Mar 06 '17 04:03 Braasileiro