<?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: Re: Re: Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/79502.aspx</link><pubDate>Mon, 11 Aug 2008 12:50:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:79502</guid><dc:creator>kbatyai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/79502.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=79502</wfw:commentRss><description>&lt;p&gt;So...&lt;/p&gt;&lt;p&gt;The solution is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Use web project, so you can set the port manually...&lt;/p&gt;&lt;p&gt;and...&lt;/p&gt;&lt;p&gt;the Service Reference Wizard cant resolve the &amp;quot;localhost&amp;quot;... &lt;/p&gt;&lt;p&gt;after i commented out the &amp;nbsp; &amp;quot;::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&amp;quot; IPv6 section in the hosts file it has started to work :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78957.aspx</link><pubDate>Fri, 08 Aug 2008 12:55:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78957</guid><dc:creator>kbatyai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78957.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78957</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So... i made an another test :)&lt;/p&gt;&lt;p&gt;I add a WCF project to the solution and it works fine...&lt;/p&gt;&lt;p&gt;So if the WCF service in the ASP.Net project doesnt work, but why?!?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Maybe configuration problems?!?&lt;/p&gt;&lt;p&gt;i tried with and without this : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&amp;quot;true&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any suggest?!? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78955.aspx</link><pubDate>Fri, 08 Aug 2008 12:41:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78955</guid><dc:creator>kbatyai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78955.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78955</wfw:commentRss><description>&lt;p&gt;So... i made a test...&lt;/p&gt;&lt;p&gt;&amp;nbsp;i created a new silverlight app in VS, then a choosed WebSiteProject (not file based...) for test.&lt;br /&gt;i added a silverlight enabled WCF service to the ASP.Net project and when i would like to add the service reference, i get the same error. (the port is fix and ok, because i set it manually.)&lt;/p&gt;&lt;p&gt;But the service reference wizard throw the same error ( the WSDL in IE works fine...)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I dont understand... VS bug? Vista bug? SP1 beta bug? or what... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78954.aspx</link><pubDate>Fri, 08 Aug 2008 12:26:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78954</guid><dc:creator>kbatyai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78954.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78954</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;:)&lt;/p&gt;&lt;p&gt;Thanks I know what is the property page :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Silverlight project template creates a file-based web site, not a Web Project...&lt;br /&gt;so, i cant turn off auto port :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;-----&lt;/p&gt;&lt;p&gt;I think i will &amp;quot;change&amp;quot; the testing web site (file based) to Web Project and in that, i can set the port manually.....&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78947.aspx</link><pubDate>Fri, 08 Aug 2008 11:51:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78947</guid><dc:creator>rajesh shirpuram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78947.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78947</wfw:commentRss><description>&lt;p&gt;If it is the problem with dynamic ports then try this...NOTE: im using VSTS 2008&lt;/p&gt;&lt;p&gt;Go to solution explorer ==&amp;gt; Click (no right click) on web application which gets created by silverlight app. ==&amp;gt; Press F4 in the keyboard.&lt;/p&gt;&lt;p&gt;A Dockpanel shows up you can set there properties such as , Always use dynamic ports and set ports.&lt;/p&gt;&lt;p&gt;If you are using other than VSTS 2008...i just right click on the web project and Properties. and there you can set port hopefully.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78940.aspx</link><pubDate>Fri, 08 Aug 2008 11:31:35 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78940</guid><dc:creator>kbatyai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78940.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78940</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank&amp;#39;s the link, i &amp;#39;ve seen it. But...&lt;/p&gt;&lt;p&gt;I do the same, but it doesnt do the same :)&lt;/p&gt;&lt;p&gt;The VS randomizes the port, and if i overwrite it, it doesnt find the service, and show that error what i wrote...&lt;/p&gt;&lt;p&gt;My system:&lt;/p&gt;&lt;p&gt;-newly installed vista&lt;/p&gt;&lt;p&gt;-vista sp1&lt;/p&gt;&lt;p&gt;-vs 2008 prof edition&lt;/p&gt;&lt;p&gt;-vs2008 sp1 beta1 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78903.aspx</link><pubDate>Fri, 08 Aug 2008 10:18:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78903</guid><dc:creator>jeetAbhi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78903.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78903</wfw:commentRss><description>&lt;p&gt;Please refer to this video...it would help you......&lt;/p&gt;
&lt;p&gt;&lt;a href="http://silverlight.net/learn/learnvideo.aspx?video=47177"&gt;http://silverlight.net/learn/learnvideo.aspx?video=47177&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kindly mark as answer if it helps.&lt;/p&gt;</description></item><item><title>WCF service reference error</title><link>http://forums.silverlight.net/forums/thread/78889.aspx</link><pubDate>Fri, 08 Aug 2008 10:04:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:78889</guid><dc:creator>kbatyai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/78889.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=78889</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I &amp;#39;ve started to develop a Silverlight app...&lt;/p&gt;&lt;p&gt;My steps: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;New silverlight project (with file based test web project)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Add WCF service (silverlight enabled) to web project&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Implement service&lt;/li&gt;&lt;li&gt;Add reference in Silverlight project to System.Data.Services.Client&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Try to add service reference in the Silverlight project to the Service...&lt;/li&gt;&lt;li&gt;but...&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;When i press the discover button it founds the the service...(the ASP.NET development server starts...)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But...it found on a port that ALWAYS less then the real port by 2. Always 2.&lt;/p&gt;&lt;p&gt;So...&lt;/p&gt;&lt;ul&gt;&lt;li&gt;the Visual Studio always randomize a new port number, when I start, or i discover services ( when the ASP.Net dev server isnt running)&lt;/li&gt;&lt;li&gt;the Add Service Reference &amp;quot;wizard&amp;quot; founds the service, but it can&amp;#39;t add it to the project&lt;br /&gt;(same errror when i manually change the url to the right port number&lt;br /&gt;error:&lt;br /&gt;&lt;br /&gt;There was an error downloading &amp;#39;http://localhost:50906/SilverExamWeb/WCF/Common.svc&amp;#39;.&lt;br /&gt;The underlying connection was closed: An unexpected error occurred on a receive.&lt;br /&gt;Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.&lt;br /&gt;An existing connection was forcibly closed by the remote host&lt;br /&gt;Metadata contains a reference that cannot be resolved: &amp;#39;http://localhost:50906/SilverExamWeb/WCF/Common.svc&amp;#39;.&lt;br /&gt;An error occurred while receiving the HTTP response to http://localhost:50906/SilverExamWeb/WCF/Common.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.&lt;br /&gt;The underlying connection was closed: An unexpected error occurred on a receive.&lt;br /&gt;Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.&lt;br /&gt;An existing connection was forcibly closed by the remote host&lt;br /&gt;If the service is defined in the current solution, try building the solution and adding the service reference again.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;When i paste the url to IE, it works, and i get the WSDL xml...&lt;/li&gt;&lt;li&gt;I tested it in a simple app in another VS, and i got the same error... when in IE works fine... too&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So What is the problem?!?&lt;br /&gt;What mistake do i?&lt;br /&gt;&lt;br /&gt;And why VS randomize a port?!? &lt;br /&gt;&lt;br /&gt;Thanks Kris&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>