安装.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>