将Wcf服务从http升级到https服务 [英] upgrade Wcf service from http to https service

查看:119
本文介绍了将Wcf服务从http升级到https服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i有一个运行在http协议中的wcf服务,现在我想为我的服务增加安全性,即我希望这项服务可以工作http和https,

为此我完成了iis服务器中的配置修改,现在我需要发布web配置文件(需要知道web配置文件中的更改)。



i搜索并搜索了很多,并在我发布的webconfig文件中做了很多修改,但我总是遇到以下类型的错误



Hi all,

i have a wcf service which is running in http protocol, now i want to add security to my service i.e i want this service to work on both http and https,
for this i was done the configuration modifications in iis server, Now i need published web config file( Need to know the changes in web config file).

i was googled and searched a lot for this and done so many modifications in my published webconfig file , but i get always this following type of error

Metadata publishing for this service is currently disabled.

please help me for this and if you get any doubt reg my narration ask me i will try to give more clarification

Thanks in advance

推荐答案





你在配置中有下面的标签吗?它应与现有标签httpGetEnabled匹配。



Hi,

Do you have a tag such as below in the config? It should match the existing tag httpGetEnabled.

<servicemetadata httpsgetenabled="true" />





问候



Regards


这篇关于将Wcf服务从http升级到https服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆