国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

關于在連接數據庫時候命名管道不工作的官方解決辦法

2024-07-21 02:22:29
字體:
來源:轉載
供稿:網友
ms已經確認這是一個bug了

bug: named pipes do not work when worker process runs under aspnet account
the information in this article applies to:
microsoft asp.net (included with the .net framework)
microsoft ado.net (included with the .net framework)

this article was previously published under q315159
symptoms
under the following circumstances
an asp.net worker process (aspnet_wp.exe) runs under the default aspnet account. -and-


you do not enable impersonation on that application. -and-


you use the sql server .net data provider or the ole db .net data provider to connect to a database.
you may receive any of the following error messages:

oledbexception (0x80004005): [dbnetlib][connectionopen (connect()).]sql server does not exist or access denied.]
-or-



sqlexception (0x80004005): [dbnetlib][connectionopen (connect()).]sql server does not exist or access denied.]
-or-



system.data.sqlclient.sqlexception: sql server does not exist or access denied
-or-



system.data.oledbclient.oledbexception: sql server does not exist or access denied
cause
when the asp.net worker process runs under the aspnet account, if you do not enable impersonation for an application, all the threads that run the requests for that application run under the process account. the aspnet account cannot establish a named pipes connection to the database server.
resolution
to work around this problem, use one of the following methods:
configure the asp.net worker process to run under the system account in the <processmodel> section of the machine.config file.
enable impersonation on your asp.net application. this method works if the impersonated user has access to the computer and the database server that you are accessing.
use transmission control protocol/internet protocol (tcp/ip) instead of the named pipes protocol to connect to the database. to do this, add the following attribute to the connection string:
"network library =dbmssocn"
                        
for example:
"user id=myuserid;password=mypassword;initial catalog=pubs;data source=myserver;network library =dbmssocn"
                    
status
microsoft has confirmed that this is a bug in the microsoft products that are listed at the beginning of this article.
references
for additional information about asp.net security, click the article number below to view the article in the microsoft knowledge base:
306590 info: asp.net security overview

for more information about the <processmodel> section, refer to the following msdn documentation:
<processmodel> section
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfprocessmodelsection.asp

last reviewed: 6/14/2002
keywords: kbbug kbdatabase kbdsupport kbhttpruntime kbreadme kbsecurity kb315159
,歡迎訪問網頁設計愛好者web開發。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 澄城县| 德清县| 金川县| 左贡县| 卓资县| 翁源县| 关岭| 庆元县| 手机| 友谊县| 红桥区| 鹤壁市| 贵南县| 日喀则市| 丰台区| 澄迈县| 沭阳县| 太白县| 安乡县| 法库县| 大连市| 南部县| 多伦县| 肇州县| 当涂县| 六盘水市| 浪卡子县| 滦南县| 通道| 奎屯市| 永丰县| 桦川县| 遵化市| 亚东县| 靖西县| 通州市| 广州市| 高雄市| 且末县| 新乡市| 阜南县|