Productivity Power Tools Visual Studio 2012 Express
Posted by admin- in Home -21/11/17Visual Studio debuggingloading very slow. Im at wits end. Visual Studio is typically painfully slow to debug or just plain load start without debugging my ASP. NET MVC sites. Not always at first, the projects will load nice and fast, but once they load slow, theyll always load slow after that. I could be waiting 1 2 minutes or more. My setup Im using Visual Studio 2. Express, currently, but Ive had the same problem in Visual Studio 2. Express as well. My solution is stored on a network drive specifically, its My Documents redirected to a network drive, if it matters. It shouldnt. There are times where my site loads very fast under this setup. I load in Internet Explorer 9 usually, but the same problem happens in Firefox. This can happen in any ASP. NET MVC project I work on, and it seems to revolve around having Display. Templates, which all my ASP. NET MVC projects do. And its all C and Razor, if that mattered. Symptoms The system will load my symbols hundreds of times. Basically, the following, but there are at least 3. Architecture. Visual Studio does not support any programming language, solution or tool intrinsically instead, it allows the plugging of functionality coded as a. Create small databases in basic desktop applications or tools using SQL Server Express LocalDBa lightweight deployment option that has fewer prerequisites and runs. DLL files for the same CSHTMLs iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWebcontact. cshtml. In this article you will learn about evolution history of C 6 with Visual Studio 2015. Important. If you have a preview release of Visual Studio 2017 installed on your computer, you will be prompted to remove it prior to installing Visual Studio 2017 RC. Symbols loaded. iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWebcontact. cshtml. Symbols loaded. iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWebstatuscode. Symbols loaded. iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWebstatuscode. Symbols loaded. iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWeblocation. Symbols loaded. iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWeblocation. Symbols loaded. In the above, Ive got three Display. Templates Contact, Location, and Status. Code. It appears that IIS is loading symbols twice for each time the displaytemplate gets called. Thus, if Im displaying a table of 1. This isnt a fast operation either. Looking in the log files that IIS generates, it takes about 2. Thus, super long delays. What Ive Tried Debug or Release version, it doesnt matter. Putting my project on a full IIS implementation on a web server runs it super fast with no problems. Cassini, IIS Express 7. IIS Express 8. 0 all have the problem. Delete All Breakpoints does nothing. Clean Solution, or deleting the. If I repair IIS Express, or delete the My DocsIISExpress folder, or repairreinstall Visual Studio the issue MAY go away, but only for a while, before it comes right back. Any advice at all is appreciated. To answer more questions, yes my machine definitely has the horsepower. The infuriating thing is that the same project, with NOTHING altered, can load very very quickly sometimes, typically after I repair IIS Express and delete the My DocsIISExpress folder. Eventually something happens and its down to 2 minutes to load again. What Im working on is not a complicated project. No external libraries or dependencies, and my VS. NET has no addons what so ever. Of note, this machine has Symantec Endpoint Protection, which has a history of causing havoc. But disabling it outright its good to be an administrator did not fix the problem. I have a theory at this point. Im thinking this is all because Im working off a redirected folder off a network share. While the debugger was going through its hundreds of loaded symbols lines, I paused to see what it was doing. It was in my code, loading the Display. Template I had. Stepping into the template output this Step into Stepping over non user code System. Threading. Wait. Handle. Internal. Wait. One. Step into Stepping over non user code System. Threading. Wait. Handle. Wait. One. Step into Stepping over non user code System. Code. Dom. Compiler. Executor. Exec. Wait. With. Capture. Unimpersonated. Step into Stepping over non user code System. Code. Dom. Compiler. Executor. Exec. Wait. With. Capture. Step into Stepping over non user code Microsoft. CSharp. CSharp. Code. Generator. From. File. Batch. Step into Stepping over non user code Microsoft. CSharp. CSharp. Code. Generator. System. Code. Dom. Compiler. ICode. Compiler. Compile. Assembly. From. File. Batch. Step into Stepping over non user code System. Web. Compilation. Assembly. Builder. Compile. iisexpress. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWebstatuscode. Symbols loaded. Step into Stepping over non user code System. Web. Compilation. Build. Manager. Compile. Web. File. Step into Stepping over non user code System. Web. Compilation. Build. Manager. Get. VPath. Build. Result. Internal. Step into Stepping over non user code System. Web. Compilation. Build. Manager. Get. VPath. Build. Result. With. No. Assert. Step into Stepping over non user code System. Web. Compilation. Build. Manager. Get. Virtual. Path. Object. Factory. Step into Stepping over non user code System. Web. Mvc. Build. Manager. Wrapper. System. Web. Mvc. IBuild. Manager. File. Exists. Step into Stepping over non user code System. Web. Mvc. Virtual. Path. Provider. View. Engine. Get. Path. From. General. Name. Step into Stepping over non user code System. Web. Mvc. Virtual. Path. Provider. View. Engine. Find. Partial. View. Step into Stepping over non user code System. Web. Mvc. View. Engine. Collection. Find. Step into Stepping over non user code System. Web. Mvc. View. Engine. Collection. Find. Partial. View. Step into Stepping over non user code System. Web. Mvc. Html. Template. Helpers. Action. Cache. View. Item. Execute. Managed v. 4. 0. Loaded C WindowsMicrosoft. NETFrameworkv. 4. Temporary ASP. NET Filesrootb. AppWebstatuscode. Symbols loaded. Step into Stepping over non user code System. Runtime. Type. Create. Instance. Slow. Step into Stepping over non user code System. Web. Mvc. Dependency. Resolver. Default. Dependency. Resolver. Get. Service. Step into Stepping over non user code System. Web. Mvc. Build. Manager. View. Engine. Default. View. Page. Activator. Create. Step into Stepping over non user code System. Web. Mvc. Build. Manager. Compiled. View. Render. It looks like Visual Studio is recompiling my displaytemplate every time its called, which is again, hundreds of times. My theory is that Visual Studio compiles the file, saves it to the network share, the network share then somehow stamps a new time on it, and Visual Studio then thinks the file has changed and thus Visual Studio recompiles it yet again. Only a theory though I really have no clue. For one, apparently I have offline files on this is a desktop computer in an office I couldnt care less. Im going to disable, reboot and retry tomorrow. Plus, moving my project, as is, to the local C fixes it. It loads very quickly. But this is not ideal in a work environment. I lose Previous Versions, my code isnt backed up at all unless I manually copy it, and its no longer shared with anyone. I can make do with copying it back and forth from C to the network share, if it comes to it. Its much more annoying to wait two minutes for every page load.