WCF RIA 错误和日志记录

发布于 2024-08-14 04:49:30 字数 3064 浏览 1 评论 0原文

我正在尝试将 WCF RIA 服务添加到现有网站。

当我加载页面时,我收到“查询加载操作失败”消息,

我启动 fiddler2 并获取
找不到资源。

<body bgcolor="white">

        <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

        <h2> <i>The resource cannot be found.</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.
        <br><br>

        <b> Requested URL: </b>/Services/WCSynthesis-Web-WCSynthDomainService.svc/binary<br><br>

        <hr width=100% size=1 color=silver>

然后我尝试让 WCF 日志记录工作 但服务是空的,也是空的 C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_messages.svclog 文件

替代文本 http://web7.twitpic.com/img/48823384 -d9b0438ce6a54d9286856ee83dc8447a.4b227a17-scaled.jpg

服务跟踪查看器中查看任何内容

所以我无法在System.Diagnostics 的

  <system.diagnostics>
<sources>
  <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
    <listeners>
      <add type="System.Diagnostics.DefaultTraceListener" name="Default">
        <filter type="" />
      </add>
      <add name="ServiceModelMessageLoggingListener">
        <filter type="" />
      </add>
    </listeners>
  </source>
  <source propagateActivity="true" name="System.ServiceModel" switchValue="Warning, ActivityTracing">
    <listeners>
      <add type="System.Diagnostics.DefaultTraceListener" name="Default">
        <filter type="" />
      </add>
      <add name="ServiceModelTraceListener">
        <filter type="" />
      </add>
    </listeners>
  </source>
</sources>
<sharedListeners>
  <add initializeData="C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_messages.svclog"
    type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
    <filter type="" />
  </add>
  <add initializeData="C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_tracelog.svclog"
    type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
    <filter type="" />
  </add>
</sharedListeners>

I am trying to add a WCF RIA service to an existing website.

When I load the page I get a "Load Operation failed for query"

I fire up fiddler2 and get

The resource cannot be found.

<body bgcolor="white">

        <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

        <h2> <i>The resource cannot be found.</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
        <br><br>

        <b> Requested URL: </b>/Services/WCSynthesis-Web-WCSynthDomainService.svc/binary<br><br>

        <hr width=100% size=1 color=silver>

So then I try to get the WCF Loggging working
but the Services is empty and so is the
C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_messages.svclog
File

alt text http://web7.twitpic.com/img/48823384-d9b0438ce6a54d9286856ee83dc8447a.4b227a17-scaled.jpg

So I cannot view anything in the Service Trace Viewer

my System.Diagnostics

  <system.diagnostics>
<sources>
  <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
    <listeners>
      <add type="System.Diagnostics.DefaultTraceListener" name="Default">
        <filter type="" />
      </add>
      <add name="ServiceModelMessageLoggingListener">
        <filter type="" />
      </add>
    </listeners>
  </source>
  <source propagateActivity="true" name="System.ServiceModel" switchValue="Warning, ActivityTracing">
    <listeners>
      <add type="System.Diagnostics.DefaultTraceListener" name="Default">
        <filter type="" />
      </add>
      <add name="ServiceModelTraceListener">
        <filter type="" />
      </add>
    </listeners>
  </source>
</sources>
<sharedListeners>
  <add initializeData="C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_messages.svclog"
    type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
    <filter type="" />
  </add>
  <add initializeData="C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_tracelog.svclog"
    type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
    <filter type="" />
  </add>
</sharedListeners>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

獨角戲 2024-08-21 04:49:30

的引用

我确实添加了对Microsoft.RiaServices.Tools

,它开始工作(Fiddler 给了我一些真实的信息)

I did add a reference to

• Microsoft.RiaServices.Tools

and it started to work (Fiddler Gave me some real information)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文