<?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>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Random Stoppage of WebService accessibility</title><link>http://forums.silverlight.net/forums/thread/86959.aspx</link><pubDate>Fri, 05 Sep 2008 14:27:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:86959</guid><dc:creator>Kbalz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/86959.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=86959</wfw:commentRss><description>&lt;p&gt;Seems to be something related to closing and flushing the COM out of asp&amp;#39;s memory.. at the end of my WCF service I do this by setting all of the classes from the com = null .. but there is probably a better way to do this.&lt;/p&gt;
&lt;p&gt;Anyways it isn&amp;#39;t SL related&lt;/p&gt;</description></item><item><title>Re: Random Stoppage of WebService accessibility</title><link>http://forums.silverlight.net/forums/thread/86957.aspx</link><pubDate>Fri, 05 Sep 2008 14:22:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:86957</guid><dc:creator>Kbalz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/86957.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=86957</wfw:commentRss><description>&lt;p&gt;Ok did that and it crashed on the webservice call, accessing the COM object. The COM Object has 7 events that I attach to. When it crashes, it does so when I attach to the first event with this error:&lt;/p&gt;
&lt;p&gt;COM object that has been separated from its underlying RCW cannot be used. &lt;/p&gt;
&lt;p&gt;I will google this further&lt;/p&gt;</description></item><item><title>Re: Random Stoppage of WebService accessibility</title><link>http://forums.silverlight.net/forums/thread/86954.aspx</link><pubDate>Fri, 05 Sep 2008 14:18:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:86954</guid><dc:creator>robhouweling</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/86954.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=86954</wfw:commentRss><description>&lt;p&gt;Debug your webservice and set a breakpoint where the service method is called and see where it fails.&lt;/p&gt;</description></item><item><title>Re: Random Stoppage of WebService accessibility</title><link>http://forums.silverlight.net/forums/thread/86953.aspx</link><pubDate>Fri, 05 Sep 2008 14:17:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:86953</guid><dc:creator>Kbalz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/86953.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=86953</wfw:commentRss><description>&lt;p&gt;So here are two test runs in kind of a timeline view, step by step:&lt;/p&gt;
&lt;p&gt;Test run 1:&lt;/p&gt;
&lt;p&gt;Open SilverlightTestPage.aspx&lt;br /&gt;Call webservice_B &lt;br /&gt;AsyncComplete for webserviceB - works, returns rows from database to the application&lt;br /&gt;&lt;br /&gt;Call webservice_A - works, calls COM on server and adds rows to DB&lt;br /&gt;AsyncComplete for webserviceA - works, calls COM on server and adds rows to DB&lt;br /&gt;&lt;br /&gt;Call webservice_A - fails, posts error in first post to small &amp;quot;!&amp;quot; in IE7 in lower left corner, does not crash application&lt;br /&gt;&lt;br /&gt;Can still browse to &lt;a href="http://www.domain.com/app/webservice/servicename.svc"&gt;www.domain.com/app/webservice/servicename.svc&lt;/a&gt;, opens fine&lt;br /&gt;&lt;br /&gt;Call webservice_B &lt;br /&gt;AsyncComplete for webserviceB - works, returns rows from database to the application&lt;br /&gt;&lt;br /&gt;Call webservice_A - fails..&lt;br /&gt;&lt;br /&gt;Open IIS on webservice, recycle app pool&lt;br /&gt;&lt;br /&gt;Call webservice_A - works, calls COM on server and adds rows to DB&lt;br /&gt;AsyncComplete for webserviceA - works, calls COM on server and adds rows to DB&lt;/p&gt;
&lt;p&gt;Close Silverlight Application&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Test run 2:&lt;/p&gt;
&lt;p&gt;Open SilverlightTestPage.aspx&lt;br /&gt;Call webservice_B &lt;br /&gt;AsyncComplete for webserviceB - works, returns rows from database to the application&lt;br /&gt;&lt;br /&gt;Call webservice_A - works, calls COM on server and adds rows to DB&lt;br /&gt;AsyncComplete for webserviceA - works, calls COM on server and adds rows to DB&lt;br /&gt;&lt;br /&gt;Call webservice_A - fails, posts error in first post to small &amp;quot;!&amp;quot; in IE7 in lower left corner, does not crash application&lt;br /&gt;&lt;br /&gt;Can still browse to &lt;a href="http://www.domain.com/app/webservice/servicename.svc"&gt;www.domain.com/app/webservice/servicename.svc&lt;/a&gt;, opens fine&lt;br /&gt;&lt;br /&gt;Call webservice_B &lt;br /&gt;AsyncComplete for webserviceB - works, returns rows from database to the application&lt;br /&gt;&lt;br /&gt;Call webservice_A - fails..&lt;/p&gt;
&lt;p&gt;Close Silverlight Application&lt;/p&gt;
&lt;p&gt;Open Silverlight App in new IE window&lt;br /&gt;&lt;br /&gt;Call webservice_B &lt;br /&gt;AsyncComplete for webserviceB - works, returns rows from database to the application&lt;br /&gt;&lt;br /&gt;Call webservice_A - fails..&lt;br /&gt;&lt;br /&gt;Recycle pool..&amp;nbsp; &lt;br /&gt;&lt;br /&gt;webservice_a works again&lt;/p&gt;</description></item><item><title>Random Stoppage of WebService accessibility</title><link>http://forums.silverlight.net/forums/thread/86947.aspx</link><pubDate>Fri, 05 Sep 2008 14:10:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:86947</guid><dc:creator>Kbalz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/86947.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=86947</wfw:commentRss><description>&lt;p&gt;My application calls a webservice, when I push a button on the application. The webservice adds some rows to my database. I can successfully call the webservice and see the rows in the DB many times.. but randomly without change to code, the button&amp;nbsp;press within the app will raise this error (the little yellow ! in IE 7, like a javascript error):&lt;/p&gt;
&lt;p&gt;Line: 1&lt;br /&gt;Char: 1&lt;br /&gt;Error: Unhandled Error in Silverlight 2 Application Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp;amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)&amp;nbsp; at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp;amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;This particular webservice (WEBSERVICE_A)&amp;nbsp;method makes use of a COM Object, local on the webserver. I have other webservice method(WEBSERVICE_B)&amp;nbsp;&amp;nbsp;that does not access this COM object. Once my application gets the error above, it can not call WEBSERVICE_A any more (keeps getting the error, the yellow &amp;quot;!&amp;quot;), but I can still call WEBSERVICE_B.&lt;/p&gt;
&lt;p&gt;A quick way for me to fix this is to go into IIS on the server, open the application pool that the web app is running on, and &amp;quot;Recycle&amp;quot; the pool. This again allows my silverlight application to access the webservice_a&amp;nbsp; - without having to refresh / close&amp;nbsp;the silverlight application.&lt;/p&gt;
&lt;p&gt;My thoughts are that this is not totally silverlight related, but how can I diagnose this problem..?&lt;/p&gt;</description></item></channel></rss>