ServiceMetadataBehavior 的 HttpsGetEnabled 属性设置为 True,而 HttpsGetUrl 属性是相对地址,但没有 https 基址。
来源:互联网 发布:淘宝上有卖狗的吗 编辑:程序博客网 时间:2024/06/04 23:25
最近搭底层,各种报错啊:
WCF 发布,本机正常,服务器报错,信息如下:
ServiceMetadataBehavior 的 HttpsGetEnabled 属性设置为 True,而 HttpsGetUrl 属性是相对地址,但没有 https 基址。请提供 https 基址或将 HttpsGetUrl 设置为绝对地址。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.InvalidOperationException: ServiceMetadataBehavior 的 HttpsGetEnabled 属性设置为 True,而 HttpsGetUrl 属性是相对地址,但没有 https 基址。请提供 https 基址或将 HttpsGetUrl 设置为绝对地址。
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
解决办法:
<serviceBehaviors>
<behavior>
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
httpsGetEnabled="true"/ 改为:httpsGetEnabled="false"/ 即可。
0 0
- ServiceMetadataBehavior 的 HttpsGetEnabled 属性设置为 True,而 HttpsGetUrl 属性是相对地址,但没有 https 基址
- ServiceMetadataBehavior 的 HttpsGetEnabled 属性设置为 True,而 HttpsGetUrl 属性是相对地址,但没有 https 基址。
- 在VS2005中设置DIALOG的属性,将滚动条属性设置为TRUE,这样在界面中出现滚动条样式,但不能实现滚动
- The HttpsGetEnabled property of ServiceMetdataBehavior is set to true and the HttpsGetUrl property
- Ext Panel:设置Frame属性为true
- 设置SVN的needs-lock:true属性
- 没有设置数据库字段ID属性为UNSIGNED的代价
- 多对一 lazy=true 生成的是代理类,属性为null
- 设置ibatis中命名空间属性为true,才能使用!
- 代码设置控件的相对布局属性
- c#设置xml内容不换行;添加属性为xsi:nil="true"的空节点
- 使用js将标签的disable属性true设置为false
- 生僻但很实用的属性设置
- 为对象的属性设置属性值
- 获取AutoSize属性为true的Label的Size
- 使元素hasLayout属性值为true的方法
- 相对布局的属性
- 相对布局的属性
- 逆向笔记
- POJ1002 487-3279
- ActionBar学习总结
- CustomLabel
- Android Development Tools
- ServiceMetadataBehavior 的 HttpsGetEnabled 属性设置为 True,而 HttpsGetUrl 属性是相对地址,但没有 https 基址。
- Stay Hungry Stay Foolish——网络学习平台分享
- Hibernate——映射关系中的属性详解
- WCF简介
- 五个防护软件之间的对决,结局真不理想……
- Hibernate插入数据时,报错:org.springframework.dao.DataIntegrityViolationException: could not insert: [cn.itc
- 浅谈面向对象和面向过程思维
- C++ 函数参数传递-数组形参
- git 五分钟教程