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上传一份源码需要多久才能审核完成?
文章评论
热门评论
暂无评论


坏习惯真有那么难改吗?我有同事工作的坏习惯我跟他讲了N次了,可他就是一直改不了,到底是不想改还是改不掉?...
今年4月13日时候买了一个小莫划船机, 当时发的文章:小米有品众筹爆款小莫智能水阻划船机Pro安装心得 用了5个...
1.在要压缩的数据库上点击右键》属性》 在打开的 数据库属性 窗口的左侧导航中点击 “选项” 将 恢复模式 改...
