首页
IT
登录
6mi
u
盘
搜
搜 索
IT
WCF配置文件笔记
WCF配置文件笔记
xiaoxiao
2021-12-14
18
<?xml version="1.0" encoding="utf-8"?>
<
configuration
>
<
appSettings
>
<
add
key
=
"aspnet:UseTaskFriendlySynchronizationContext"
value
=
"true"
/>
<
add
key
=
"CloudTask"
value
=
"Data Source=192.168.1.250;Initial Catalog=CloudTask;User ID=sa;Pwd=201314...;"
/>
<
add
key
=
"Job_Msg"
value
=
"Data Source=192.168.1.250;Initial Catalog=Job_Msg;User ID=sa;Pwd=201314...;"
/>
</
appSettings
>
<
system.web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.5"
/>
<
httpRuntime
targetFramework
=
"4.5"
/>
</
system.web
>
<
system.serviceModel
>
<
behaviors
>
<
serviceBehaviors
>
<
behavior
name
=
"metadataSupport"
>
<
serviceMetadata
httpGetEnabled
=
"true"
httpsGetEnabled
=
"true"
/>
</
behavior
>
</
serviceBehaviors
>
</
behaviors
>
<
bindings
>
<
wsHttpBinding
>
<
binding
name
=
"NoneSecurity"
maxBufferPoolSize
=
"12000000"
maxReceivedMessageSize
=
"12000000"
useDefaultWebProxy
=
"false"
>
<
readerQuotas
maxStringContentLength
=
"12000000"
maxArrayLength
=
"12000000"
/>
<
security
mode
=
"None"
/>
</
binding
>
</
wsHttpBinding
>
</
bindings
>
<
protocolMapping
>
<
add
binding
=
"basicHttpsBinding"
scheme
=
"https"
/>
</
protocolMapping
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
multipleSiteBindingsEnabled
=
"true"
/>
<
services
>
<
service
name
=
"WcfQueue.QueueTask.TaskHandler"
behaviorConfiguration
=
"metadataSupport"
>
<
endpoint
address
=
""
binding
=
"wsHttpBinding"
bindingConfiguration
=
"NoneSecurity"
contract
=
"WcfQueue.QueueTask.ITaskHandler"
/>
</
service
>
</
services
>
</
system.serviceModel
>
<
system.webServer
>
<
modules
runAllManagedModulesForAllRequests
=
"true"
/>
<!-- 若要在调试过程中浏览 Web 应用程序根目录,请将下面的值设置为 True。 在部署之前将该值设置为 False 可避免泄露 Web 应用程序文件夹信息。 -->
<
directoryBrowse
enabled
=
"true"
/>
</
system.webServer
>
</
configuration
>
转载请注明原文地址: https://ju.6miu.com/read-971402.html
专利
最新回复
(
0
)