我正在尝试将 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 Loggging 工作,但服务为空,C:\Users\markgreenway\Desktop\My Dropbox\WCSynthesis\WCSynthesis.Web\Web_messages.svclog 文件也是如此
替代文字 http://web7.twitpic.com/img/48823384-d9b0438ce6a54d9286856ee83dc8447a.4b227a17-scaled.jpg
所以我无法在服务跟踪查看器中查看任何内容
我的系统诊断
<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>