English 中文(简体)
Consume WCF Library in银灯 4 application
原标题:Consume WCF library in Silverlight 4 application

在试图向国际独立人士联盟提出请求时发生了错误:

http://localhost:8732/Design_Time_Addresses/WCF/Service1/ . This could be due to attempting to

access a service in a cross-domain way without a proper cross-domain policy in place, or a

policy that is unsuitable for SOAP services. You may need to contact the owner of the service

to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be

sent. This error may also be caused by using internal types in the web service proxy without

using the InternalsVisibleToAttribute attribute. Please see the inner exception for more

详情。

错误出现在从胎面返回后。

我通过青少年、网站、双赢形式消费了这一轮椅,并妥善运作。

我使用WCF图书馆的2个xml文档:

  1. clientaccesspolicy.xml
  2. crossdomain.xml
问题回答

这还使我大脑受伤。

我用了这个档案。

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="SOAPAction">
        <domain uri="*"/>
      </allow-from>
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

客户名见习政策xml

骗局是你网络服务器的根基。 这就是说,你需要能够浏览档案。 在你的案件中:

http:// localhost:8732/clientaccesspolicy.xml

如果你看不到银灯,就会总是抱怨,男孩在什么时候抱怨!

我应该指出,我的政策文件不是限制性的,因此是明智的。

Oh,这个问题。 除了十字路口外,你无法从2010年VS-2010号大楼中接过,这是从这个地方东道主URL那里收集的。 发表关于贵全球合作框架的域名或服务器的银灯。 例如,如果贵国的网页服务,可在 这肯定会给你带来问题,即使有交叉政策档案。 除此之外,还确保你为你的网站整理文件。 服务是正确的。 确保所有接口都具有终端点约束力,在主要服务地点有一个主机(明显,但常见错误)。





相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签