madskristensen / WebEssentials2013

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

ArgumentException during bundle #1392

Open burtonrodman opened 10 years ago

burtonrodman commented 10 years ago

I received a pop-up error when starting debugging. The following message was added to the Build output. I have VS2013 Ultimate with Update 3 and Web Essentials 2.3. Let me know what other info you need.

8/12/2014 10:52:12 AM: System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) at EnvDTE.Properties.Item(Object index) at MadsKristensen.EditorExtensions.ProjectHelpers.AddFileToActiveProject(String fileName, String itemType) at MadsKristensen.EditorExtensions.BundleFilesMenu.d2d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MadsKristensen.EditorExtensions.BundleFilesMenu.d22.MoveNext()

madskristensen commented 10 years ago

What type of project is this? ASP.NET MVC, Web Forms, Windows Store Apps, etc.?

burtonrodman commented 10 years ago

web forms

am11 commented 10 years ago

Not the exact stack-trace, but the similar issue #1384 was fixed by #1385. We aren't using AddFileToActiveProject there anymore.

CMircea commented 10 years ago

Also happens during bundling in an MVC project:

13.08.2014 11:20:36: System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.AddFileToActiveProject(String fileName, String itemType)
   at MadsKristensen.EditorExtensions.BundleFilesMenu.<GenerateAsync>d__2d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MadsKristensen.EditorExtensions.BundleFilesMenu.<UpdateBundleAsync>d__22.MoveNext()
am11 commented 10 years ago

Can you guys reproduce it with the nightly build?

BadBlitz commented 9 years ago

Nightly build fixed it for me. Thanks.