使用WAS寄宿net.tcp WCF服務
2024-09-30 21:30:15
- 首先添加Windows Features
- 確保打開以下服務
Net.Tcp Listener Adapter
Net.Tcp Port Sharing Service
Windows Process Activation Service
- 在網站的高級設置中添加net.tcp協議
- 把WCF類庫項目進行發佈,在IIS中新建一個Application,路徑指定到發佈目錄。
確保web.config中address爲net.tcp://localhost/Application名稱/發佈的服務名稱.svc
至此服務已經部署完畢,客戶端可以正常訪問了。如果要訪問數據庫,還需要做額外的設置。
原因是DefaultAppPool使用ApplicationPoolIdentity,無法直接訪問數據庫,需要爲其在SQL Server中添加一個登錄項
在Security – Login中添加一個名爲IIS APPPOOL\DefaultAppPool的登錄項
在User Mapping中爲需要訪問的數據庫添加讀寫權限,至此WAS可以正常訪問數據庫了
最新文章
- 学习SpringMVC——如何获取请求参数
- Unity3d 残影效果(狂拽炫酷叼炸天)
- [Android Tips] 10. Pull out /data/data/${package_name} files without root access
- ORACLE 回收站导致的故障
- C/C++ static vs global
- could not open extension control file ";/usr/share/postgresql/9.1/extension/plpythonu.control";: No such file or directory
- Extjs中自定义事件
- 批量缩放PNG图片.
- (heap)239. Sliding Window Maximum
- Exchange 2016 体系结构
- 华为笔试题--LISP括号匹配 解析及源码实现
- OpenCV 使用光流法检测物体运动
- shell脚本实现并发控制
- leetcode70 爬楼梯 Python
- easyui的tree节点的获取和选中
- Ant使用及项目实践
- OC图片滑动验证
- EF There is already an open DataReader associated with this Command
- 锚点 , angular 锚点 vue锚点
- CSS 的优先级机制总结