<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Studio &amp; Silverlight Development Tools</title><link>http://forums.silverlight.net/forums/18.aspx</link><description>Discussions around using Visual Studio and other development tools to create Silverlight applications</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/238786.aspx</link><pubDate>Sun, 28 Jun 2009 07:41:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:238786</guid><dc:creator>gixmi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/238786.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=238786</wfw:commentRss><description>I deploy these to IIS, to make my life a lot easier in other areas. Whenever I run into an issue there, I simply run Clean Solution and then Rebuild.</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/237103.aspx</link><pubDate>Wed, 24 Jun 2009 06:09:53 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:237103</guid><dc:creator>ksleung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/237103.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=237103</wfw:commentRss><description>&lt;p&gt;I have been burnt by this issue enough times that I came up with a solution so that I&amp;#39;ll never had to second guess the built time of the Xap.&amp;nbsp; It comprises of the following steps:&lt;/p&gt;&lt;p&gt;(1) in the post-build action (run under the condition &amp;quot;When the build updates the project output&amp;quot;), I wrote a script to read the timestamp of the Xap and save it to a temp file called Timestamp.txt, and then use 7zip to add the file to the Xap.&amp;nbsp; The 7zip command is&lt;/p&gt;&lt;p&gt;&lt;font face="courier new,courier"&gt;7zip -tzip a App.xap Timestamp.txt&lt;/font&gt;&lt;/p&gt;&lt;p&gt;(2) at the startup of the Xap, I read the content of Timestamp.txt by:&lt;/p&gt;&lt;p&gt;&lt;font face="courier new,courier"&gt;System.Windows.Resources.StreamResourceInfo sri = Application.GetResourceStream(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Uri(url, UriKind.Relative));&lt;br /&gt;System.IO.StreamReader stream_reader = new System.IO.StreamReader(sri.Stream);&lt;br /&gt;string timestamp = stream_reader.ReadToEnd();&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;(3) In debug mode, display such timestamp prominently at the upper-right corner of my Silverlight application.&lt;/p&gt;&lt;p&gt;This way, there is no way you&amp;#39;d get confused whether you are really debugging the same Xap that you just compiled.&amp;nbsp; You&amp;#39;d just know, by looking at the timestamp.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Seems like a lot of work, but it&amp;#39;s worth it.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/236777.aspx</link><pubDate>Tue, 23 Jun 2009 12:44:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:236777</guid><dc:creator>Grahf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/236777.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=236777</wfw:commentRss><description>&lt;p&gt;Alok I rebuilt/cleaned the code many times, but it did not help.&amp;nbsp; I am curious if anyone else has tried using Google Chrome and what their results are.&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/236639.aspx</link><pubDate>Tue, 23 Jun 2009 06:26:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:236639</guid><dc:creator>mrjvdveen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/236639.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=236639</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sounds to me like there is a bug in the Chrome / Silverlight interaction (maybe a deliberate Google action?).&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/236586.aspx</link><pubDate>Tue, 23 Jun 2009 04:49:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:236586</guid><dc:creator>alok572</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/236586.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=236586</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Grahf,&lt;/p&gt;&lt;p&gt;It is a silverlight problem or bug(as most people prefer). It is due to some errors in your current code. I used to face the same problem and my guess is that it is caused due to the fact that silverlight stores its solution in the cache and hence it refers to the previous solution in case of any errors in the current solution. &lt;/p&gt;&lt;p&gt;The solution is to clean the solution or Rebuild the solution/project.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mark as answer if i&amp;#39;ve helped you... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/236549.aspx</link><pubDate>Tue, 23 Jun 2009 02:46:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:236549</guid><dc:creator>Grahf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/236549.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=236549</wfw:commentRss><description>&lt;p&gt;I changed to using Internet Explorer to test instead of Google chrome and I can now hit my break points.&amp;nbsp; Something with Google Chrome was causing me to not be able to do so sometimes.&amp;nbsp; I do not yet know what the problem with Google chrome was.&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/232943.aspx</link><pubDate>Sat, 13 Jun 2009 17:47:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:232943</guid><dc:creator>Grahf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/232943.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=232943</wfw:commentRss><description>Sadly rebuild does not always work.  The .xap file in my client bin has a modified date of 2 min ago and I have not made any changes since, yet it still has hollow red circles.  Building doesn&amp;#39;t seem to change anything.  It seems no matter what I do I can&amp;#39;t get the breakpoints to be hit, then randomly once in a while it actually works.  Anybody have any other ideas?</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/231111.aspx</link><pubDate>Tue, 09 Jun 2009 17:09:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:231111</guid><dc:creator>ksleung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/231111.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=231111</wfw:commentRss><description>My experience has been that whenever I get the hollow red circle, there is a discrepancy between the version seen by Visual Studio and the XAP you are trying to debug.&lt;br /&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/231005.aspx</link><pubDate>Tue, 09 Jun 2009 12:31:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:231005</guid><dc:creator>Grahf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/231005.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=231005</wfw:commentRss><description>Number 2 the breakpoint is a hollow red circle.

Rebuild did work.  After working with it today I will let you know if it works all the time.</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/230856.aspx</link><pubDate>Tue, 09 Jun 2009 06:32:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230856</guid><dc:creator>mrjvdveen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230856.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=230856</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;One thing I made into a habbit sinse .NET 1.1 is to always use the Rebuild options instead of the build options. I never have issues with brakepoints in Silverlight 2. I do sometimes have them in my services, but I deploy these to IIS, to make my life a lot easier in other areas. Whenever I run into an issue there, I simply run Clean Solution and then Rebuild Solution and redeploy my service to IIS and everything workes as expected.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/230838.aspx</link><pubDate>Tue, 09 Jun 2009 05:46:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230838</guid><dc:creator>ksleung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230838.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=230838</wfw:commentRss><description>&lt;p&gt;One question, when you say your breakpoint is never hit, do you mean:&lt;/p&gt;&lt;p&gt;(1) you were able to set breakpoint (solid red in VS2008), but you never get there?&lt;/p&gt;&lt;p&gt;(2) when you set breakpoint, the breakpoint shows up as a hollow red circle, meaning that the debugger makes a note that you want a breakpoint at this location, but it was not able to find the corresponding point in the code?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/230767.aspx</link><pubDate>Tue, 09 Jun 2009 00:29:48 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230767</guid><dc:creator>Grahf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230767.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=230767</wfw:commentRss><description>I am using the asp.net development server.  Not IIS.

I thought that perhaps the version in the debugger was not the right version, but I deleted the browsers temporary files and that did not help.  I build my solution before I run the debugger so I thought that would make my asp.net application get a new XAP.   can run it, make a change, then run it again.  The change will be shown, but I still can&amp;#39;t hit a breakpoint.</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/230626.aspx</link><pubDate>Mon, 08 Jun 2009 17:00:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230626</guid><dc:creator>ksleung</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230626.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=230626</wfw:commentRss><description>One possibility...&amp;nbsp; please make sure that the version in the debugger is EXACTLY the same as the one deployed.&amp;nbsp; It could have been cached by the browser or the server or the wrong version was uploaded.&amp;nbsp; At one point of my development I got fed up with this (debugging phantom bugs or breakpoints never hit) I added a post-build action to put the build timestamp into the XAP (write a simple script to get the timestamp, use 7zip to stuff the timestamp as a file into the XAP) and display it prominently in the SL application.&lt;br /&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/230561.aspx</link><pubDate>Mon, 08 Jun 2009 13:41:25 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230561</guid><dc:creator>mrjvdveen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230561.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=230561</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Do you use the ASP.NET Development Server as your debugging webserver or do you use IIS?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Breakpoints can not be reached at random times</title><link>http://forums.silverlight.net/forums/thread/230535.aspx</link><pubDate>Mon, 08 Jun 2009 12:27:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:230535</guid><dc:creator>Grahf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/230535.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=230535</wfw:commentRss><description>Nope I am using debug the whole time.</description></item></channel></rss>