ASP.NET MVC5/IIS Express unable to debug – Code Not Running

For me the solution was a much simpler one. In my Solution Explorer in Visual Studio, I right click on the web project, chose properties and then navigated to the “web” tab. From there I changed the Project URL to another port number. For example, if it was http://localhost:1052 – I changed it to http://localhost:4356. … Read more

Get “Internal error in the expression evaluator” on “Add watch” function when trying to debug WCF service code (MSVS 2013)

This might be a bug in the new (managed) debug engine that ships with Visual Studio 2013. Try turning on Managed Compatibility Mode (which effectively turns it into pre-2013 debug engine), located under Tools – Options – Debugging: If this solves the issue, then I’d suggest trying to reproduce it with a small project, and … Read more

Visual Studio 2017 Debug Error: To prevent an unsafe abort when evaluating the function *.toString all threads were allowed to run

I add the same error message but with a different function name : To prevent an unsafe abort when evaluating the function ‘Microsoft.VisualStudio.Debugger.Runtime.Tracing.Refresh’ all threads were allowed to run. This may have changed the state of the process and any breakpoints encountered have been skipped. This is how I got rid of this pesky bug … Read more

Connecting to Visual Studio debugging IIS Express server over the lan

Update I made a video that better describes the process, https://youtu.be/5ZqDuvTqQVs If you are using Visual Studio 2013 or above, make sure you run it as an administrator for this to work. Open the %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config (in VS2015 it may be $(solutionDir)\.vs\config\applicationhost.config) file. Inside you should see something like this: <site name=”WebSite1″ id=”1″ serverAutoStart=”true”> <application … Read more

Can I find out the return value before returning while debugging in Visual Studio?

Not that I know of. Note that if you do add a variable, it will get removed by the compiler in release builds anyway… Update: This functionality has been added to VS2013. You can see the return values in the autos windows or use $ReturnValue in the watch/immediate window. The value can only be seen … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)