当前位置:网站首页>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 .
边栏推荐
- NFT数字藏品开发:数字藏品与NFT的六大区别
- 3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system
- 程序环境和预处理
- Compose Canvas line chart
- Leetcode:1898. maximum number of removable characters [if you want to delete some IDX from a pile of things, don't use pop]
- 又是一年开源之夏,1.2万项目奖金等你来拿!
- Hcip - MPLS Technology
- Apache DolphinScheduler&TiDB联合Meetup | 聚焦开源生态发展下的应用开发能力
- It's another summer of open source. 12000 project bonuses are waiting for you!
- ShardingSphere数据分片
猜你喜欢

6、MySQL数据库的备份与恢复

NFT digital collection system development: Huawei releases the first collector's digital collection

系统架构&微服务

PG operation and maintenance -- logical backup and physical backup practice

WCF introductory tutorial II

Oauth2.0 series blog tutorial summary

NFT数字藏品开发:数字藏品与NFT的六大区别

Apache DolphinScheduler 2.X保姆级源码解析,中国移动工程师揭秘服务调度启动全流程

NFT digital collection system development: the collision of literature + Digital Collections

Taishan office lecture: word error about inconsistent values of page margins
随机推荐
HCIP---MPLS详解和BGP路由过滤
配置Flask
C语言关键字extern
Become an Apache contributor, so easy!
【C语言】你真的了解printf吗?(printf典型易错,强烈建议收藏)
Apache dolphin scheduler & tidb joint meetup | focus on application development capabilities under the development of open source ecosystem
[C language] do you really know printf? (printf is typically error prone, and collection is strongly recommended)
NFT digital collection development: digital collections help enterprise development
4、数据的完整性
NFT数字藏品系统开发:华为发布首款珍藏版数字藏品
此章节用于补充
“尝鲜”元宇宙,周杰伦最佳拍档方文山将于7月25日官宣《华流元宇宙》
C# 使用Log4Net记录日志(基础篇)
数据平台调度升级改造 | 从Azkaban 平滑过度到 Apache DolphinScheduler 的操作实践
Open source management system based on ThinkPHP
如何保证缓存和数据库的双写一致性?
July training (day 18) - tree
NFT digital collection development: Six differences between digital collections and NFT
With someone else's engine, can it be imitated?
时间序列分析预测实战之ARIMA模型