madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 252 forks source link

"The parameter is incorrect" error messages appear in output window after build #91

Closed markheath closed 11 years ago

markheath commented 11 years ago

Running VS2012 on Win 7, and get strange messages in the output window after every build. I'm assuming that WebEssentials is the cause due to the MadsKristensen namespace. The projects being built have no web components to them at all (WindowsForms)

The following error appears four times during a build:

02/10/2013 10:11:51: The parameter is incorrect. (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()
madskristensen commented 11 years ago

This is fixed in the latest version 3.1

markheath commented 11 years ago

Unfortunately, it does not seem to be. I am using 3.1 and I get the error messages shown above. It's not happening in all solutions, but I do have two large solutions which I see these errors every time in.

image

03/10/2013 10:50:54: The parameter is incorrect. (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()
03/10/2013 10:50:54: The parameter is incorrect. (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()
03/10/2013 10:50:54: The parameter is incorrect. (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()
IgorVyatkin commented 11 years ago

Confirmed as not fixed in latest 3.2.

PandaWood commented 10 years ago

I get this error (exactly as the comment above from 4 months ago), only recently, and I'm on 3.6.5. It just means I can never see the real output of my build, as my console is filled with WebEssentials exceptions. They show every time I build.

Apologies, I'm on VS2012/WebEssentials 2012 and so looking at the bread crumb at the top of this page, I'm in the wrong issue thread.

naveed-butt commented 10 years ago

I have started experiencing the same issue and the issue was started right after I have checked in the .nuget folder on the TFS. I hope, it helps finding the problem...

tocsi-hun commented 10 years ago

I also have this exception in my build output since a long time ago. It is very annoying indeed. My Web Essentials version is 3.7. My Visual Studio is on Update 4 (11.0.61030.00). It happens only though if I build a solution folder from its context menu. And I do it often.

========== Build: 0 succeeded, 0 failed, 4 up-to-date, 0 skipped ========== 10/6/2014 7:55:53 AM: The parameter is incorrect. (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() 10/6/2014 7:55:53 AM: The parameter is incorrect. (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() 10/6/2014 7:55:53 AM: The parameter is incorrect. (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() 10/6/2014 7:55:53 AM: The parameter is incorrect. (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() 10/6/2014 7:55:53 AM: The parameter is incorrect. (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() 10/6/2014 7:55:53 AM: The parameter is incorrect. (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() 10/6/2014 7:55:53 AM: The parameter is incorrect. (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()

bbrewder commented 10 years ago

I just started getting this exact error message in Visual Studio 2012 after I changed a service reference in my project from public to internal. It compiled fine just before I did that and stopped right after. I didn't change any other code or settings in Visual Studio.

I typically use the keyboard shortcuts (Ctrl+Shift+B or Alt+B+R) to build and that was how I was seeing the error. However, I built one of the projects in my solution using the context menu in Solution Explorer and it worked without the error message. Now when I build using the keyboard shortcut, it works as well (again, no changes to Visual Studio between when I saw the error and now). Go figure.

Since I'm no longer seeing the error, I'm OK, but figured I would write about my experience in case it was something somebody on the WE team can fix or, perhaps, it can help somebody else that is seeing this issue.

jotabe-net commented 9 years ago

@madskristensen I have the same problem with WE 2012 3.8, and the problem solved using the same technique exposed in the previous @bbrewder's comment (particularly Rebuilding the whole solutipn from the context menu). I have a big solution, with some 30 errors,a dn use R#,and have installed VS Commands. The error is not consistent, happens from time to time. Is there any other way I can help?

ssimontis commented 9 years ago

@madskristensen I am also experiencing this issue, it just started happening in a solution that has been working fine for about 2 months now. It began after I had done a Clean and Build, I tried a Rebuild and that did not work. I am running the latest stable version of WE in VS 2012 with latest service pack, I also run Resharper, nCrunch, and a few other extensions. If there is more info I can provide please let me know.