1.异常信息:由于内部错误,服务器无法处理该请求。有关该错误的详细信息,请打开服务器上的
IncludeExceptionDetailInFaults
IncludeExceptionDetailInFaults
<behaviors>
<endpointBehaviors>
<behavior name="ReportServiceRestBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
<behavior name="ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
将serviceDebug 的false改为true就可以了。
此举可以在浏览器运行时显示异常信息。
1.2未将对象引用设置到对象的实例。
文件夹安全权限配置
2.wcf_service登录失败
数据库添加用户
3.wcf_service打开数据库失败
映射数据库
4.请求通道在等待00:00:05以后答复时超时。增加传递给请求调用的超时值,或者增加绑定上的sendtimeout值。分配给此操作的时间可能已经是更长的
重启IIS服务
5.您的请求带有不合法参数,已被网站管理员设置拦截!可能原因:您提交的内容包含危险的攻击请求
关闭安全狗无效及防火墙,无效,随后卸载安全狗,恢复正常访问