asp提示Server 對(duì)象 錯(cuò)誤 ASP 0178 : 80070005
更新時(shí)間:2011年11月21日 00:38:50 作者:
今天幫客戶配置好服務(wù)器以后測(cè)試程序發(fā)現(xiàn)asp程序提示Server 對(duì)象 錯(cuò)誤 ASP 0178 : 80070005,經(jīng)測(cè)試是因?yàn)闄?quán)限問(wèn)題。
尤其是剛安裝的那些組件,需要手工設(shè)置下權(quán)限,因?yàn)闉榱税踩紤],權(quán)限限制的很低。大家可以參考下面的方法設(shè)置下。
錯(cuò)誤提示:
Server 對(duì)象 錯(cuò)誤 'ASP 0178 : 80070005'
Server.CreateObject 訪問(wèn)錯(cuò)誤
../asp.asp,行 123
檢查權(quán)限時(shí),對(duì) Server.CreateObject 的調(diào)用失敗。拒絕對(duì)此對(duì)象的訪問(wèn)。
錯(cuò)誤如提示,存在以權(quán)限。
解決方法:
1. 調(diào)用"server.createObject("mssearch.application")"的時(shí)候發(fā)生錯(cuò)誤,解決如下:
開(kāi)始->運(yùn)行->dcomcnfg
找到"mssearch"(這個(gè)名稱取決于你調(diào)用的Object是什么),然后右鍵->Properties->security把三個(gè)權(quán)限都給everyone即可,其實(shí)第一個(gè)即可.
2. 出現(xiàn)上述問(wèn)題時(shí),原因確實(shí)是權(quán)限的問(wèn)題。
一種解決辦法是修改IIS的匿名訪問(wèn)的權(quán)限。
第二種最簡(jiǎn)單的辦法就是將你的組件換個(gè)地方注冊(cè),特別是不要放到桌面或C盤(pán)的(系統(tǒng)盤(pán))的某些特殊目錄下注冊(cè);而應(yīng)該放到如D,E等盤(pán)。原因是因?yàn)橥ǔD愕腎IS所使用的帳號(hào)都是系統(tǒng)權(quán)限較低的帳號(hào),如果你是以自己的帳號(hào)登錄,那么桌面的訪問(wèn)的權(quán)限可能比IIS的帳號(hào)權(quán)限高。
3. 查了MS的資料庫(kù),解決的方法如下,fromaspxuexi.com asp學(xué)習(xí)網(wǎng):
This article was previously published under Q315454
SYMPTOMS
When you attempt to browse to an Active Server Page (ASP) database results page created in Microsoft FrontPage, you may receive an error message similar to the following:
程序代碼:
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
../config/coon.asp, line 5
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
CAUSE
This behavior can occur if incorrect NTFS permissions are defined for your "%ProgramFiles%\Common Files\System" folder.
RESOLUTION
To resolve your issue, reset the NTFS permissions on the "%ProgramFiles%\Common Files\System" folder. To do this, follow these steps:
1.. Open Windows Explorer. To do this, right-click Start and then click Explore on the shortcut menu.
2.. In Folders view, expand the "%ProgramFiles%\Common Files\System" folder.
3.. Right-click the folder and click Properties on the shortcut menu.
4.. Click the Security tab.
5.. Add Everyone to the existing permissions, give at least Read permissions to Everyone, and apply these new settings to all files and subfolders.
6.. Click OK.
--------------------------------------------------------------------------------
如果是本機(jī)調(diào)試:
要解決問(wèn)題, 重新設(shè)置 " %ProgramFiles%\Common Files\System " 文件夾的NTFS 權(quán)限。 要這樣做, 請(qǐng)按照下列步驟操作:
1. 打開(kāi) Windows 資源管理器。
右鍵單擊 開(kāi)始 , 然后單擊快捷菜單上 瀏覽 。
2. 在 文件夾 視圖, 展開(kāi) " %ProgramFiles%\Common Files\System " 文件夾。
3. 右擊文件夾并單擊快捷菜單上 屬性 。
4. 單擊 安全 選項(xiàng)卡。
5. 至少授予 Everyone 添加現(xiàn)有權(quán)限, 讀取 權(quán)限向 Everyone , 并這些新設(shè)置應(yīng)用于所有文件和子。
6. 單擊 確定 。
--------------------------------------------------------------------------------
如果是服務(wù)器,給相關(guān)的dll進(jìn)行everyone權(quán)限吧。
錯(cuò)誤提示:
Server 對(duì)象 錯(cuò)誤 'ASP 0178 : 80070005'
Server.CreateObject 訪問(wèn)錯(cuò)誤
../asp.asp,行 123
檢查權(quán)限時(shí),對(duì) Server.CreateObject 的調(diào)用失敗。拒絕對(duì)此對(duì)象的訪問(wèn)。
錯(cuò)誤如提示,存在以權(quán)限。
解決方法:
1. 調(diào)用"server.createObject("mssearch.application")"的時(shí)候發(fā)生錯(cuò)誤,解決如下:
開(kāi)始->運(yùn)行->dcomcnfg
找到"mssearch"(這個(gè)名稱取決于你調(diào)用的Object是什么),然后右鍵->Properties->security把三個(gè)權(quán)限都給everyone即可,其實(shí)第一個(gè)即可.
2. 出現(xiàn)上述問(wèn)題時(shí),原因確實(shí)是權(quán)限的問(wèn)題。
一種解決辦法是修改IIS的匿名訪問(wèn)的權(quán)限。
第二種最簡(jiǎn)單的辦法就是將你的組件換個(gè)地方注冊(cè),特別是不要放到桌面或C盤(pán)的(系統(tǒng)盤(pán))的某些特殊目錄下注冊(cè);而應(yīng)該放到如D,E等盤(pán)。原因是因?yàn)橥ǔD愕腎IS所使用的帳號(hào)都是系統(tǒng)權(quán)限較低的帳號(hào),如果你是以自己的帳號(hào)登錄,那么桌面的訪問(wèn)的權(quán)限可能比IIS的帳號(hào)權(quán)限高。
3. 查了MS的資料庫(kù),解決的方法如下,fromaspxuexi.com asp學(xué)習(xí)網(wǎng):
This article was previously published under Q315454
SYMPTOMS
When you attempt to browse to an Active Server Page (ASP) database results page created in Microsoft FrontPage, you may receive an error message similar to the following:
程序代碼:
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
../config/coon.asp, line 5
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
CAUSE
This behavior can occur if incorrect NTFS permissions are defined for your "%ProgramFiles%\Common Files\System" folder.
RESOLUTION
To resolve your issue, reset the NTFS permissions on the "%ProgramFiles%\Common Files\System" folder. To do this, follow these steps:
1.. Open Windows Explorer. To do this, right-click Start and then click Explore on the shortcut menu.
2.. In Folders view, expand the "%ProgramFiles%\Common Files\System" folder.
3.. Right-click the folder and click Properties on the shortcut menu.
4.. Click the Security tab.
5.. Add Everyone to the existing permissions, give at least Read permissions to Everyone, and apply these new settings to all files and subfolders.
6.. Click OK.
--------------------------------------------------------------------------------
如果是本機(jī)調(diào)試:
要解決問(wèn)題, 重新設(shè)置 " %ProgramFiles%\Common Files\System " 文件夾的NTFS 權(quán)限。 要這樣做, 請(qǐng)按照下列步驟操作:
1. 打開(kāi) Windows 資源管理器。
右鍵單擊 開(kāi)始 , 然后單擊快捷菜單上 瀏覽 。
2. 在 文件夾 視圖, 展開(kāi) " %ProgramFiles%\Common Files\System " 文件夾。
3. 右擊文件夾并單擊快捷菜單上 屬性 。
4. 單擊 安全 選項(xiàng)卡。
5. 至少授予 Everyone 添加現(xiàn)有權(quán)限, 讀取 權(quán)限向 Everyone , 并這些新設(shè)置應(yīng)用于所有文件和子。
6. 單擊 確定 。
--------------------------------------------------------------------------------
如果是服務(wù)器,給相關(guān)的dll進(jìn)行everyone權(quán)限吧。
相關(guān)文章
.NET中實(shí)現(xiàn)高精度定時(shí)器的思路
一個(gè)定時(shí)器至少需要考慮三部分功能:計(jì)時(shí)、等待、觸發(fā)模式。計(jì)時(shí)是進(jìn)行時(shí)間檢查,調(diào)整等待的時(shí)間;等待則是用來(lái)跳過(guò)指定的時(shí)間間隔。觸發(fā)模式是指定時(shí)器每次Tick的時(shí)間固定還是每次定時(shí)任務(wù)時(shí)間間隔固定,本文將討論高精度定時(shí)器實(shí)現(xiàn)的思路,一起看看吧2023-12-12asp在服務(wù)器把 XML 轉(zhuǎn)換為 XHTML的實(shí)現(xiàn)代碼
asp在服務(wù)器把 XML 轉(zhuǎn)換為 XHTML的實(shí)現(xiàn)代碼,需要的朋友可以參考下。2011-11-11asp下的一個(gè)很簡(jiǎn)單的驗(yàn)證碼程序
asp下的一個(gè)很簡(jiǎn)單的驗(yàn)證碼程序...2007-11-11ASP+ajax實(shí)現(xiàn)頂一下、踩一下同支持與反對(duì)的實(shí)現(xiàn)代碼
這篇文章主要介紹了ASP+ajax實(shí)現(xiàn)頂一下、踩一下同支持與反對(duì)的實(shí)現(xiàn)代碼,需要的朋友可以參考下2020-09-09Access數(shù)據(jù)庫(kù)中“所有記錄中均未找到搜索關(guān)鍵字”的解決方法
這個(gè)是Access一個(gè)天生不足的表現(xiàn),出現(xiàn)此錯(cuò)誤是因?yàn)槟愕腁ccess數(shù)據(jù)庫(kù)有錯(cuò)誤了。2008-08-08微信開(kāi)發(fā) 網(wǎng)頁(yè)授權(quán)獲取用戶基本信息
這篇文章主要介紹了微信開(kāi)發(fā) 網(wǎng)頁(yè)授權(quán)獲取用戶基本信息的相關(guān)資料,需要的朋友可以參考下2016-09-09ASP中獲得Select Count語(yǔ)句返回值的方法
這篇文章主要介紹了ASP中獲得Select Count語(yǔ)句返回值的方法,一般用在統(tǒng)計(jì)數(shù)據(jù)時(shí)使用Select Count語(yǔ)句,以此一獲得查詢到的行數(shù),需要的朋友可以參考下2014-06-06