WCF RIA 错误和日志记录
我正在尝试将 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. 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
的引用
我确实添加了对Microsoft.RiaServices.Tools
,它开始工作(Fiddler 给了我一些真实的信息)
I did add a reference to
• Microsoft.RiaServices.Tools
and it started to work (Fiddler Gave me some real information)