Visual Studio 2022 "Arithmetic operation resulted in an overflow" Error on MVC 4 Project - asp.net-mvc-4

I'm developing my old MVC 4 project on Visual Studio 2022. But when I try to "add view" or "add area", "Arithmetic operation resulted in an overflow" error occurs. It only happens in VS2022. VS2019 is OK.
How can I solve this problem?
Here is my issue video: https://www.youtube.com/watch?v=yTY4xTyJp1w

Microsoft fixed the issue. They will publish it on the next release.
The details: https://developercommunity.visualstudio.com/t/Visual-Studio-2022-Arithmetic-operation/1645772?entry=myfeedback
Edit:
Heh he... They fixed it. It works well on 17.1.0 Preview. I'm waiting for the 17.1.0 Release version now. =)
You can use Preview version until the release version publish.

Unfortunately, updating to release version VS2022 17.2.6 failed to resolve the error for me. Rolling back to VS2019 16.11.17 allowed me to continue development without the issue.

Related

"Preview Transform" gives error message in VS2017

I recently upgraded to Visual Studio 2017. For my WCF-Web-Service projects I have different config files for different publish settings.
When I click on the "Preview Transform" entry in the context menu I get the error message:
The assembly '' containing the transform build task could not be found.
However, if I publish the Service, the transformation is applied.
The curious thing is, I have two development PCs. I upgraded to Vs2017 on both and I get this error on BOTH.
I found the solution. This seems to be a Bug in Visual Studio 17 v15.8.1. Upgrading to v15.8.2 resolves this issue:
https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.8.2
Preview Transform gives error.
https://developercommunity.visualstudio.com/content/problem/310891/preview-transform-gives-error.html

Cannot run razor-page-intro sample project

After I installed .Net Core preview 2 on my PC, I got the sample from Github at https://github.com/Rick-Anderson/razor-page-intro.
However, when I tried to run the sample using Visual studio 2017, I got the following error:
dependency conflict Microsoft.AspnetCore.All expected '2.0.0-preview2-25795' but received '2.0.0-preview2-final'.
Could you please suggest some ways to resolve the above issue?
I've found an answer to this:
I uninstalled my existing visual studio 2017, and reinstalled the latest preview version. After that the projects could be loaded and run.
Hope this helps someone.

Visual Basic Command Line Compiler has stopped working

Yesterday, I could work with Visual Studio 2010 without any problem. However, today after I turned on the computer and tried to open my project (Web application with Visual Basic.NET) on VS2010 again, I got a message box showing as below:
Later, I found out after I tried deleting suo file that this message box will show up whenever I open some file in Visual Studio so I tried to run the application. Then, I found another message box popped up as below:
And after I close the message box, I finally got this window
It says:
Compilation Error
Compiler Error Message: The compiler failed with error code -1073741511.
I have searched for the solution through the internet. I have found a few methods that might solve the solution such as scanning for virus, using clean boot. I have also tried repairing and uninstalling VS2010 and .NET framework but none still work. Right now, I have no idea what I should to do make it work again.
Anyway, I realized that there is Windows auto update when I turned off the computer. Not so sure if this related to the problem (I used Window 8.1).
After formatting Drive C to reinstalling everything again, I found out that the reason might be Windows update. I have started from reinstalling Windows 8, all necessary programs (except Visual Studio and SQL Management Studio) and all window updates required for upgrading to Windows 8.1.
When I successfully got to Windows 8.1, I created system restore point and try installing VS2010 and all windows update. The result had caused the same error I posted in this thread.
After that, I restored back to original state and installed VS2010 first. Then installed some of windows updates. This time, I decided to install all updates except the ones that have publish date after 10/11/2015. The result is satisfied. I don't get this error again.
Later, Hans Passant help me find the actual cause of this problem. Please see this link:
Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile

Visual Studio 2013 crashing when opening XAML

I have a C# WPF project I can open just fine in VS 2010 Ultimate or 2013 Ultimate.
I can edit it and run it from either.
When I double click the window.xaml, it crashes 2013.
I disabled then uninstalled my extensions. Still crashes.
I spent more than half the day uninstalling (uninstall is broken, btw) and re-installing VS 2013 Ultimate. Still crashes.
Per comment, here's a screenshot of the error:
Actually just tried to create a clean WPF project and it crashes the same way while attempting to create a new WPF project.
Always check this folder for any VS errors
%APPDATA%\Microsoft\VisualStudio\PUTYOURVSVERSIONHERE\ActivityLog.xml
If the folder doesn't exist or is empty, run Visual Studio with this command:
devenv.exe /log
There could be many reasons. This one for example was because of an outdated driver. There may be workarounds, however which one to use will depend on the error you see. Can you update your question with the error message?

Visual studio 2013, can't open or create projects

I tried getting Visual Studio 2013 to work today but i couldn't get it to work. This is the error I keep getting when making a c++ window application.
The error message I keep getting:
I tried opening the vcxproj file in the message box, but I couldn't open that either. In fact I am unable to open any vcxproject's. This problem happens with pretty much all languages.
I uninstalled vs 2012 and 2010, and then installed vs2013.
I have tried :
reinstalling the nuget extension.
Reinstalling vs2013 a bunch of time and trying to repair the
installation
Uninstalling all traces of vs2010 and vs2012
one thing that might be important is that I used the november CTP c++ preview compiler for vs2012. I can't seem to uninstall it though
but nothing helped so far. Anybody able to help me?
I decided to bite the bullet and re-install windows 7. Everything works again. In the future I will probably avoid downloading CTP's though or be very careful about uninstalling them.
This happened to me when I installed .NET framework 3.5 manually to install "SQL Server Management Studio" as I recall, Then I found that v. 3.5 is incompatible with VS 2013 as this page mentioned:
VS 2013 Comparability
after I turned the related feature off, The problem with creating c++ projects disappeared ..