Visual Studio 2010 Professional crashes after opening Forms - c#

Hi i have very weird problem. My Visual Studio 2010 crashes when i try to open user controls wrote with Devexpress 12.1.8.
I tried to uninstall whole program, deleted folders, cleaned registry but crashes still happens.
When i try to open user control a windows appears "Microsoft Visual Studio has encountered a problem and needs to close." I checked in event manager and i get this error:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AggregateException
Stack:
at System.Threading.Tasks.TaskExceptionHolder.Finalize()
One more weird thing about this situation is that after windows popup i can see that the control has opened in background.
What can i do to stop this error?
EDIT: I checked and it seems that i can open controls writed with devexpress 13.1.6. Maybye it is a problem with devexpress? Is there a way to totally uninstall devexpress?

It sounds like you might have a problem related to a third party package or add-in, possibly not DevExpress related. Here are some things to try:
Running Visual Studio as an administrator.
You can try running devenv /Resetsettings (see here) in a Command Prompt which should fix any corrupted settings
Try running devenv /ResetSkipPkgs (see here) which will avoid loading any problem packages.
Try running devenv /Safemode (see here). If it works in safe mode then the problem is most likely a third party add-ins or package.
You can also try Devenv.exe /log ". This will generate a file called ActivityLog.xml which might give you further clues.
If none of those help then try repairing Visual Studio from the Control Panel.

Related

VS professional 2017 test explorer is blank

I updated my visual studio 2017 to latest version (15.7.3)
test explorer panel is blank.everything was fine until i updated this.
While building solution 'The code analysis package dint loaded correctly' error message displays.
I tried following:-
clearing component modal cache.
restart system/VS.
Run devenv/ setup as admin.
nothing working.I am unable to select default process architecture
Repairing VS resolved the problem

Possible Visual Studio 2013 Bug Caused by Nuget Package?

I'm encountering a strange bug in visual studio that seems to be caused by a specific Nuget package named Ragnar. The package is, by its own description
"a C++/CLI wrapper for Rasterbar's libtorrent. It aims to provide a (mostly) complete interface to the underlying C++ library."
I've reproduced the bug across multiple machines. So far I've tested Visual Studio 2013 on Windows 7 Ultimate and Windows 7 Professional.
Steps to reproduce:
Create a new WPF project
PM> install-package ragnar
Save all and restart Visual Studio 2013
Reopen the project from the Visual Studio 2013 start page.
Errors:
System.Runtime.Remoting.RemotingException
[5448] Designer process terminated unexpectedly!
The exception unknown software exception (0xe0434352) occurred in the application at location 0x74efc42d
There is not enough virtual memory available. Please save your work and restart (0).
The instruction at 0x7740e823 referenced memory at 0x00000024. The memory could not be read.
At this point Visual Studio 2013 becomes unresponsive and needs to be killed via the task manager. Removing the reference created by Nuget stops the issue, so I've confirmed it's Ragnar.dll that's causing the issue.
Any ideas what could be causing this? Is this a Visual Studio bug or just weird behavior caused by a buggy class library?
If this is a bug in the package itself, please contact the owner of this package and ask them to update the package. https://www.nuget.org/packages/Ragnar/0.1.0

Visual Studio 2008, excel add-in hangs when stepping in debugger

I have a background worker in my C# vsto excel add-in that reads data from an excel sheet. Recently, and for no apparent reason, Visual Studio hasn't been stepping through the background worker code correctly.
I have Visual Studio set to break on all exceptions. Previously, when an exception occurred or I hit a breakpoint, Visual Studio would break and I could step (F10) through my code, as normal. Now however, when Visual Studio breaks I can sometimes step once or twice, but then the background worker/excel will suddenly hang (Sometimes Visual Studio hangs too). If I pause execution and look at threads, I can see that none of them are in my code anymore.
I've tried this hotfix, but it hasn't helped.
Has anyone encountered this before?
Additional Info: I've used git to roll back to a version from before I was experiencing this issue, and it is now present in that version as well. This leads me to suspect it's something specific to visual studio.
The solution, from MSDN's Amanda Zhu, was to restore Visual Studio's default settings.
Navigate to \Common7\IDE (default is C:\Program Files \Microsoft Visual Studio 9.0\Common7\IDE);
and run:
Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.

JIT Debugger dialog window is not showing after starting a service

I am currently working on a windows service, after installing the service via installutil.exe, as I start the service in services.msc there's no JIT window indication if I would want to debug it or not.
And once the service is running and tried the "Attached to process" in visual studio, It will say an error like Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator. Eventhough I'm an administrator in my Local.
My problem is similar in this thread on MSDN thread.
But I am using Visual Studio 2008. I've tried all possible solution after posting this questiion here.
I've tried
adding <system.windows.forms jitdebugging=true/> to my config file
checking Tools->Options->Debugging
checking registry settings
run visual studio 2008 as administrator, attached the process and still throwing the insufficient priveleges error.
Any ideas?
I Hope someone could help me.
Thanks,
Sherwin
Just do what the error message is saying -- run Visual Studio as administrator. To do that, right click on Visual Studio icon in start menu and select option "Run as administrator".

When creating a WCF project in VS2010, I get "Error : WcfProject.csproj cannot be opened. The project type is not supported by this installation"

hey there. So, we have a VS2010 project and the VisualSVN server on one machine. We added a new machine with the client visual svn and the projected loaded in. except for the WCF service. i'm getting a...
" error : the project file c:/..../wcfProject.csproj cannot be opened.
The project type is not supported by this installation."
i've checked the directory, the files and file structure are there and the same as the main development machine. any tips/solutions?
thanks
David K.
I had a similar problem with some WCF solution which I downloaded from a blog.
The solutions of running deveng with the switches did not resolve my issues. After some more searching it turned out that the following clue in the answer of Ralph Willgoss lead to the solution of my problem:
I resolved it by installing the Visual Web Developer.
I also had to (manually) install the Web Platform Installer to (automatically) download the last requirements for the project to properly load.
I had a similar problem when trying to create a new project of the following types:
WCF Service Application
WCF Work Flow Service Application
Syndication Service Library
I was using Windows 7 Ultimate 64bit, with no other versions of Visual Studio installed.
I also had tried many other options, such as:
devenv /resetsettings
devenv /resetskippkgs
ensuring I had C++ option of VS2010 installed
VS2010 Service Pack 1
I resolved it by installing the Visual Web Developer.
There are a few things this could be so I can't give you one specific answer. However, here are a few things to try on your machine that is throwing the error:
First, verify which version of Visual Studio is set as the default for opening csproj files. It could be that you installed SQL or something else that uses an older version of Visual Studio. Sometimes that can give an error. Even if the default is the Visual Studio version selector I've seen it throw an error. Open up the correct version of Visual Studio (through the Programs menu) and then inside Visual Studio try to open the package. If that works, you know the issue is with which version is opening the file.
If that doesn't work, you could try resetting the Visual Studio settings. From the run menu type devenv /setup This should reset the Visual Studio environment and hopefully it will fix the issue. If this does not work, try running devenv /ResetSkipPkgs from the Run menu. This will try to load any packages that Visual Studio previously skipped.
If these steps don't work, let us know. Give us any further error messages that come up after attempting these steps.

Categories

Resources