WCF报错[当前已禁用此服务的元数据发布]的解决方法
出现这个错误一般是你的webconfig文件里把wcp服务的配置给删除了.
解决方法就是重新添加上就好了.
代码如下:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<!--<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />-->
</system.serviceModel>
相关文章
- windows server 2016如何禁用IIS日志
- windows server 2016如何设置显示我的电脑回收站等图标?
- vs运行时提示:此项目已配置为使用SSL。为了避免浏览器中出现SSL警告
- windows server服务器如何查看TCP连接总数
- asp.net未能加载文件或程序集“System.Data.SQLite”或它的某一个依赖项。试图加载格式不正确的程序
- 51aspx上传一份源码需要多久才能审核完成?
- windows server 2012无法搜索新更新代码:80244022
- sqlite数据库:Library used incorrectly No transaction is active on this connection
- winform开发软件在线升级的实现思路(简单版)
- 此项目引用这台计算机上缺少的 NuGet 程序包。使用 NuGet 程序包还原可下载这些程序包
文章评论
热门评论
暂无评论