﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-Seeker Gu-最新评论</title><link>http://www.cnblogs.com/seeker/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Thu, 22 Jan 2009 01:54:37 GMT</pubDate><lastBuildDate>Thu, 22 Jan 2009 01:54:37 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592163</link><dc:creator>大树牛</dc:creator><author>大树牛</author><pubDate>Wed, 22 Jul 2009 02:38:54 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592163</guid><description><![CDATA[靠,我知道了,在linq to sql 自动生成的类里面修改一下，加上DataContract 和 DataMember，就可以了。(lilop@126.com)<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">大树牛</a> 2009-07-22 10:38 <a href="http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592163#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592130</link><dc:creator>Amar-Yao</dc:creator><author>Amar-Yao</author><pubDate>Wed, 22 Jul 2009 02:21:14 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592130</guid><description><![CDATA[你是银客帝国的吧,我是Amar
好像已经告诉过你了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">Amar-Yao</a> 2009-07-22 10:21 <a href="http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592130#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592123</link><dc:creator>大树牛</dc:creator><author>大树牛</author><pubDate>Wed, 22 Jul 2009 02:18:00 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592123</guid><description><![CDATA[那如何才能生成DataContract呢?
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">大树牛</a> 2009-07-22 10:18 <a href="http://www.cnblogs.com/seeker/archive/2009/07/22/1379732.html#1592123#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/07/21/1379732.html#1591561</link><dc:creator>Amar-Yao</dc:creator><author>Amar-Yao</author><pubDate>Tue, 21 Jul 2009 08:20:07 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/07/21/1379732.html#1591561</guid><description><![CDATA[楼上的查清问题在说话,
你的错误应该是Linq to sql实体类导致
Linq to sql实体类不能直接作为DataContract的<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">Amar-Yao</a> 2009-07-21 16:20 <a href="http://www.cnblogs.com/seeker/archive/2009/07/21/1379732.html#1591561#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/07/21/1379732.html#1591547</link><dc:creator>大树牛</dc:creator><author>大树牛</author><pubDate>Tue, 21 Jul 2009 08:12:30 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/07/21/1379732.html#1591547</guid><description><![CDATA[大侠，照你的做了，没解决问题
我的项目：
建立 web site 项目
然后 通过linq to sql 连接库，取得实体
然后 用wcf 

在 xaml里面 就只放置了 datagrid，
，发布，接着报错
如果web项目上iis上就出问题了，具体错误：

throw new Error(&quot;Unhandled Error in Silverlight Application 操作过程中出现异常，结果无效。有关异常的详细信息，请查看 InnerException。   位于 System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()\n   位于 SilverlightApplication1.ServiceReference1.DoWorkCompletedEventArgs.get_Result()\n   位于 SilverlightApplication1.MainPage.c_DoWorkCompleted(Object sender, DoWorkCompletedEventArgs e)\n   位于 SilverlightApplication1.ServiceReference1.Service1Client.OnDoWorkCompleted(Object state)&quot;);<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">大树牛</a> 2009-07-21 16:12 <a href="http://www.cnblogs.com/seeker/archive/2009/07/21/1379732.html#1591547#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/05/20/1379732.html#1532407</link><dc:creator>seeker</dc:creator><author>seeker</author><pubDate>Wed, 20 May 2009 00:41:17 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/05/20/1379732.html#1532407</guid><description><![CDATA[@Amar-Yao<br/>该异常出现，普遍是当前绑定值不存在所引发的。如果能提供你异常的代码，更容易分析。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">seeker</a> 2009-05-20 08:41 <a href="http://www.cnblogs.com/seeker/archive/2009/05/20/1379732.html#1532407#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/05/19/1379732.html#1531643</link><dc:creator>Amar-Yao</dc:creator><author>Amar-Yao</author><pubDate>Tue, 19 May 2009 04:56:45 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/05/19/1379732.html#1531643</guid><description><![CDATA[谢谢,解决了我的大问题<br/>还想问一下我的控件模版中有Source=&quot;{Binding ProductImage}&quot;，这样的绑定设置,其他图片都是些死在界面的,为什么还有Sys.InvalidOperationException: ImageError error #4001 in control 'Xaml1': AG_E_NETWORK_ERROR” 异常。<br/>这个错误,查看源代码显示Asp.Net Ajax框架未加载<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">Amar-Yao</a> 2009-05-19 12:56 <a href="http://www.cnblogs.com/seeker/archive/2009/05/19/1379732.html#1531643#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Silverlight跨域,Silverlight在IIS中部署等问题解决之道</title><link>http://www.cnblogs.com/seeker/archive/2009/01/22/1379732.html#1436872</link><dc:creator>伯乐族人 -- www.ibole.cn</dc:creator><author>伯乐族人 -- www.ibole.cn</author><pubDate>Thu, 22 Jan 2009 04:43:21 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/01/22/1379732.html#1436872</guid><description><![CDATA[好文章，你的文章已经被伯乐族收藏。你也可以通过伯乐族提交你的文章，这样有更多人能关注到你的文章。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">伯乐族人 -- www.ibole.cn</a> 2009-01-22 12:43 <a href="http://www.cnblogs.com/seeker/archive/2009/01/22/1379732.html#1436872#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: JSON与Silverlight进行数据通信</title><link>http://www.cnblogs.com/seeker/archive/2009/01/03/1365978.html#1419696</link><dc:creator>seeker</dc:creator><author>seeker</author><pubDate>Sat, 03 Jan 2009 01:15:44 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2009/01/03/1365978.html#1419696</guid><description><![CDATA[谢谢大家，也谢谢TerryLee。<br/>关键问题在于绑定发生在设置DataContext之前，所以Image路径还没有设置成你期望的值。<br/>具体源代码修改如下：<br/>   在xaml中去掉 Source=&quot;{Binding ProductImage}&quot; <br/>   private void ResponseReady(IAsyncResult asyncResult)<br/>        {<br/>            WebRequest request = asyncResult.AsyncState as WebRequest;<br/>            WebResponse response = request.EndGetResponse(asyncResult);<br/>            using (Stream responseStream = response.GetResponseStream())<br/>            {<br/><br/>                DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(ProductList));<br/>                ProductList productList = jsonSerializer.ReadObject(responseStream) as ProductList;<br/>                new Thread(() =&gt; {<br/>                    mygrid.Dispatcher.BeginInvoke(<br/>                        () =&gt;<br/>                        {<br/>                            mygrid.DataContext = productList.Products[0];<br/><br/>                         Binding binding = new Binding(&quot;ProductImage&quot;);<br/>                         rect.SetBinding(Image.SourceProperty, binding);<br/>                        }<br/><br/>                        );<br/>                }).Start();<br/>            }<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">seeker</a> 2009-01-03 09:15 <a href="http://www.cnblogs.com/seeker/archive/2009/01/03/1365978.html#1419696#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: JSON与Silverlight进行数据通信</title><link>http://www.cnblogs.com/seeker/archive/2008/12/31/1365978.html#1418537</link><dc:creator>seeker</dc:creator><author>seeker</author><pubDate>Wed, 31 Dec 2008 08:16:23 GMT</pubDate><guid>http://www.cnblogs.com/seeker/archive/2008/12/31/1365978.html#1418537</guid><description><![CDATA[@TerryLee<br/>如果是Source属性Binding问题的话，为什么我在用以下代码进行绑定也可以呢？<br/>&lt;Image x:Name=&quot;rect&quot; Stretch=&quot;Fill&quot; Canvas.Left=&quot;150&quot; Canvas.Top=&quot;130&quot; Source=&quot;{Binding ProductImage}&quot;<br/>&lt;/Image&gt; 这边绑定不变。服务端代码改成：           <br/>           Product p = new Product();<br/>            p.PinMing = &quot;test&quot;;<br/>            p.PinPai = &quot;abb&quot;;<br/>            p.Integral = 20;<br/>            p.Price = 20.65;<br/>            p.Sort1 = &quot;test&quot;;<br/>            p.Sort2 = &quot;test&quot;;<br/>            p.Sort3 = &quot;test&quot;;<br/>            p.ProductImage = &quot;images/2008-12-16_140756.jpg&quot;;<br/>            mygrid.DataContext = p;<br/>这样就可以，在页面重新加载不会出现异常。但用WebRequest去请求，就会出现该异常。虽然服务端实现不一样，但两者都是动态绑定image.为什么？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/seeker/" target="_blank">seeker</a> 2008-12-31 16:16 <a href="http://www.cnblogs.com/seeker/archive/2008/12/31/1365978.html#1418537#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
