I’ve always thought the only way to debug a DD4T application is to run it on IIS. This is annoying, because the default option that Visual Studio offers is IIS Express or the local development server. So every time I set up a new DD4T project, I created a site in IIS, and changed the project properties accordingly. I must have wasted hours of my life doing this!
The reason why I went through all that trouble, is that it was the only way to run with Tridion’s 64-bit DLLs. Or SO I THOUGHT!
Turns out I have been wrong all along. You can run IIS Express in 64-bit mode by simply changing one registry setting.
- Open regedit and navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\WebProjects
- Modify or create theREG_DWORD value named “Use64BitIISExpress”
- Change the value to 1
Now you can run your DD4T applications on your IIS Express, which is the default for Visual Studio 2013. Saves a lot of hassle.
Thanks a lot to Robert Bernstein (http://blogs.msdn.com/b/rob/archive/2013/11/14/debugging-vs2013-websites-using-64-bit-iis-express.aspx).