• 首先添加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可以正常訪問數據庫了

最新文章

  1. 学习SpringMVC——如何获取请求参数
  2. Unity3d 残影效果(狂拽炫酷叼炸天)
  3. [Android Tips] 10. Pull out /data/data/${package_name} files without root access
  4. ORACLE 回收站导致的故障
  5. C/C++ static vs global
  6. could not open extension control file "/usr/share/postgresql/9.1/extension/plpythonu.control": No such file or directory
  7. Extjs中自定义事件
  8. 批量缩放PNG图片.
  9. (heap)239. Sliding Window Maximum
  10. Exchange 2016 体系结构
  11. 华为笔试题--LISP括号匹配 解析及源码实现
  12. OpenCV 使用光流法检测物体运动
  13. shell脚本实现并发控制
  14. leetcode70 爬楼梯 Python
  15. easyui的tree节点的获取和选中
  16. Ant使用及项目实践
  17. OC图片滑动验证
  18. EF There is already an open DataReader associated with this Command
  19. 锚点 , angular 锚点 vue锚点
  20. CSS 的优先级机制总结

热门文章

  1. 绑定服务时什么时候调用onRebind
  2. phpmywind教程:关于日期函数调用整理
  3. Django打造大型企业官网(一)
  4. openstack-wsgi的route中添加api流程具体解释(os-networks)添加
  5. Mac下intellij idea环境的项目的新建、配色、快捷键的配置
  6. JSP学习笔记七之Cookie
  7. Copy Selected Text from any window
  8. VMware14秘钥
  9. Potentiometers
  10. HDU 1394 线段树or 树状数组~