Slow Debugging of ASP.NET MVC 5 On 2nd, 3rd time

Im running an ASP.NET MVC application (in Debug mode) from LocalHost in MS VS 2013 Pro. The application connects to a remote database.

For some reason the application has become much slower 'overnight'. It all used to work smooth up until about a day ago. Now for some reason when I boot my machine up (cold boot) and run the application it works perfectly. But just say I close the application and stop debugging and then run the application again, it is really ultra slow. If I reboot the machine and then run the app everything is back to normal.

So basically, its the 2nd time of debugging (without rebooting whole machine) that its ultra, ultra slow.

Any help would be great!

In the debug window is:

'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_32mscorlibv4.0_4.0.0.0__b77a5c561934e089mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_32System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Configurationv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: Domain 2): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_32mscorlibv4.0_4.0.0.0__b77a5c561934e089mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_32System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Configurationv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Cachingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Runtime.Caching.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Cachingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Runtime.Caching.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.Build.Utilities.v4.0v4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.Build.Utilities.v4.0.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.Build.Utilities.v4.0v4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.Build.Utilities.v4.0.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.JScriptv4.0_10.0.0.0__b03f5f7f11d50a3aMicrosoft.JScript.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl36a72150590d0028d_2258cf01System.Web.WebPages.Razor.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.VisualStudio.Web.PageInspector.Loaderv4.0_1.0.0.0__b03f5f7f11d50a3aMicrosoft.VisualStudio.Web.PageInspector.Loader.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl3223245337092298d_2258cf01WebMatrix.WebData.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl321ff24ae0638e8c_2258cf01System.Web.Optimization.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl395a37a1e20a1068d_2258cf01System.Web.WebPages.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl3731993f0b0ad008d_2258cf01System.Web.WebPages.Deployment.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl379ff706130c4608c_2258cf01System.Web.Mvc.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.WebPages.Deploymentv4.0_1.0.0.0__31bf3856ad364e35System.Web.WebPages.Deployment.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl3c6f94af9d026df8d_2258cf01Microsoft.Owin.Host.SystemWeb.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl363a74605401bd68c_2258cf01Microsoft.Web.Helpers.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.VisualStudio.Web.PageInspector.Runtimev4.0_2.1.0.0__b03f5f7f11d50a3aMicrosoft.VisualStudio.Web.PageInspector.Runtime.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl384014a7dc0fe7c8c_2258cf01System.Web.Razor.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.Web.Infrastructurev4.0_1.0.0.0__31bf3856ad364e35Microsoft.Web.Infrastructure.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl3e1d9295c9058168d_2258cf01WebMatrix.Data.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5App_global.asax.yvi9nkec.dll'. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl356b15d594084c3ac_d26dcf01OfficiumWebApp.dll'. Symbols loaded. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activationv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Extensionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Extensions.dll'. Symbols loaded. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Internalsv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:UsersSai LeeAppDataLocalTempTemporary ASP.NET Filesroot8049ceb441eadfc5assemblydl3cf53efd6306c338f_2258cf01Owin.dll'. Cannot find or open the PDB file. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.CSharpv4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_32System.Datav4.0_4.0.0.0__b77a5c561934e089System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Servicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_32System.EnterpriseServicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IdentityModelv4.0_4.0.0.0__b77a5c561934e089System.IdentityModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Serializationv4.0_4.0.0.0__b77a5c561934e089System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModelv4.0_4.0.0.0__b77a5c561934e089System.ServiceModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Webv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.Activities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/34/ROOT-1-130443759999540000): Loaded 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.


Try to apply the following steps for fixing the problem:

1) Go to Tools > Options > Source Control and set Current source control … : None

2) Go to Tools > Options > Environment > Synchronized Settings and remove this option by unchecking the checkbox.

3) Clean the contents in the following cache folders (do not delete these folders, instead delete their contents only) and restart Visual Studio :

  • Clean the content in WebSiteCache folder (can be found in
    C:Users%USERNAME%AppDataLocalMicrosoftWebSiteCache)

  • Clean the content in Temporary ASP.NET Files folder (can be found in
    C:Users%USERNAME%AppDataLocalTempTemporary ASP.NET Files)

  • Note : If you have Hardware Acceleration enabled or if you use the default Visual experience settings in Microsoft Visual Studio 2015 or Visual Studio 2013 , you might experience intermittent performance issues, product crashes, or rendering issues. In order to work around these issues, go to Tools > Options > Environment > General and apply the following settings:

    在这里输入图像描述

    For more information visit: You experience performance issues, product crashes, or rendering issues in Visual Studio 2015 and Visual Studio 2013.

    Update : If the problem is related to debugging, try the workaround on Visual Studio debugging/loading very slow

    Hope this helps...


    I think that solvation of your problem can be founded in settings of your "Just My Code" profile for compiler. Keeping in mind that you are running your solution from VS - your exception giving that thought:

    Module is optimized and the debugger option 'Just My Code' is enabled. .

    It is repeating really often. And try to host your app in a real IIS, not IIS Express. Just to be sure.


    Check, and maybe temporaly disable Antivirus, (Windows Defender, for example) that tries to scan the DLL files every time. Also, if you have 'only' 4GB RAM and think that you need more RAM memory, about 8GB or 16GB

    链接地址: http://www.djcxy.com/p/78858.html

    上一篇: Django自定义PasswordResetForm

    下一篇: ASP.NET MVC 5缓慢调试第二次,第三次