<?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: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/224301.aspx</link><pubDate>Mon, 25 May 2009 22:56:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:224301</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/224301.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=224301</wfw:commentRss><description>&lt;p&gt;Sladapter is a kind.&amp;nbsp; I tell ya that...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/223852.aspx</link><pubDate>Mon, 25 May 2009 01:51:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:223852</guid><dc:creator>pyrce</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/223852.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=223852</wfw:commentRss><description>Awesome. Was struggling with this problem for ages and this helped.

&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;sladapter:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;

  Or you can try this code. It always worked for me.

  System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
         
  System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress(new Uri(Application.Current.Host.Source, &amp;quot;../YourService.svc&amp;quot;));

 MathServiceReference.MathServiceClient MathClient = new MathServiceReference.MathServiceClient(binding, address);

 &lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/175056.aspx</link><pubDate>Mon, 16 Feb 2009 16:08:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:175056</guid><dc:creator>simonwalton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/175056.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=175056</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81260.aspx</link><pubDate>Sun, 17 Aug 2008 23:34:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81260</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81260.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81260</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;sladapter:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;&lt;a class="namelink" href="http://silverlight.net/members/GearWorld.aspx"&gt;GearWorld&lt;/a&gt;, &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now I understand your problem. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Your WCF service is running in a separate Web from your Page. Then you should not use the following code to access your Service:&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;At first it wasn&amp;#39;t.&amp;nbsp; I was really set up like you&amp;#39;re talking bout.&amp;nbsp; The service IN the web project.&amp;nbsp; Now I tried so many things.&amp;nbsp; Yeah anyway now that I found the problem and solved it.&amp;nbsp; I&amp;#39;m back with the service inside the web project and I like it that way not separated.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m an happy man now.&amp;nbsp; Everything works flowlessly.....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81258.aspx</link><pubDate>Sun, 17 Aug 2008 23:31:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81258</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81258.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81258</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;John Laibach:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;sladapter:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Or you can try this code. It always worked for me.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress(new Uri(Application.Current.Host.Source, &amp;quot;../YourService.svc&amp;quot;));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;MathServiceReference.MathServiceClient MathClient = new MathServiceReference.MathServiceClient(binding, &lt;b&gt;address&lt;/b&gt;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sladapter, thanx, it&amp;#39;s great solution!&lt;/p&gt;
&lt;p&gt;I spent many hours with this issue, and now it worked! &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Whoever did this code thank you because DEV and LIVE now can work without having to play with a static endpoint......&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81230.aspx</link><pubDate>Sun, 17 Aug 2008 17:51:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81230</guid><dc:creator>work2gs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81230.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81230</wfw:commentRss><description>&lt;p&gt;Thanks sladapter&amp;nbsp;&lt;/p&gt;&lt;p&gt;I successfully found the problem when using the debug mode with IIS instead of DevServer&lt;br /&gt;&lt;/p&gt;&lt;p&gt;the user was not existing in my db.&lt;/p&gt;&lt;p&gt;I know, it&amp;#39;s a classic...one &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;p&gt;Fred&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81165.aspx</link><pubDate>Sat, 16 Aug 2008 21:41:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81165</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81165.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81165</wfw:commentRss><description>&lt;p&gt;By the way.&amp;nbsp;&amp;nbsp;Windows Live Search is your friend.&lt;/p&gt;
&lt;p&gt;I invite you to see it working as you can see the visitor count in the lower left corner is visible and working which is the WCF service in action&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gearworld.dyndns.org:8082/devpreview"&gt;http://gearworld.dyndns.org:8082/devpreview&lt;/a&gt;&amp;nbsp;Opened between 6:00am and 9:00pm EST&lt;/p&gt;
&lt;p&gt;Check your SECURITY ZONE which can prevent you to see the site.&lt;br /&gt;Also it would be kind for you to come as I receive emal for visitors which is also in the service :)&lt;/p&gt;</description></item><item><title>Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81164.aspx</link><pubDate>Sat, 16 Aug 2008 21:33:45 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81164</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81164.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81164</wfw:commentRss><description>&lt;p&gt;Ok I finally found the problem.&amp;nbsp; Believe me, no one yet talked about this in all the forum.&amp;nbsp; I searched for it and found nothing about it.&lt;/p&gt;
&lt;p&gt;What I don&amp;#39;t understand is why this is not made by SilverLight installation or VS2008 installation ???.&amp;nbsp; This would be sooooooooo much easier for people that doesn&amp;#39;t know these technical settings.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Well, instead of writting everything I did here&amp;#39;s a very simple URL which solve all those problems of WCF service not working outside the VS 2008&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms752252.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms752252.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t thanx me.&amp;nbsp; I&amp;#39;ve been looking for that since 3 and a half week, yelling, crying, writting all kind of messages with images and here was&lt;br /&gt;the missing piece of the puzzle.&lt;/p&gt;
&lt;p&gt;Enjoy !&lt;/p&gt;
&lt;p&gt;Now I can go on&amp;nbsp;with my learning process and make a very interesting LINQ to SQL WCF Service for an eCommerce site :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81147.aspx</link><pubDate>Sat, 16 Aug 2008 16:43:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81147</guid><dc:creator>John Laibach</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81147.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81147</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;sladapter:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; Or you can try this code. It always worked for me.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress(new Uri(Application.Current.Host.Source, &amp;quot;../YourService.svc&amp;quot;));&lt;/p&gt;&lt;p&gt;&amp;nbsp;MathServiceReference.MathServiceClient MathClient = new
MathServiceReference.MathServiceClient(binding,
&lt;b&gt;address&lt;/b&gt;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;sladapter, thanx, it&amp;#39;s great solution!&lt;/p&gt;&lt;p&gt;I spent many hours with this issue, and now it worked! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81138.aspx</link><pubDate>Sat, 16 Aug 2008 14:49:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81138</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81138.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81138</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://silverlight.net/members/GearWorld.aspx" class="namelink"&gt;GearWorld&lt;/a&gt;, &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now I understand your problem. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Your WCF service is running in a separate Web from your Page. Then you should not use the following code to access your Service:&lt;/p&gt;&lt;pre class="coloredcode"&gt; &lt;b&gt;Uri address = &lt;span class="kwd"&gt;new&lt;/span&gt; Uri(Application.Current.Host.Source, &lt;span class="st"&gt;&amp;quot;../SilverService.svc&amp;quot;&lt;/span&gt;);&lt;/b&gt;   // This won&amp;#39;t work&lt;br /&gt;            Proxy = &lt;span class="kwd"&gt;new&lt;/span&gt; GearSite.ProxyCode.SilverServiceClient(&lt;span class="st"&gt;&amp;quot;BasicHttpBinding_ISilverService&amp;quot;&lt;/span&gt;, address.AbsoluteUri);&lt;br /&gt;            Proxy.GetVisitorCountCompleted += &lt;span class="kwd"&gt;new&lt;/span&gt; EventHandler(Proxy_GetVisitorCountCompleted);&lt;br /&gt;            Proxy.GetVisitorCountAsync();&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;Option1: Move your Service to your Web Project which host your page. So you only have 2 projects in your solution. Then you can use the code above. This should be the easiest. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Option2: Keep your current setting. Do not use the code above. Use default constructor:&lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt; Proxy = &lt;span class="kwd"&gt;new&lt;/span&gt; GearSite.ProxyCode.SilverServiceClient(&lt;span class="st"&gt;&lt;/span&gt;);&lt;/pre&gt;&lt;p&gt;1) Deploy your WCF Web project first to IIS (on your local machine, just turn on the Web Share on the WCF Web Project folder).&amp;nbsp; Make sure you can access http://localhost/YourWCFWebSite/&lt;span class="st"&gt;SilverService.svc from a browser.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="st"&gt;2) Put the clientaccesspolicy.xml file in the inetpub\wwwroot folder.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="st"&gt;3) Then a&lt;/span&gt;dd Service Reference to point to http://localhost/YourWCFWebSite/&lt;span class="st"&gt;SilverService.svc.&lt;/span&gt;&lt;b&gt;&lt;span class="st"&gt;&amp;nbsp; (no port number)&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;4) Now you should access this web service from your Silverlight. Test your app. If everything is fine. Test your Web Project that host your page on IIS by using Page url as :http//localhost/YourWeb/YourTestPage.html. They should still work.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;4) If everything works, you are ready to deploy it to another server. Just remember you have two Web sites to deploy. One is the Service web site, one is for your page. Deploy the Service site first. Make sure it&amp;#39;s working. Remember to copy the &lt;span class="st"&gt; clientaccesspolicy.xml to the remote server inetput/wwwroot folder.&lt;/span&gt; Then change the URL in your ServiceReference.ClientConfig to point to that service. Test your Siverlight. Build your Silverlight and Web project. Then deploy the Silverlight Web project. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span class="st"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81083.aspx</link><pubDate>Fri, 15 Aug 2008 23:37:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81083</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81083.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81083</wfw:commentRss><description>&lt;p&gt;Here more information for you to salivate on :)&lt;/p&gt;
&lt;p&gt;This screenshot is the bigest problem I have since 3 weeks now,&amp;nbsp; I start to be tired&amp;nbsp; I&amp;#39;m loosing hope in Web Service with SilverLight&lt;/p&gt;
&lt;p&gt;&lt;a href="http://pages.videotron.com/gear/bigbigproblem.jpg"&gt;http://pages.videotron.com/gear/bigbigproblem.jpg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In there you can see that the SilverLight report a 404 Not found error which is somewhere in the Asyncronous methods.&lt;br /&gt;While the sniffer shows a 405 verb not allowed.&amp;nbsp; I did change all the &amp;lt;add verb = &amp;quot;GET, HEAD&amp;quot;....... for &amp;lt;add verb = &amp;quot;*&amp;quot;....... with no success.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what&amp;#39;s going on but I will try to keep hope.&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81062.aspx</link><pubDate>Fri, 15 Aug 2008 21:02:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81062</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81062.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81062</wfw:commentRss><description>&lt;p&gt;I saw the when we encapsulate code here there are some missing things like above if you look, List GetVisitorCount(...), its List&amp;lt;Visitor&amp;gt; GetVisitorCount(...)&amp;nbsp; Its not a bug in&amp;nbsp;my code but a bug with the code translator here in this forum :)&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/81057.aspx</link><pubDate>Fri, 15 Aug 2008 20:52:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:81057</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/81057.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=81057</wfw:commentRss><description>&lt;p&gt;Ok here&amp;#39;s the information :&lt;/p&gt;
&lt;p&gt;1) ONE solution, 3 projects.&amp;nbsp; Project #1 = Web site ASP.NET project, Project #2 =&amp;nbsp;SilverLight project, Project #3 =&amp;nbsp;WCF service.&lt;br /&gt;2) The Web site is hosted in IIS 7 and&amp;nbsp;consume NO SERVICE AT ALL.&lt;br /&gt;3), The WCF Service project has the clientaccesspolicy.xml at the ROOT, and is running in IIS 7 as a notmal WCF Service&lt;br /&gt;&lt;br /&gt;Now for the point #4 here, its a very complicated thing to&amp;nbsp;talk about since I did try so many things.&amp;nbsp; I&amp;#39;m just going to&amp;nbsp;tell the last one I&amp;#39;m up with right now&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4) The SilverLight Project is consuming the service at the endpoint dynamiclly created (in the code behind of the Silverlight project to point at either the DEV or the LIVE.&amp;nbsp; Here&amp;#39;s the actual code that try to consume the service :&lt;/p&gt;&lt;pre class="coloredcode"&gt;        &lt;span class="kwd"&gt;private void&lt;/span&gt; LoadData()
        {
            Uri address = &lt;span class="kwd"&gt;new&lt;/span&gt; Uri(Application.Current.Host.Source, &lt;span class="st"&gt;&amp;quot;../SilverService.svc&amp;quot;&lt;/span&gt;);
            Proxy = &lt;span class="kwd"&gt;new&lt;/span&gt; GearSite.ProxyCode.SilverServiceClient(&lt;span class="st"&gt;&amp;quot;BasicHttpBinding_ISilverService&amp;quot;&lt;/span&gt;, address.AbsoluteUri);
            Proxy.GetVisitorCountCompleted += &lt;span class="kwd"&gt;new&lt;/span&gt; EventHandler(Proxy_GetVisitorCountCompleted);
            Proxy.GetVisitorCountAsync();
        }
        &lt;span class="kwd"&gt;void&lt;/span&gt; Proxy_GetVisitorCountCompleted(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, GearSite.ProxyCode.GetVisitorCountCompletedEventArgs e)
        {
            &lt;span class="kwd"&gt;if&lt;/span&gt; (e.Error != &lt;span class="kwd"&gt;null&lt;/span&gt;)
            {
                ev.txtErrorMessage.Text = e.Error.Message + &lt;span class="st"&gt;&amp;quot;\n\n&amp;quot;&lt;/span&gt; + &lt;span class="st"&gt;&amp;quot;EndPoint.Address.Uri.AbsoluteUri = &amp;quot;&lt;/span&gt; + Proxy.Endpoint.Address.Uri.AbsoluteUri;
                ((ProxyCode.SilverServiceClient)sender).SendEmailAsync(ev.txtErrorMessage.Text);
                ev.Visibility = Visibility.Visible;
            }
            &lt;span class="kwd"&gt;else&lt;/span&gt;
            {
                _VisitorCount = ((ProxyCode.Visitor)e.Result[0]).VisitorCount;
                _VisitorCount++;
                lblVisitorCount.Text = &lt;span class="st"&gt;&amp;quot;You are visitor number &amp;quot;&lt;/span&gt; + _VisitorCount.Value.ToString();
                Proxy.UpdateVisitorCountAsync(_VisitorCount.Value);
                Proxy.CloseAsync();
            }
        }
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;Now here&amp;#39;s the Service code.&amp;nbsp; I have nothing to hide here :)&lt;/p&gt;&lt;pre class="coloredcode"&gt;        &lt;span class="kwd"&gt;public&lt;/span&gt; List GetVisitorCount()
        {
            List Results = &lt;span class="kwd"&gt;null&lt;/span&gt;;

            &lt;span class="kwd"&gt;try&lt;/span&gt;
            {
                &lt;span class="kwd"&gt;using&lt;/span&gt; (VisitorClassesDataContext VisitorDB = &lt;span class="kwd"&gt;new&lt;/span&gt; VisitorClassesDataContext())
                {
                    Results = VisitorDB.Visitors.ToList();
                }
            }
            &lt;span class="kwd"&gt;catch&lt;/span&gt; (Exception ex)
            {
                Message = ex.Message;
            }
            &lt;span class="kwd"&gt;return&lt;/span&gt; Results;
        }

        &lt;span class="kwd"&gt;void&lt;/span&gt; ISilverService.UpdateVisitorCount(&lt;span class="kwd"&gt;int&lt;/span&gt; VisitorCount)
        {
            &lt;span class="kwd"&gt;try&lt;/span&gt;
            {
                &lt;span class="kwd"&gt;using&lt;/span&gt; (VisitorClassesDataContext VisitorDB = &lt;span class="kwd"&gt;new&lt;/span&gt; VisitorClassesDataContext())
                {
                    VisitorDB.Visitors.First().VisitorCount = VisitorCount;
                    VisitorDB.SubmitChanges();
                }
            }
            &lt;span class="kwd"&gt;catch&lt;/span&gt; (Exception ex)
            {
                Message = ex.Message;
            }
        }&lt;/pre&gt;
&lt;p&gt;Here&amp;#39;s the ServiceReference.ClientConfig :&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;configuration&lt;/span&gt;&amp;gt;
    &amp;lt;&lt;span class="tag"&gt;system.serviceModel&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;bindings&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;basicHttpBinding&lt;/span&gt;&amp;gt;
                &amp;lt;&lt;span class="tag"&gt;binding&lt;/span&gt;&lt;span class="attr"&gt; name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;BasicHttpBinding_ISilverService&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; maxBufferSize=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;65536&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                    maxReceivedMessageSize=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;65536&amp;quot;&lt;/span&gt;&amp;gt;
                    &amp;lt;&lt;span class="tag"&gt;security&lt;/span&gt;&lt;span class="attr"&gt; mode=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;None&amp;quot;&lt;/span&gt; /&amp;gt;
                &amp;lt;/&lt;span class="tag"&gt;binding&lt;/span&gt;&amp;gt;
            &amp;lt;/&lt;span class="tag"&gt;basicHttpBinding&lt;/span&gt;&amp;gt;
        &amp;lt;/&lt;span class="tag"&gt;bindings&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;client&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;endpoint&lt;/span&gt;&lt;span class="attr"&gt; address=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;http://gearworld.dyndns.org:8082/SilverService/SilverService.svc&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;basicHttpBinding&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; bindingConfiguration=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;BasicHttpBinding_ISilverService&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                contract=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;GearSite.ProxyCode.ISilverService&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;BasicHttpBinding_ISilverService&amp;quot;&lt;/span&gt; /&amp;gt;
        &amp;lt;/&lt;span class="tag"&gt;client&lt;/span&gt;&amp;gt;
    &amp;lt;/&lt;span class="tag"&gt;system.serviceModel&lt;/span&gt;&amp;gt;
&amp;lt;/&lt;span class="tag"&gt;configuration&lt;/span&gt;&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;And even a gift here.&amp;nbsp; how it is setup in IIS :&lt;/p&gt;
&lt;p&gt;&lt;img title="IIS setup" style="WIDTH:244px;HEIGHT:145px;" height="145" alt="IIS setup" src="http://pages.videotron.com/gear/setup.jpg" width="244" border="3" /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the solution Explorer&amp;nbsp; :&lt;/p&gt;
&lt;p&gt;&lt;img title="Solution Explorer screenshot" style="WIDTH:396px;HEIGHT:776px;" height="776" alt="Solution Explorer screenshot" src="http://pages.videotron.com/gear/solexplore.jpg" width="396" border="3" /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/80953.aspx</link><pubDate>Fri, 15 Aug 2008 13:10:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:80953</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/80953.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=80953</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;GearWorld:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Because Now I can get to the error because I did make the service completely outside the web project&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Where is your Service anyway? Could you show your ServiceReferences.ClientConfig. If your service is outside your Web site, you can &lt;b&gt;not&lt;/b&gt; use the code I suggested. That code is not for this case.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;GearWorld:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Now I get this in VS 2008 AND in Live&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You said you only get the error after deploy, now you are getting the error with Dev Server? &lt;/p&gt;&lt;p&gt;Please give the whole information if you want people to help. Or you can post your service calling code and service code (for service code, you only need to post the function signature without real code inside).&amp;nbsp; But you need to tell us your setup, where the Service code is running, what URL you used to access it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production</title><link>http://forums.silverlight.net/forums/thread/80933.aspx</link><pubDate>Fri, 15 Aug 2008 10:57:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:80933</guid><dc:creator>GearWorld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/80933.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=80933</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s where it stops when debugging.&amp;nbsp; Because Now I can get to the error because I did make the service completely outside the web project&lt;br /&gt;See this ProtocolException ? And where it stops ?, I don&amp;#39;t have enough knowledge to understand why this is happening.&amp;nbsp; Now I get this in VS 2008 AND in Live&lt;/p&gt;
&lt;p&gt;&lt;img title="Debug" style="WIDTH:1118px;HEIGHT:418px;" height="418" alt="Debug" src="http://pages.videotron.com/gear/debug.jpg" width="1118" border="3" /&gt;&lt;/p&gt;</description></item></channel></rss>