当前位置:网站首页>WCF deployed on IIS
WCF deployed on IIS
2022-07-26 07:28:00 【51CTO】
author :jiankunking
One 、 Environmental Science vs2010,WCF Applications ,server 2008
First step :WCF Right click the item , Select build deployment package , Here's the picture :

The second step :WCF Right click item , choice : stay windows Open folder in Explorer , Here's the picture :

The third step : The second step : Find... In the file directory where your project is located Package Folder , This is where our deployment package is . In this package Under the folder is a packageTmp.


Step four : stay IIS Create a new virtual directory on , Point the physical address to this folder .
1、windows server 2008 There is no Microsoft .NET Framework 4, So you need to download it online , Manual installation , During installation, right-click to select run as administrator .
Download address : http://www.microsoft.com/zh-cn/download/details.aspx?id=17718
2、 complete .NET Framework 4 after , Restart the server
3、 stay IIS Create a new virtual directory on


Click ok , complete
4、 Fourth parts : End of deployment . You can view our deployed WCF 了 .

ha-ha , result ....

This should be the default net Wrong version , The modification method is as follows :

After modification , Right click to browse , The effect is as follows :

In the picture above http://localhost/Test.svc?wsdl That is, the service address we want to refer to .
Be careful : If you reference this machine on another machine WCF The service , Need to put localhost Replace with ip
Two 、 Environmental Science win10 vs2015
Today on this plane iis wcf When , I met the following problems :
Built wcf yes :WCF Applications , The specific code is as follows :
Interface :
Realization :
The configuration file is as follows :
The deployment steps are :


take WCF After the application is compiled dll And config, Put them in corresponding positions

But in iis When browsing in , Encountered the above three problems .
Solve the problem according to your own construction steps , I feel the problem is : Right click to create a new website . I didn't add an application under my new website , Instead, you directly point the physical path of the website to your newly created folder JianKunKingServices in . The step of adding an application under the website is missing , A series of problems have emerged , Finally, by adding your own folder JianKunKingServices Converted to application solved .
边栏推荐
- Open source management system based on ThinkPHP
- NFT digital collection system development: digital collections give new vitality to brands
- keras学习之:获取神经网络中间层的输出结果
- 「论文笔记」Next-item Recommendations in Short Sessions
- Redis migrate tool migration error.
- Hcip - MPLS Technology
- Talent column | can't use Apache dolphin scheduler? The most complete introductory tutorial written by the boss in one month [3]
- 程序环境和预处理
- NFT数字藏品系统开发:华为发布首款珍藏版数字藏品
- NFT数字藏品系统开发:文学+数字藏品的碰撞
猜你喜欢

Hcip--- MPLS detailed explanation and BGP route filtering

如何保证缓存和数据库的双写一致性?

元宇宙基础设施:WEB 3.0 chain33 优势分析
![[daily question 1] 919. Complete binary tree inserter](/img/a2/2ff77ccdfb78bb1812b989342c2331.png)
[daily question 1] 919. Complete binary tree inserter

PR subtitle production

Apache Dolphinscheduler3.0.0-beta-1 版本发布,新增FlinkSQL、Zeppelin任务类型

从Boosting谈到LamdaMART

Comparison and difference between dependence and Association

WCF 入门教程二

DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
随机推荐
Redis migrate tool migration error.
MMOE multi-objective modeling
DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
Apache dolphin scheduler version 3.0.0-beta-1 was released, and flinksql and Zeppelin task types were added
PostgreSQL sequence create alter nextval Curval numerical interval gap
MySQL installation tutorial - hands on installation
Leetcode:749. isolate virus [Unicom component + priority queue + status representation]
Become an Apache contributor, so easy!
PG operation and maintenance -- logical backup and physical backup practice
Uncover the mystery of cloud native data management: operation level
Apache DolphinScheduler 2.X保姆级源码解析,中国移动工程师揭秘服务调度启动全流程
NFT数字藏品系统开发:华为发布首款珍藏版数字藏品
QT: list box, table, tree control
OVS底层实现原理
NFT digital collection system development: activating digital cultural heritage
“尝鲜”元宇宙,周杰伦最佳拍档方文山将于7月25日官宣《华流元宇宙》
7月消息,Glassnode数据显示,Deribit上ETH永续期货合约未平仓头寸刚刚达到一个月高点237,959,827美元。
Taishan office lecture: word error about inconsistent values of page margins
漂洋过海来看你
Upgrade ecological proposition: what has Alibaba cloud brought to thousands of businesses?