Error: The build must be stopped before the solution can be closed.


Error: The build must be stopped before the solution can be closed.

Description: When attempt to close Visual Studio solution or project while the build is running the exception windows throws up.

Solution: First stop the build or kill the process devenv.exe (if the solution got crashed) and then close the solution.

Error: A Command with that name already exists


Error: A Command with that name already exists.

Description: This error usually pops up from Visual Studio when there is a corrupted add-in or extension added into VSPackages.

Solution: Identify, remove and reinstall the extension. And run the following command Devenv.exe /ResetSkipPkgs from Visual Studio Command Prompt. /ResetSkipPkgs clears all options to skip loading added to VSPackages by users wishing to avoid loading problem VSPackages, then starts Visual Studio.

Edit: How to remove Addins from Visual Studio.

Open path – C:\Users\username\Documents\Visual Studio 2010\Addins and remove the necessary files.

Then type and run devenv /resetaddin following command from Visual Studio Command Prompt.

Error: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.


Error: System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Description: There can be many reason.

  1. The request to SQL Server or query is taking a long time to execute.
  2. The result is returning large amount of records.
  3. Slow network connection issue.
  4. SQL Command connection timeout is not configured properly.
  5. Badly made SQL statements

Solution:

  1. Check the network connectivity is up and running.
  2. Check the SQL Statements, if required tuned and optimize it.
  3. Check the result size.
  4. Configure Connection Timeout property, by default it’s 15 seconds.

Error: Unable to start debugging on the web server. See help for common configurations errors. Running the web page outside of the debugger may provide further information.


Error: Unable to start debugging on the web server. See help for common configurations errors.Running the web page outside of the debugger may provide further information.

Description: This error occurs while running or debugging an application using Visual Studio 2010. The reason behind this problem is because of .NET framework version configured for your project and the IIS Default App Pool or the Pool that configured for your application is not matching correctly. For example: .NET framework configured for project is v3.5 but at application pool level it might be v4 or higher. At this time VS was unable to find out which pool should pick for debugging.

Solution: Go to Application Pool using, click Basic Settings under Edit Application Pool and remap the correct .NET Framework version.

                 Example: If project using v3.5 then remap .NET Framework version to v2.0, rerun the project again.