<?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>Hosting and Streaming</title><link>http://forums.silverlight.net/forums/15.aspx</link><description>Discussions about hosting and streaming Silverlight applications 

 
</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Webservice (.asmx) not working on IIS</title><link>http://forums.silverlight.net/forums/thread/235358.aspx</link><pubDate>Fri, 19 Jun 2009 07:09:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235358</guid><dc:creator>alok572</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235358.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=235358</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Webservice (.asmx) not working on IIS</title><link>http://forums.silverlight.net/forums/thread/235356.aspx</link><pubDate>Fri, 19 Jun 2009 07:03:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235356</guid><dc:creator>alok572</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235356.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=235356</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Piscevs,&lt;/p&gt;&lt;p&gt;I had faced the same problem before. You must be copying the application to your IIS or you maybe creating one in it, right.&lt;/p&gt;&lt;p&gt;Instead of doing that, Just through your solution explorer, publish your website. This will change the settings in your web.config or serviceclient.config file.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Publish your website on your IIS, thats it.&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: Webservice (.asmx) not working on IIS</title><link>http://forums.silverlight.net/forums/thread/235266.aspx</link><pubDate>Fri, 19 Jun 2009 00:04:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235266</guid><dc:creator>clint1222</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235266.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=235266</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes the client needs the address to the service.&amp;nbsp; When you used the default constructor in &lt;b&gt;new SilverlightApplication1.myRef.WebService1SoapClient(), &lt;/b&gt;the address came from the ClientConfig file.&amp;nbsp; When you set up the site in IIS, the web service call was still to &lt;a href="http://localhost:2782/WebService1.asmx"&gt;http://localhost:2782/WebService1.asmx&lt;/a&gt;, which has two potential problems.&amp;nbsp; One it the service may not be up and running since it&amp;#39;s using the development server.&amp;nbsp; It&amp;#39;s also a cross domain call at that point and would require a clientaccesspolicy file or a crossdomain policy file in place to be successful.&lt;/p&gt;
&lt;p&gt;You can still type the proxy variable as myRef.WebService1SoapClient.&amp;nbsp; Not sure why you changed to a variant.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re going to access the Silverlight App from a browser that&amp;#39;s not running on the host machine, you&amp;#39;ll get an error.&amp;nbsp; You still need to update the web reference from &amp;quot;localhost&amp;quot; to the machingname or domain name.&lt;/p&gt;</description></item><item><title>Re: Webservice (.asmx) not working on IIS</title><link>http://forums.silverlight.net/forums/thread/234471.aspx</link><pubDate>Wed, 17 Jun 2009 11:27:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:234471</guid><dc:creator>piscevs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/234471.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=234471</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Recently found an asnwer &lt;a href="http://silverlight.net/forums/t/19021.aspx" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Now i&amp;#39;m using&amp;nbsp; &lt;/p&gt;&lt;p style="font-weight:bold;"&gt;var proxy = new myRef.WebService1SoapClient(&amp;quot;WebService1Soap&amp;quot;, &amp;quot;http://localhost/ddd/SilverlightApplication1.Web/WebService1.asmx&amp;quot;);&lt;/p&gt;&lt;p&gt;if i run project from IIS&lt;br /&gt;and &lt;/p&gt;&lt;p style="font-weight:bold;"&gt;var proxy = new myRef.WebService1SoapClient(&amp;quot;WebService1Soap&amp;quot;, &amp;quot;http://localhost:2782/WebService1.asmx&amp;quot;); &lt;/p&gt;&lt;p&gt;if i run from Visual Studio&lt;/p&gt;&lt;p&gt;instead of using &lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt;myRef.WebService1SoapClient proxy = new SilverlightApplication1.myRef.WebService1SoapClient(); &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SoapClient just need a web services actual path&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Webservice (.asmx) not working on IIS</title><link>http://forums.silverlight.net/forums/thread/234299.aspx</link><pubDate>Wed, 17 Jun 2009 03:37:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:234299</guid><dc:creator>clint1222</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/234299.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=234299</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Hi piscevs,&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;It’s probably an address issue.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;You’re using the default address when you create your web service client.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The Silverlight app will get the default address from the ClientConfig file.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Take a look at the ClientConfig file inside the xap file.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Either update the ClientConfig file in a text editor; or update the service reference to point to the IIS web service and rebuilt the project and deploy the new .xap file; or dynamically build the address based on the Host information.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;You should update the endpoint address inside the client element in the web.config.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Also keep in mind that if you use localhost in your address references, the web service calls from your Silverlight app will only work on the machine hosting IIS.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Use the domain name or machine name.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;In your completed method test and check for an error message.&lt;/font&gt;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;if&lt;/span&gt; (e.Error != &lt;span style="COLOR:blue;"&gt;null&lt;/span&gt;)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="COLOR:green;"&gt;//Handle error;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;knopka.Content = e.Result;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;If you’re still getting an error, post the returned error message.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Webservice (.asmx) not working on IIS</title><link>http://forums.silverlight.net/forums/thread/233927.aspx</link><pubDate>Tue, 16 Jun 2009 12:10:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:233927</guid><dc:creator>piscevs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/233927.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=233927</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello! &lt;/p&gt;&lt;p&gt;When the project runs on debuging mode, it&amp;#39;s working fine. I&amp;#39;m just pushing silverlight button which calls &amp;quot;hello world&amp;quot; method from Webservice.asmx.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But when i&amp;#39;m trying to call push button while project runs from IIS, it causes error :&lt;/p&gt;&lt;p&gt;Webpage error details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Message: Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid.&amp;nbsp; Check InnerException for exception details.&amp;nbsp;&amp;nbsp; at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at SilverlightApplication1.myRef.HelloWorldCompletedEventArgs.get_Result()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at SilverlightApplication1.Page.proxy_HelloWorldCompleted(Object sender, imageeeeeesCompletedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at SilverlightApplication1.myRef.WebService1SoapClient.OnHelloWorldCompleted(Object state)&lt;br /&gt;Line: 1&lt;br /&gt;Char: 1&lt;br /&gt;Code: 0&lt;br /&gt;URI: http://localhost/new/SilverlightApplication1.Web/Main.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is my silverlight codebehind and webservice code screeshot:&lt;/p&gt;&lt;p&gt;&lt;a href="http://img8.imageshack.us/img8/6194/webk.gif" target="_blank"&gt;http://img8.imageshack.us/img8/6194/webk.gif&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;and some web.Config code:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;bindings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;basicHttpBinding&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;binding name=&amp;quot;WebService1Soap&amp;quot; closeTimeout=&amp;quot;00:01:00&amp;quot; openTimeout=&amp;quot;00:01:00&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; receiveTimeout=&amp;quot;00:10:00&amp;quot; sendTimeout=&amp;quot;00:01:00&amp;quot; allowCookies=&amp;quot;false&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bypassProxyOnLocal=&amp;quot;false&amp;quot; hostNameComparisonMode=&amp;quot;StrongWildcard&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxBufferSize=&amp;quot;65536&amp;quot; maxBufferPoolSize=&amp;quot;524288&amp;quot; maxReceivedMessageSize=&amp;quot;65536&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; messageEncoding=&amp;quot;Text&amp;quot; textEncoding=&amp;quot;utf-8&amp;quot; transferMode=&amp;quot;Buffered&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useDefaultWebProxy=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;readerQuotas maxDepth=&amp;quot;32&amp;quot; maxStringContentLength=&amp;quot;8192&amp;quot; maxArrayLength=&amp;quot;16384&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxBytesPerRead=&amp;quot;4096&amp;quot; maxNameTableCharCount=&amp;quot;16384&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;security mode=&amp;quot;None&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transport clientCredentialType=&amp;quot;None&amp;quot; proxyCredentialType=&amp;quot;None&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; realm=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;message clientCredentialType=&amp;quot;UserName&amp;quot; algorithmSuite=&amp;quot;Default&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/security&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/binding&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/basicHttpBinding&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/bindings&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;client&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;endpoint address=&amp;quot;http://localhost:2782/WebService1.asmx&amp;quot; binding=&amp;quot;basicHttpBinding&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bindingConfiguration=&amp;quot;WebService1Soap&amp;quot; contract=&amp;quot;myRef.WebService1Soap&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name=&amp;quot;WebService1Soap&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/client&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/system.serviceModel&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;I even cant imagine where is the problem.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>