a developer's notes – a semi-technical web development BLOG

September 29, 2011

“No symbols have been loaded for this document” when trying to debug on a ASP.NET MVC .aspx View page

Filed under: General Tips — Duy Nguyen @ 5:50 pm
Tags: , , , , , , , , , , , , , ,

I was always able to set a break point on any server side code within an MVC .aspx View page.

Server side code like this:

<a href="url">Link text1</a> 

//(Sever side code is code that is between <% and %>
	string x = "";
	if (ViewData["status"] != null)
		x = ViewData["status"].ToString();

<a href="url">Link text2</a> 

Then while coding, all of a sudden I lost that ability. When you hover over the breakpoint, it would say “The breakpoint will not currently be hit. No symbols have been loaded for this document.” The strangest part is that I was able to set a break point on the controller of the view!

There is some server side code that is throwing an error. Remove all code and put in a simple statement such as int x = 0;

Then set a break point on that. When I did that, I was able to hit the break point, then use the immediate window to make sure the code I was trying to use wasn’t throwing any errors.


September 5, 2011

“Error updating Jscript IntelliSense, See Error List” In Visual Studio 2008

Filed under: General Tips — Duy Nguyen @ 1:23 pm
Tags: , , , , , ,


I don’t know if you guys have ever notice this error in Visual Studio 2008 while trying to edit a .aspx file. But if you have, then you’ll know how slow the IDE takes to respond to your key strokes. By default, it takes 15 seconds before you can type again. You can lower the timeout value to if you want to speed up your IDE.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\HTML Editor\JsFailsafeTimeout

HKEY_CURRENT_USER\Software\Microsoft\VWDExpress\9.0\HTML Editor\JsFailsafeTimeout

Create a free website or blog at WordPress.com.