Resolving first time exception - visual-studio-2010

I am working on the nop ecommerce website, When i try to run the project, i am getting a continuous series of exceptions in the debug section of visual studio 2010 and the browser doesnt shows the website, on the bottom left of the browser , it displays waiting for localhost.
The exceptions are :
A first chance exception of type 'Autofac.Core.Registration.ComponentNotRegisteredException' occurred in Autofac.DLL
The thread '<No Name>' (0xb08) has exited with code 0 (0x0).
Does anyone knows the way around , I am struggling to cope with as the website was running fine previously but suddenly it has stopped working :(

I am currently having the same problem with Orchard. The problem seemed to occur when the beta of visual studio 2011 was installed, it has been suggested that it is being caused by a MVC or Razor assembly from the gac which is loaded and is taking over the ones which bin-ship.
http://orchard.codeplex.com/discussions/346791

Related

Visual Studio build fail but no error shown

There are several similar questions but no one of them actually works for me.
I wanted to make a .Net Core application (API) but as I said the build fails (even with the default application). If I try to continue, IIS shows "Error 500.0 - ANCM In-Process Handler Load Failure".
Tried everything, from restarting VS to deleting and reinstalling it but it does not work. It instead works on a virtual machine but have no idea what's the difference. What might I do?
Microsoft Visual Studio Community 2019
Version 16.8.3
I've the same error but in an ASPNET u need see the errors in the build/debugging output
I've an error but that don't show
You need to find the error within the logs
My error was an update Panel
////
EDIT:
Try this: Select Entire Solution and Build Only to show the Errors

Visual Studio 2017 community dotnet.exe crashes

Whenever i try to debug new dot net core application, dotnet.exe crashes immediately and not able to debug my application. I am getting following detail in output window:
The program '[4220] dotnet.exe' has exited with code -2147450750 (0x80008082).
The program '[3468] iisexpress.exe' has exited with code 0 (0x0).
Error code 0x80008082 is for CoreHostLibLoadFailure based on what i have searched on internet but not able to found something which provides detail about how to solve this problem. I need help to solve this problem.
Not sure whether solution will work for everyone but i am able to resolve issue by installing update KB2533623. I have windows 7 SP1 32 bit installed my PC.

Parameter name Type ISession cannot be resolved when debugging in Visual Studio 2015

Started getting a new error when starting a debugging session in VS2015. It's an ASP.NET MCV project that also exposes a WCF service (don't know if that's relevant).
The debugging session takes ages to start up and then I get a message box saying:
Specified argument was out of the range of valid values.
Parameter name: Type ISession cannot be resolved. Interfaces of
abstract classes should be registered first.
After that the debugger works as expected.
If I do the same thing from VS 2013 then it takes a long time to load but I get a message saying:
Loading symbols for WebActivatorEx.dll from:
d:\Code\GitHub\WebActivator\WebActivator\obj\Debug
This is strange because I haven't knowingly installed WebActivator and my D: drive is a DVD that I haven't opened since I got the PC.
Yesterday I installed OpenCover, but it didn't work so I removed it.
Anyone out there who might have an idea of what's going on???
Thanks
I had the same problem in my local workstation while my colleague was able to debug and run his web application fine. The said error message was thrown from visual studio 2015, but application used to launch fine and run. This was happening only in debug mode (either with "Start debugging" - F5 or debug mode of the project). The other side effect was that this problem was not occurring for the very first time after every system restart.
This thread along with the link How do you clear your Visual Studio cache on Windows Vista? and the link https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/ pointed me in right direction.
I was finally able to resolve the issue by clearing the contents from the following three directories on my local workstation:
a) <System drive>:\Users\<user id>\AppData\Local\Microsoft\Team Foundation
b) <System drive>:\Users\<user id>\AppData\Local\Microsoft\VisualStudio
c) <System drive>:\Users\<user id>\AppData\Local\Microsoft\VSCommon
The resolution makes me think on the lines of the accepted response provided with the first link above. There Visual Studio and Team Explorer cache might have gone out of sync. Hope this answer helps people facing similar issues.

Visual Studio 2013 breakpoints aren't hit

I recently installed visual studio 2013. In VS2013 i've opened a VS2010 solution.
As i wished to debug the application, i've set some breakpoints on code that are always hit. secondly i've included the option to break on exception (so i know exactly where it went wrong).
yet when i run the application (in Debug)
The exception isn't caught. The exception goes through the normal channels of handling without popping up to me.
None of the breakpoints are hit.
The solution had never such problems in VS2010. Another solution (built & created under VS 2013) doesn't give any problems during debugging. With all the exceptions being thrown and all the breakpoints being hit.
What have i done wrong?
What i've tried sofar:
reinstall VS2013
Changed targeted framework
Clean & rebuild
Attached to process
....
Thank you for your time
I noticed that you attached the process, have you manually detemine the type of code to debug ?

Visual Studio 2010 crashes after build

I have a VB.Net windows forms application that has been around for a very long time. I am working the project in Visual Studio 2010 Premium, on my Windows 7 x64 workstation. Everything has been going along fine till a couple days ago. No every time I build this project Visual Studio 2010 crashes.
The only thing i have to go on is this from another Visual Studio 2010 instance that attached the debugger to the dieing process.
...
The thread 'Win32 Thread' (0x177c) has exited with code -2147023895 (0x800703e9).
The thread 'Win32 Thread' (0xc44) has exited with code -2147023895 (0x800703e9).
The program '[4224] devenv.exe: Native' has exited with code -2147023895 (0x800703e9).
No one else on my team has this issue, and I don't have problems with any other projects.
This is .Net 4.0.
Any thoughts or suggestions are much appreciated,
Beezler
It might be wise to start VS with the /safemode parameter.
I also had this problem and I solved it by uninstalling the Achievements extension.
Do you have any modifications whatsoever to the solution/projects/code that are different from the team members not experiencing the crash? Have you tried getting a fresh-cut of the source to a different directory and trying to build that?
Another thing to look at would be to disable any add-ins/extensions you might have installed.
I had the same problem but with C++ projects. They ran fine for a while, then all of a sudden just started crashing on every build. This fixed it for me:
To fix: click start, type "cmd" into the search box, right click "cmd.exe" in the search results, select "run as admin", then run this command: regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"
Reference: http://connect.microsoft.com/VisualStudio/feedback/details/533194/crash-while-compile-an-extremely-simple-c-project
If that doesn't work, the plugin AnkHSVN is known to cause the same problem. http://blogs.msdn.com/b/visualstudio/archive/2010/05/11/if-you-are-seeing-intermittent-crashes-with-vs-2010.aspx
This is weird and i've also faced a similar issue like that. First i add a watch to a class. and when i try to drill to details of class collection, process terminates and debugging stops.
I've figured out that, it is giving stackoverflow error code. Base of the exception was just because of infinite loop.
So i re-checked all collections twice to find the property that causes a loop. like
int a {get {return MethodThatAlsoReturnsA();}
hope it helps s.o.

Resources