I cannot run the correct code on Visual Studio 2022 Community. How to fix it? - vb.net

I wrote an WinForm application work as an anlogue clock in C#. It worked smoothly and showed me the correct time. Then I tried to write the same analogue clock but in VB.There was no error on my code but VS throws an error like "Visual Studio cannot start debugging... ...Debug\VBAnalogueClock.exe is missing". What does VS mean by that? What should I get from this message? Shouldn't VS create this missing exe file when I start my project for the first time?

Related

Auto Attach Process in Visual Studio 2015

I'm using Visual Studio 2015 to debug a website running on a .NET framework. When setting break points in one of my .aspx.vb files it gives me an error saying:
"The break point will not be hit. No symbols have been loaded for this document."
Now I have solved how to fix this error by going to Debug -> Attach to Process then attaching it to the process of my IIS.
The issue is I have to do this every time I stop and restart debug mode. Is there anyway to get this process to automatically attach when I begin debugging?
The ReAttach extension gives you an easy way to ReAttaching your prior debug targets.

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 VB.net error to debug

I am working in a solution for a while using Vb.net in Visual Studio, when I try to run debug (F5) I get the following error:
"Error while trying to run project: Unable to start debugging.
The process has been terminated.
Refresh the process list before attempting another attach."
I am not sure what is the issue, but I guess something with Visual Studio, because I restored a backup from my solution that it was working perfectly, and I got the same error (image below). Can you help me please??
Thanks!!!

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 Basic Compiler keeps crashing

The question really says it all. For one project I am working on, the Visual Basic Compiler crashes resulting in me having to restart my IDE.
It looks like it crashes when copying a PDB file and XML file for the web site for obj/debug to the output folder.
Has anyone experienced similar crashes? If so how did you repair it?
Are there any crash logs stored anywhere??
I am using visual Studio version
8.0.50727.762 (SP .050727-7600)
After contincually hitting send error report to microsoft I finally got a little message box saying "We think this might be your problem" with this Link
I believe this is my problem... I have still to obtain the hot fix
Do you actually get an error message or code when it crashes, or do you just get the "Visual Studio stopped working" error message?
I'd second trying to uninstall, reinstall, and reapply SP1, just to make sure it isn't something with your installation. I've never had the VB compiler crash on me, and I'd imagine that permissions problems and other exceptions moving a file would be completely covered within the compiler's internals.
You can try using the event viewer in Administrative Tools to see if any logs were recorded.
Looks like you aren't running Visual Studio 2005 SP1. We had tons of VBC crashes before SP1 -- it was a wonder they even made to RTM on the product. Just terrible. Install Service Pack 1 and your problems will most likely go away.
Have you already tried cleaning your solution/project?
Sometimes the .suo, .ncb and other files maintained by Visual Studio get corrupted resulting in crashes during complilation or debugging.
Simply delete .SUO file and get Nirvana :)