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>
相关文章
- Ubuntu Server更新和打补丁
- windows server 2019服务器如何修改administrator用户名为其他的用户名
- visual studio 2022 运行项目报错:HTTP Error 500.24 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。
- H5移动端接入支付宝移动支付
- windows server 2016如何禁用IIS日志
- windows server 2016如何设置显示我的电脑回收站等图标?
- vs运行时提示:此项目已配置为使用SSL。为了避免浏览器中出现SSL警告
- windows server服务器如何查看TCP连接总数
- asp.net未能加载文件或程序集“System.Data.SQLite”或它的某一个依赖项。试图加载格式不正确的程序
- 51aspx上传一份源码需要多久才能审核完成?
文章评论
热门评论
暂无评论


VSS2005签入签出提示的设置在>打开VS,工具》选项》Source Control》环境》就可以设置了找了很久才找到.
在百度进价中创建新的计划时要选择计划类型,那么普通计划于行业定投计划有什么区别呢?行业定投计划:这种计划...
很遗憾,会生活家庭记账本软件是单机软件,你所有的数据都存在你的电脑上。设计之初是为了数据的安全性,所以...
百度二类电商度小店提交商品审核后被拒绝的原因:您提交的内容可能涉及URL主域一致性策略,不符合相关规定,请...
