Question

I got this error very frequent for my asp.net MVC4 applications. The project does build OK but it shows a message in the output.

18/04/2013 3:17:57 p.m.: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()

I am using VS2012 Update 1. Web Essentials 2012 version 2.6.

It is not major but annoy. Please help.

Was it helpful?

Solution

This is an older question, but a top hit on Google. So here is my answer. I have found this occurs due to some version conflict or early bug in Visual Studio and the Web Essential 2012 Extension. With an RTM install of Visual Studio 2012 and the latest Web Essentials (version 3.2 at the time of this post) I can reproduce this error.

Installing the latest update to Visual Studio has fixed the problem for me. Update

To confirm what version of Visual Studio you are running, goto Help -> About

Update 3 or greater should fix the issue

Microsoft Visual Studio Ultimate 2012
Version 11.0.60610.01 Update 3

Here is a link to the Visual Studio update on the Microsoft site

OTHER TIPS

This is old but I'll add my issue.

It's happening on VS2012 with Web Essentials Only occurs when a folder is selected and I request a build (CTRL+SHIFT+B). If I select a project the error disappear.

    13/04/2015 01:42:47: Parâmetro incorreto. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
13/04/2015 01:42:47: Parâmetro incorreto. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
13/04/2015 01:42:47: Parâmetro incorreto. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top