Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 发布Silverlight应用程序后出错_C#_Silverlight_Wcf_Wcf Ria Services - Fatal编程技术网

C# 发布Silverlight应用程序后出错

C# 发布Silverlight应用程序后出错,c#,silverlight,wcf,wcf-ria-services,C#,Silverlight,Wcf,Wcf Ria Services,大家好,今天我发布了silverlight应用程序 当其启动时,会出现以下错误: 您认为连接字符串是否有问题 这是菲德勒说的 Request Count: 3 Bytes Sent: 1,224 (headers:1224; body:0) Bytes Received: 16,890 (headers:792; body:16098) URLS: /client/ClientBin/RoadTrans-Web-DataDomainService.svc/binary

大家好,今天我发布了silverlight应用程序

当其启动时,会出现以下错误: 您认为连接字符串是否有问题

这是菲德勒说的

Request Count:  3
Bytes Sent:     1,224    (headers:1224; body:0)
Bytes Received: 16,890    (headers:792; body:16098)

URLS:

/client/ClientBin/RoadTrans-Web-DataDomainService.svc/binary/GetTransFul

Statistics:

Request Count:  1
Bytes Sent:     403    (headers:403; body:0)
Bytes Received: 5,630    (headers:264; body:5366)

ACTUAL PERFORMANCE
--------------
ClientConnected:    06:22:36.697
ClientBeginRequest:    06:22:37.428
GotRequestHeaders:    06:22:37.428
ClientDoneRequest:    06:22:37.428
Determine Gateway:    0ms
DNS Lookup:         0ms
TCP/IP Connect:    0ms
HTTPS Handshake:    0ms
ServerConnected:    06:21:35.848
FiddlerBeginRequest:    06:22:37.428
ServerGotRequest:    06:22:37.428
ServerBeginResponse:    06:22:37.443
GotResponseHeaders:    06:22:37.443
ServerDoneResponse:    06:22:37.443
ClientBeginResponse:    06:22:37.443
ClientDoneResponse:    06:22:37.443

    Overall Elapsed:    00:00:00.0150009

RESPONSE CODES
--------------
HTTP/500:     1

RESPONSE BYTES (by Content-Type)
--------------
text/html:    5,366
~headers~:    264

URL:

/client/ClientBin/RoadTrans-Web-DataDomainService.svc/binary/GetPaymentWithCustomer

Statistics:

Request Count:  1
Bytes Sent:     414    (headers:414; body:0)
Bytes Received: 5,630    (headers:264; body:5366)

ACTUAL PERFORMANCE
--------------
ClientConnected:    06:22:37.443
ClientBeginRequest:    06:22:38.834
GotRequestHeaders:    06:22:38.834
ClientDoneRequest:    06:22:38.834
Determine Gateway:    0ms
DNS Lookup:         0ms
TCP/IP Connect:    0ms
HTTPS Handshake:    0ms
ServerConnected:    06:21:35.848
FiddlerBeginRequest:    06:22:38.834
ServerGotRequest:    06:22:38.834
ServerBeginResponse:    06:22:38.846
GotResponseHeaders:    06:22:38.846
ServerDoneResponse:    06:22:38.846
ClientBeginResponse:    06:22:38.846
ClientDoneResponse:    06:22:38.846

    Overall Elapsed:    00:00:00.0120006

RESPONSE CODES
--------------
HTTP/500:     1

RESPONSE BYTES (by Content-Type)
--------------
text/html:    5,366
~headers~:    264

ESTIMATED WORLDWIDE PERFORMANCE

URL:

/client/ClientBin/RoadTrans-Web-DataDomainService.svc/binary/GetCreditorFull

Statistics:

Request Count:  1
Bytes Sent:     407    (headers:407; body:0)
Bytes Received: 5,630    (headers:264; body:5366)

ACTUAL PERFORMANCE
--------------
ClientConnected:    06:22:09.870
ClientBeginRequest:    06:22:38.834
GotRequestHeaders:    06:22:38.834
ClientDoneRequest:    06:22:38.834
Determine Gateway:    0ms
DNS Lookup:         0ms
TCP/IP Connect:    2ms
HTTPS Handshake:    0ms
ServerConnected:    06:22:38.838
FiddlerBeginRequest:    06:22:38.838
ServerGotRequest:    06:22:38.838
ServerBeginResponse:    06:22:38.863
GotResponseHeaders:    06:22:38.863
ServerDoneResponse:    06:22:38.863
ClientBeginResponse:    06:22:38.863
ClientDoneResponse:    06:22:38.864

    Overall Elapsed:    00:00:00.0300017

RESPONSE CODES
--------------
HTTP/500:     1

RESPONSE BYTES (by Content-Type)
--------------
text/html:    5,366
~headers~:    264

ESTIMATED WORLDWIDE PERFORMANCE

我看到过类似的情况,因为通过网络发送的数据对于WCF来说太大了。您能否提取对hello world方法的第一个调用


顺便说一句,如果突出显示一个消息框窗口并执行CTRL-C操作,通常系统可以将erorr文本复制到剪贴板中,然后可以将其粘贴到文档中,而无需进行屏幕截图。我建议我所有的测试用户都这样做,而不是屏幕截图

我看到过类似的情况,因为通过网络发送的数据对于WCF来说太大了。您能否提取对hello world方法的第一个调用


顺便说一句,如果突出显示一个消息框窗口并执行CTRL-C操作,通常系统可以将erorr文本复制到剪贴板中,然后可以将其粘贴到文档中,而无需进行屏幕截图。我建议我所有的测试用户都这样做,而不是屏幕截图

根据错误消息,可能是在Silverlight客户端中指定的URL处找不到WCF服务。这也可能意味着WCF服务中出现了故障

有两种主要方法可以解决WCF问题,如下所示:

1) 用于跟踪silverlight客户端和WCF服务之间的通信量。这通常会显示更详细的信息,例如所使用的确切URL以及在WCF客户端看来是无效响应的IIS响应

2) 通过向web.config的配置部分添加以下块来启用详细的WCF跟踪:

  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel"
              switchValue="Information, ActivityTracing"
              propagateActivity="true">
        <listeners>
          <add name="traceListener"
              type="System.Diagnostics.XmlWriterTraceListener"
              initializeData="c:\log\WebTrace.svclog"  />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>

根据错误消息,可能是在Silverlight客户端中指定的URL处找不到WCF服务。这也可能意味着WCF服务中出现了故障

有两种主要方法可以解决WCF问题,如下所示:

1) 用于跟踪silverlight客户端和WCF服务之间的通信量。这通常会显示更详细的信息,例如所使用的确切URL以及在WCF客户端看来是无效响应的IIS响应

2) 通过向web.config的配置部分添加以下块来启用详细的WCF跟踪:

  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel"
              switchValue="Information, ActivityTracing"
              propagateActivity="true">
        <listeners>
          <add name="traceListener"
              type="System.Diagnostics.XmlWriterTraceListener"
              initializeData="c:\log\WebTrace.svclog"  />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>

在broser中打开(您的站点)/client/ClientBin/RoadTrans-Web-DataDomainService.svc时会发生什么

尝试在服务器上打开它,或者对所有客户端启用“显示错误”(在web.config中)


当您在broser中打开(您的站点)/client/ClientBin/RoadTrans-Web-DataDomainService.svc时会发生什么

尝试在服务器上打开它,或者对所有客户端启用“显示错误”(在web.config中)


投票表决。IIS中有一个配置设置,用于控制可以传输的数据量;当超过此限制时,开发人员会留下一个神秘的“未找到”错误。上传。IIS中有一个配置设置,用于控制可以传输的数据量;当超过此限制时,开发人员将出现一个神秘的“未找到”错误。我编辑了我的第一篇帖子,请帮助我,我尝试了所有内容。@Acid:我已根据fiddler的发现用其他信息更新了我的答案。我已编辑了我的第一篇帖子,请帮助我,我尝试了所有内容。@Acid:我已用其他信息更新了我的答案基于fiddler发现的信息。您发布到哪个版本的IIS?你能做一个测试silverlight应用程序(hello world)类型,它调用一个简单的Web服务…并看看它是否有效..?在哪里可以找到IIS版本?`你发布到哪个版本的IIS?你能做一个测试silverlight应用程序(hello world)类型,它调用一个简单的Web服务…并看看它是否有效..?在哪里可以找到IIS版本`