服务安装

安装.bat


echo 请按任意键开始安装客户管理平台的后台服务. . .

echo.
pause
echo.


echo ,开始安装后台服务. . .
echo.
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\installutil Hosting.exe
echo 服务安装完毕,启动服务. . .
net start ServiceName>> InstallService.log
echo.
echo 操作结束,请在 InstallService.log 中查看具体的操作结果。
echo.

pause


卸载.bat


echo 请按任意键开始安装客户管理平台的后台服务. . .
echo.
pause
echo.
echo 清理原有服务项. . .
net stop ServiceName
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\installutil /U Hosting.exe >>InstallService.log
echo.
echo 清理完毕,开始安装后台服务. . .
echo.


echo.
echo 操作结束,请在 InstallService.log 中查看具体的操作结果。
echo.
pause


----------------------------client

  <system.serviceModel>
    <client> 
      <endpoint address ="net.msmq://localhost/private/Request"   binding="netMsmqBinding" bindingConfiguration="MsmgBinding"  contract="IReuest" >
      </endpoint>
    </client>    
    <bindings>    
      <netMsmqBinding>
        <binding name="MsmgBinding"  exactlyOnce="false"  maxReceivedMessageSize="2147483647" maxBufferPoolSize ="2147483647">
          <readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" maxDepth="64" />
          <security mode="None">
          </security>
        </binding>
      </netMsmqBinding>
    </bindings>
    
    <services>
      <service name="ResponseService">
        <endpoint name="EmailSmsResponseService" address="net.msmq://localhost/private/Response"
            binding="netMsmqBinding" bindingConfiguration="MsmgBinding"
            contract="IResponseService" />        
      </service>     
    </services>
  </system.serviceModel>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值