-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
projectSystem.ArgumentException: Value does not fall within the expected range. #251
Comments
can confirm this behavior for version 1.11.326, as well |
What project type do you see this in? MVC, ASP.NET Core, WebForms...? |
Version 1.11.326 |
Also getting the error: 1/10/2017 9:57:01 AM: Error getting the active projectSystem.ArgumentException: Value does not fall within the expected range. |
Can confirm on: ASP.NET Core 1.1, 01.02.2017 15:36:06: Error getting the active projectSystem.ArgumentException: Value does not fall within the expected range. |
I'm getting this as well in VS 2017 RC 2/24/2017 10:12:18 AM: |
Hi, Is this error solved. I am getting same problem with Visual studio 2013 Sharepoint Solution, I dont have any css, LESS files in my project but still get the same error. The solution fails immediately when i click on Publish. Please help! |
I'm getting this as well in VS 2017 Professional I am confident this is causing build issues. I cannot build my projects at all. I need to start/restart/again/again/again until finally somehow the build works. I have been trying to diagnose the root cause for many months now. I had some node errors (around ssh) that I thought may be issue - perhaps causing problems with gulp file locking but I have resolved those issues. The only outstanding error I am getting in VS is this one. |
I had the same problem with VS2017 15.1 Professional with "Web Essentials 2017". |
I'm getting this now in a web project in VS 2017 15.2 and yes, Tools -> Reset Web Essentials does fix the error for a time. |
I had the same problem with VS2017 15.4.2 Community |
Same here. VS 2017 15.4.2. ASP Core 2 Web application. |
Just got this error when creating ASP.NET Core Angular project using;
Web Compiler terminal output is below. Hope this might be some help.
|
Just experienced this issue in my VS2017. Unfortunately I don't have the Tools > Reset Web Essentials option. Uninstalled and reinstalled the plugin and it started working again. |
Ok - thing is with this bug is that it only happens when you don't have an editor window as the active document. If you have a project property window as the ActiveDocument you will see this every time. I believe that's why Mads isn't fixing this one. It's only a problem sometimes and it's certainly annoying but not fatal. |
Just set up continuous delivery, it succeeded. Then a few minutes later this popped up in the output window without any input. Have never seen it before but wanted to add it here to register it. I have latest version of VS 2017, the web app being deployed was simply the templates visual studio web app being deployed to Azure. Here's what the output window display. 2018-05-24 9:35:19 PM: Error getting the active projectSystem.ArgumentException: Value does not fall within the expected range. |
Same issue here
VS 2017 15.8.8 |
I was able to get around this issue by cleaning the solution, then deleting the contents of the projects obj folder. GL |
Issue present in VS 2017 Prof 15.9.6 and WebCompiler 1.1.2394 |
Issue present in VS 2019 v16.3.0 preview 1 |
16.4.6 aswell |
Thanks for your comment! Once you set the active document, its possible compile the file and latter you are able to compile all files from the solution. |
please, how did you do that,cause I don't know what is active document or how to do it |
it’s active when you double click on a file from the solution explorer.
it’s active when you double click on a file from the solution explorer. |
i doubled click and the issue not solved |
If you read this thread, you will note that Mads has no intention of fix this after all this time. Personally, I do not blame him although it would appear to be as simple a fix as trapping for that exception (which clearly he does) and ignoring it. The direct CAUSE of this exception is due to the fact that you do NOT have a valid document in focus at that moment. This is partly due to the fact that you are creating a new project and therefore CAN NOT have a valid document in focus at that moment. Therefore ignoring it is acceptable - I do appreciate the fact that it is logged however and you may safely ignore this error message. |
Note that it is still an issue in VS2019 and not just on new projects as stated above, but every time you publish something, ostensibly due to the Publish tab always being the active tab in the window. |
Installed product versions
Description
projectSystem.ArgumentException: Value does not fall within the expected range.
Steps to recreate
Current behavior
Output (no crash):
16.8.2016 11:27:06: Error getting the active projectSystem.ArgumentException: Value does not fall within the expected range.
at EnvDTE80.DTE2.get_ActiveDocument()
at WebCompilerVsix.ProjectHelpers.GetActiveProject() in C:\projects\webcompiler\src\WebCompilerVsix\Helpers\ProjectHelpers.cs:line 221
16.8.2016 11:27:06: Error getting the active projectSystem.ArgumentException: Value does not fall within the expected range.
at EnvDTE80.DTE2.get_ActiveDocument()
at WebCompilerVsix.ProjectHelpers.GetActiveProject() in C:\projects\webcompiler\src\WebCompilerVsix\Helpers\ProjectHelpers.cs:line 221
Expected behavior
error fixed
The text was updated successfully, but these errors were encountered: