Visual Studio 2010 errors in release mode - visual-studio-2010

I have a problem with VisualStudio 2010. When I switch to release mode I get errors:
-"The type or namespace could not be found",
-"The name does not exist in the current context".
There is no errors in debug mode, just in release.
I will be grateful for eny help.

Related

Ungraded Visual Studio 2022 - Debugging Error

I just upgraded to Visual Studio 2022.
When running a project (developed in VS 2019) I get the following error/warning message:
enter image description here
You are debugging a Release build for APP_Name.exe. Using Just My Code with Releasae builds using compiler optimizations results in a degraded debugging experiance(e.g. breakpoints will not be hit)
Since I am fairly new to C#, I am lost as to what to do. The only "solution" I found online was to disable "Just My Code", but that seems to not be able to debug correctly.
Any suggestions would be greatly appreciated.
Please setting the configuration to Debug in the Configuration Manger window.

Visual Studio 2017 Error in Test Property Page

There is an issue with my Visual Studio / Test Property Page. Which is I guess one of the root causes to not discovering any of my tests, in any of my projects. So this means it is not related to one Project, or to one nuget package on the projects. I am not sure when the issue first occurred, but I am suspecting, after some Visual Studio updates.
After following some of the possible solutions on SO, related to the Test Explorer, the tests itself and the Test property Page. I found the following:
When I go in Tools -> Options -> Test. I have the error shown above.
Error: "An error occurred loading this property page"
It is not an issue of missing nuget packages. Because it is happening in all of my projects.
The latest .NET framework is installed
All of the questions on SO, related to this topic, didn't have something that could help me solve this issue. Unless I missed something, which is quite possible.
Re installation of Visual Studio itself didn't help. The issue persists.
Deleting VS test cache files DEL %TEMP%\VisualStudioTestExplorerExtensions
Restarting VS
Test -> Test Settings -> Default processor architecture is set to x86
Based on my research, I find a case which has the same error message with yours. The issue was resolved by running “devenv /setup” in Visual Studio 2017 Command Prompt.
I’m not sure if this works on you machine. Please try it, I do hope it is helpful.
It worked for me! (On VS 2019 version)
Open Developer Command Prompt for VS 2019 Preview
Run devenv /resetuserdata
I encountered the same problem in Visual Studio 2019. I was helped by the "Visual Studio 2019 Command Prompt" with the "devenv /updateconfiguration" command. After that, when I started the Visual Studio, there in the settings the Test tab worked.
I spotted the solution here, but did only step 4:
https://github.com/dotnet/roslyn/issues/9421#issuecomment-191895696

IntelliTrace: Uncaught exception during type initialization

Visual Studio 2015 Enterprise Update 3.
.Net 3.5 SP1, AnyCPU
Today I often get this error for my project:
Microsoft Visual Studio
Process:
D:\projects\vs-2015\sharp_sandbox\sharp_sandbox\bin\Debug\sharp_sandbox.vshost.exe
Automatically attaching to support this behavior was not completely
successful.
Successfully attached these type(s) of code: Managed
Failed to attach to these type(s) of code:
IntelliTrace: Uncaught
exception during type initialization.
How can I solve this problem?
Try to check/uncheck Enable native code debugging configuration option. You will find it in Enable Debuggers section it in Debug tab in the project properties.

How do I remove the popup about "The 'VSTS for Database Professionals' package did not load correctly."?

I'm not sure exactly when, my VS2010 started showing me the same error popup every time I loaded it. Clicking "No" has no effect, since the message will show up again each and every time I open VS.
I really don't see any adverse effect without this "VSTS for Database Professionals", but the error popup is getting annoying. Can anyone tell me how to disable it without having to uninstall anything?
---------------------------
Microsoft Visual Studio
---------------------------
The 'VSTS for Database Professionals' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by running the application together with the /log parameter on the command line, and then examining the file 'C:\Users\peter.mounce\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'.
Continue to show this error message?
---------------------------
Yes No
---------------------------
Edited to add: I did a google search to see if anyone else had this problem, but the only cases are found are not applicable to my situation, since I have neither LightSwitch nor PostSharp installed.
I do have ReSharper 6.1, if it helps any.
Do you have .NET Framework 4.5 installed? If not, installing that can help with this popup. I have not investigated why, but this package appears to depend on .NET Framework 4.5 for some reason. Even if using Visual Studio 2010 (which does not even support 4.5).
From your log file, it appears Resharper is somehow interfering. Try uninstalling/repairing and seeing if that makes it better.
<entry>
<record>288</record>
<time>2013/04/11 18:30:06.996</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [VSTS for Database Professionals]</description>
<guid>{068E2583-0872-403B-AF4C-6C2A8F2D8C3E}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'JetBrains.Platform.ReSharper.Util, Version=6.1.1000.82, Culture=neutral, PublicKeyToken=1010a0d8d6380325'.</errorinfo>
</entry>
Visual Studio 2010 installation media: \WCU\DAC folder, find and run-install:
DACFramework_enu.msi
DACProjectSystemSetup_enu.msi
TSqlLanguageService_enu.msi
Reapply Visual Studio 2010 SP1
Details:
http://connect.microsoft.com/VisualStudio/feedback/details/532121/tons-of-package-did-not-load-correctly-errors
The solution is to reset the settings (in case something went wrong with the SQL side of installation):
1) Launch DOS in ADMIN mode (hold WindowsKey+X), Select "Command Prompt (Admin)"
2) Go to your developer studio folder, usually it's under "C:\Program File(x86)\Microsoft Visual Studio 10.0\Common7\IDE"
3) Reset the settings by typing:
devenv.exe /ResetSettings
4) Once done, close DOS, and then launch Visual Studio, the error should disappear.

Visual Studio/TFS error on Check In: The parameter is incorrect

I am trying to do a TFS (2010) Check-In from Visual Studio (2010). I'm getting the following very descriptive & informative error message:
Visual Studio
The parameter is incorrect
Does anyone know how to fix this?
Restarted Visual Studio and it fixed itself.
Go to Source Control Explorer ,expand the project >> Perform undo pending changes from there
Make sure your package.config doesnt have any conflicts

Resources