Web服务中的Web.config [英] Web.config in web service

查看:103
本文介绍了Web服务中的Web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个配置可以:



Can this configuration:

<configuration>
  <oracle.dataaccess.client>
    <add key="DllPath"            value="C:\oracle\bin"/>
    <add key="FetchSize"          value="65536"/>
    <add key="StatementCacheSize" value="10"/>
    <add key="TraceFileName"      value="c:\odpnet1.trc"/>
    <add key="TraceLevel"         value="63"/>
    <add key="TraceOption"        value="1"/>
  </oracle.dataaccess.client>
</configuration>







在web服务web.config中工作。我已经尝试过了,特别是我需要DllPath,但它不能正常工作




Work inside of a web services web.config. i have tried it and specifically I need DllPath, but it is not working

推荐答案

不确定你要做什么,但我会更改oracle.dataaccess。客户端到appSettings。然后调用ConfigurationManager.AppSettings [设置键]



http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings.aspx [ ^ ]
Not sure what you are trying to do there but I would change the oracle.dataaccess.client to appSettings. Then call ConfigurationManager.AppSettings["Key of setting"]

http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings.aspx[^]


这篇关于Web服务中的Web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆