<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Uploading with Silveright 2 Beta 1 and WCF</title>
	<atom:link href="http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf</link>
	<description>Sharing our knowledge</description>
	<pubDate>Fri, 04 Jul 2008 19:49:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Nissa</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-74696</link>
		<dc:creator>Nissa</dc:creator>
		<pubDate>Tue, 24 Jun 2008 07:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-74696</guid>
		<description>Hello,
I need to upload files that have more than 50 Mo, but when I try to set the MaxBufferSize, MaxReceivedMessageSize, maxArrayLength and maxStringContentLength to 50000000, I get the 404 error.
I hope that you can help me
Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I need to upload files that have more than 50 Mo, but when I try to set the MaxBufferSize, MaxReceivedMessageSize, maxArrayLength and maxStringContentLength to 50000000, I get the 404 error.<br />
I hope that you can help me<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-69280</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Fri, 06 Jun 2008 17:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-69280</guid>
		<description>I think you are getting the cross-domain error. Please use the static port in the ASP.NET project. update that static port in Service Reference... then, it will work. please let me know if you are not clear.</description>
		<content:encoded><![CDATA[<p>I think you are getting the cross-domain error. Please use the static port in the ASP.NET project. update that static port in Service Reference&#8230; then, it will work. please let me know if you are not clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnt Moberg</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-69277</link>
		<dc:creator>Arnt Moberg</dc:creator>
		<pubDate>Fri, 06 Jun 2008 16:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-69277</guid>
		<description>Hi
I am new to WCF and have looked at your example. But I have the following
problem when I start your solution to debugg the code (to understand what
happends).
Since Client bin is not included in the project I have to include it and then
add existing file (TestPage.html).
I then set this as start page and run it. I select a file but when I hit add it
crashes on the following line:
System.IAsyncResult _result = base.BeginInvoke("SaveFile", _args, callback,
asyncState);
In the method BeginSaveFile(...).

I get the error;
An exception of type 'System.ServiceModel.CommunicationException' occurred in
System.ServiceModel.dll but was not handled in user code

Additional information: [CrossDomainError]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide
sufficient information to diagnose the problem. See
http://go.microsoft.com/fwlink/?linkid=106663&#38;Version=2.0.30226.2&#38;File=System.ServiceModel.dll&#38;Key=CrossDomainError

Can you see what I am doing wrong? I guess including the Test.html file is
where Im doing someting wrong.
I really hope you can help me!!
Arnt</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am new to WCF and have looked at your example. But I have the following<br />
problem when I start your solution to debugg the code (to understand what<br />
happends).<br />
Since Client bin is not included in the project I have to include it and then<br />
add existing file (TestPage.html).<br />
I then set this as start page and run it. I select a file but when I hit add it<br />
crashes on the following line:<br />
System.IAsyncResult _result = base.BeginInvoke(&#8221;SaveFile&#8221;, _args, callback,<br />
asyncState);<br />
In the method BeginSaveFile(&#8230;).</p>
<p>I get the error;<br />
An exception of type &#8216;System.ServiceModel.CommunicationException&#8217; occurred in<br />
System.ServiceModel.dll but was not handled in user code</p>
<p>Additional information: [CrossDomainError]<br />
Arguments:<br />
Debugging resource strings are unavailable. Often the key and arguments provide<br />
sufficient information to diagnose the problem. See<br />
<a href="http://go.microsoft.com/fwlink/?linkid=106663&amp;Version=2.0.30226.2&amp;File=System.ServiceModel.dll&amp;Key=CrossDomainError" rel="nofollow">http://go.microsoft.com/fwlink/?linkid=106663&amp;Version=2.0.30226.2&amp;File=System.ServiceModel.dll&amp;Key=CrossDomainError</a></p>
<p>Can you see what I am doing wrong? I guess including the Test.html file is<br />
where Im doing someting wrong.<br />
I really hope you can help me!!<br />
Arnt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Thake</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-62986</link>
		<dc:creator>Jeremy Thake</dc:creator>
		<pubDate>Thu, 15 May 2008 06:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-62986</guid>
		<description>I am using WCF services and can't see a way of setting a behavoiur on the client as you would in a config file e.g.:

behavior name="XamlPrintWcfService.XamlPrintWcfIServiceBehavior"
dataContractSerializer maxItemsInObjectGraph=
"6553600"


How can this be done in C# code within the Silverlight Project. Note I'm using Silverlight 2.0 beta 1. I noticed that is does create the ServiceReferences.ClientConfig but it simply doesn't use this and you have to set it in code using your above example for WCF (you state it works for ASMX).</description>
		<content:encoded><![CDATA[<p>I am using WCF services and can&#8217;t see a way of setting a behavoiur on the client as you would in a config file e.g.:</p>
<p>behavior name=&#8221;XamlPrintWcfService.XamlPrintWcfIServiceBehavior&#8221;<br />
dataContractSerializer maxItemsInObjectGraph=<br />
&#8220;6553600&#8243;</p>
<p>How can this be done in C# code within the Silverlight Project. Note I&#8217;m using Silverlight 2.0 beta 1. I noticed that is does create the ServiceReferences.ClientConfig but it simply doesn&#8217;t use this and you have to set it in code using your above example for WCF (you state it works for ASMX).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-55357</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Fri, 18 Apr 2008 16:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-55357</guid>
		<description>Yes. It would be better but I think both ways will be working fine.. let me know if it's not working for you..</description>
		<content:encoded><![CDATA[<p>Yes. It would be better but I think both ways will be working fine.. let me know if it&#8217;s not working for you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun Venus</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-55338</link>
		<dc:creator>Shaun Venus</dc:creator>
		<pubDate>Fri, 18 Apr 2008 15:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-55338</guid>
		<description>I downloaded your code and found the the SaveFileCompleted handler is being set after the async call is being made.  Should the lines of code (bottom of the Add_MouseLeftButtonUp method in Page.xaml.cs) be in this order:

UploadClient.SaveFileCompleted += new EventHandler(UploadClient_SaveFileCompleted);

UploadClient.SaveFileAsync(UploadFile);</description>
		<content:encoded><![CDATA[<p>I downloaded your code and found the the SaveFileCompleted handler is being set after the async call is being made.  Should the lines of code (bottom of the Add_MouseLeftButtonUp method in Page.xaml.cs) be in this order:</p>
<p>UploadClient.SaveFileCompleted += new EventHandler(UploadClient_SaveFileCompleted);</p>
<p>UploadClient.SaveFileAsync(UploadFile);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-51057</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Sun, 06 Apr 2008 11:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-51057</guid>
		<description>Hello Lixin,

Yes. For ASMX web service, you can change the max size in web.config. 

For example: 

&lt;httpRuntime 
executionTimeout="90" 
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" 
minFreeThreads="8" 
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
/&gt;

By default, ASP.NET permits only files that are 4,096 kilobytes (KB) (or 4 megabytes [MB]) or less to be uploaded to the Web server. To upload larger files, you must change the maxRequestLength parameter of the &lt;httpRuntime&gt; section in the Web.config file.

For WCF, you can change MaxBufferSize and MaxReceivedSize ...</description>
		<content:encoded><![CDATA[<p>Hello Lixin,</p>
<p>Yes. For ASMX web service, you can change the max size in web.config. </p>
<p>For example: </p>
<p><httpruntime executionTimeout="90"<br />
maxRequestLength="4096"<br />
useFullyQualifiedRedirectUrl="false"<br />
minFreeThreads="8"<br />
minLocalRequestFreeThreads="4"<br />
appRequestQueueLimit="100"<br />
/></p>
<p>By default, ASP.NET permits only files that are 4,096 kilobytes (KB) (or 4 megabytes [MB]) or less to be uploaded to the Web server. To upload larger files, you must change the maxRequestLength parameter of the <httpruntime> section in the Web.config file.</p>
<p>For WCF, you can change MaxBufferSize and MaxReceivedSize &#8230;</httpruntime></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lixin</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-50846</link>
		<dc:creator>Lixin</dc:creator>
		<pubDate>Sat, 05 Apr 2008 11:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-50846</guid>
		<description>Hi Michael,

Is there an actual limit on file size in this uploading approach?

I mean Silverlight + WCF Service or Silverlight + asmx Service

If there is, is that possible to increase that limit?

Thanks

Lixin</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>Is there an actual limit on file size in this uploading approach?</p>
<p>I mean Silverlight + WCF Service or Silverlight + asmx Service</p>
<p>If there is, is that possible to increase that limit?</p>
<p>Thanks</p>
<p>Lixin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync &#187; Uploading with Silveright 2 Beta 1 and ASMX Web Service</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-49541</link>
		<dc:creator>Michael Sync &#187; Uploading with Silveright 2 Beta 1 and ASMX Web Service</dc:creator>
		<pubDate>Wed, 02 Apr 2008 15:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-49541</guid>
		<description>[...] with Silverlight 2 (beta1). As some of you might notice that Brad McKelvie wrote an article about how to upload the file with WCF and Silverlight 2 (beta1) in my blog recently. Now, egoZd shares his idea to use ASMX web service instead of WCF for [...]</description>
		<content:encoded><![CDATA[<p>[...] with Silverlight 2 (beta1). As some of you might notice that Brad McKelvie wrote an article about how to upload the file with WCF and Silverlight 2 (beta1) in my blog recently. Now, egoZd shares his idea to use ASMX web service instead of WCF for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W&#246;chentliche Rundablage: WPF, Silverlight 2, ASP.NET MVC, .NET 3.5&#8230; &#124; Code-Inside Blog</title>
		<link>http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-48852</link>
		<dc:creator>W&#246;chentliche Rundablage: WPF, Silverlight 2, ASP.NET MVC, .NET 3.5&#8230; &#124; Code-Inside Blog</dc:creator>
		<pubDate>Mon, 31 Mar 2008 19:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/27/uploading-with-silveright-2-beta-1-and-wcf#comment-48852</guid>
		<description>[...] Uploading with Silveright 2 Beta 1 and WCF [...]</description>
		<content:encoded><![CDATA[<p>[...] Uploading with Silveright 2 Beta 1 and WCF [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
