Troubleshoot errors in the Visual Studio debug output window

605 Views Asked by At

I am working on a mvc5 project that wasn't created by me. The website itself works fine but I am seeing a lot of exceptions being thrown in the debug output window. It bugs me that I have no clue where the come from. But the website is also extremely slow to start and it runs slowly. I am wondering if the exceptions cause the website to be so slow. Here are some of the exceptions I am seeing:

Exception thrown: 'System.InvalidOperationException' in Microsoft.Practices.Unity.dll
Exception thrown: 'Microsoft.Practices.Unity.ResolutionFailedException' in Microsoft.Practices.Unity.dll
Exception thrown: 'System.Reflection.ReflectionTypeLoadException' in mscorlib.dll
Exception thrown: 'System.IO.FileLoadException' in mscorlib.dll
Exception thrown: 'System.Reflection.ReflectionTypeLoadException' in mscorlib.dll
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'System.InvalidOperationException' in Microsoft.Practices.Unity.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.Xml.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'System.Xml.XmlException' in System.Xml.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll

After logging in to the application, after leaving any debuggable code it takes up to one minute before the user is taken to the homepage. In the mean time, up to 50 xml exceptions are thrown. I want to know if this is related but I have no clue how to figure this out.

I have enabled debugging on visual studio but none of the exceptions show up in the VS logfile or in the application logfile. Does anybody have an idea what is going on? How can I resolve this issue?

0

There are 0 best solutions below