Silverlight common errors

May 18, 2011 — admin

Error:

"The
breakpoint will not currently be hit. No sysmbols have been loaded for this
document
"

Cause:

The
Studio wasn't set to debug Silverlight and probably not set in Debug
mode

Fix:

1)
Make sure all your project are set to Debug mode

From
VS 2010 menu -> Build -> Configuration Manager -> Check to make sure
all your project configuration is set to Debug and not release

2)
If you are working with Silverlight, make sure your IDE is set to debug
Silverlight

Go
to your web project that host the Silverlight app -> Right click on project
-> Go to properties -> Select Web Tab -> Go to the bottom to Debugger
and make sure Silverlight is checked




Error:

"Cannot
access a disposed object. Object name:
'System.ServiceModel.Channels.HttpChannelFactory +
HttpRequestChannel'"

Cause:

WCF
calling problem. WCF object doesn't seem to exist

Fix:

Compile
and run the program again, and usually the 2nd or 3rd times it w