I was just trying out debugging with Silverlight and noticed that if I targeted Firefox as my default browser, debugging would start immediately quit (although the silverlight app still came up in firefox). I had to set my default browser to IE before debugging
would work. Is there a work-around for this, is it a side-effect of the tools beeing at alpha, or will be not be able to debug silverlight when using firefox as the browser?
Update: While I am using IE7 for debugging, how do i get it ti just run my silverlight projects and not give me a warning about scripts and ActiveX controls every time i try to run or debug my app?
Update2: Figured out the "Blocked Content" warning but not until i had two identical html pages, one causing it and the other not and then noticing that one had DOS linefeeds and the other unix. Apparently IE7 considers unix linefeeds dangerous?
Thanks for info Sam. I'm fine with using IE for now. I was mostly curious whether this was a requirement of how Silverlight debugging works or just something not completed or debugged.
That worked for me too -- thanks. But (to echo my three-year-old son), "Why?" Npctrl.dll is just a part of the Silverlight plugin, right? Anybody know why disabling it is necessary/required/advisable?
dom.ipc.plugins.enabled.npctrl.dll value to false as reccomended exception
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
InnerException:
sdether
Member
74 Points
30 Posts
Debugging with Firefox?
May 05, 2007 10:25 PM | LINK
I was just trying out debugging with Silverlight and noticed that if I targeted Firefox as my default browser, debugging would start immediately quit (although the silverlight app still came up in firefox). I had to set my default browser to IE before debugging would work. Is there a work-around for this, is it a side-effect of the tools beeing at alpha, or will be not be able to debug silverlight when using firefox as the browser?
Update: While I am using IE7 for debugging, how do i get it ti just run my silverlight projects and not give me a warning about scripts and ActiveX controls every time i try to run or debug my app?
Update2: Figured out the "Blocked Content" warning but not until i had two identical html pages, one causing it and the other not and then noticing that one had DOS linefeeds and the other unix. Apparently IE7 considers unix linefeeds dangerous?
samsp
Member
282 Points
96 Posts
Microsoft
Re: Debugging with Firefox?
May 07, 2007 05:20 PM | LINK
Debugging silverlight not working in firefox is a bug in the alpha. It'll probably work if you do a manual attach:
From the debug menu choose "Attach to process"
Leave the transport as default, but change the "Attach to" to "Core Managed". The select firefox in the process list and you should be good to go.
Sam
sdether
Member
74 Points
30 Posts
Re: Debugging with Firefox?
May 07, 2007 05:26 PM | LINK
Thanks for info Sam. I'm fine with using IE for now. I was mostly curious whether this was a requirement of how Silverlight debugging works or just something not completed or debugged.
bgraj.goudar
Member
2 Points
6 Posts
Re: Debugging with Firefox?
Aug 03, 2010 12:02 PM | LINK
Try these steps...
Regrds
BG
Nasenbaer
Member
129 Points
128 Posts
Re: Re: Debugging with Firefox?
Aug 09, 2010 01:20 PM | LINK
Hey thanks. Now it works great in Firefox.
ken.smith
Member
282 Points
119 Posts
Re: Debugging with Firefox?
Sep 10, 2010 03:45 AM | LINK
That worked for me too -- thanks. But (to echo my three-year-old son), "Why?" Npctrl.dll is just a part of the Silverlight plugin, right? Anybody know why disabling it is necessary/required/advisable?
kobruleht
Member
384 Points
1083 Posts
Re: Debugging with Firefox?
Nov 03, 2010 06:42 PM | LINK
After changing
dom.ipc.plugins.enabled.npctrl.dll value to false as reccomended exception
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
InnerException:
occurs always at line
HtmlPage.Window.Navigate(sourceUri, "_blank",
"menubar=no,titlebar=no,status=no,toolbar=no,location=yes,width=" +
Int32.Parse(HtmlPage.Window.Eval("screen.width").ToString()) + ",height=" +
(Convert.ToInt32(HtmlPage.Window.Eval("screen.height")) - 20).ToString() );
if this line is invoked by pressing Enter in listbox.
How to fix this ?
If dom.ipc.plugins.enabled.npctrl.dll if set to true exception does not occur.
Andrus.
Albino
Member
14 Points
7 Posts
Re: Debugging with Firefox?
Jul 14, 2011 02:08 PM | LINK
I am having a similar problem. Did you ever figured out what was happaning?