asp提示Server 對象 錯誤 ASP 0178 : 80070005
更新時間:2011年11月21日 00:38:50 作者:
今天幫客戶配置好服務(wù)器以后測試程序發(fā)現(xiàn)asp程序提示Server 對象 錯誤 ASP 0178 : 80070005,經(jīng)測試是因為權(quán)限問題。
尤其是剛安裝的那些組件,需要手工設(shè)置下權(quán)限,因為為了安全考慮,權(quán)限限制的很低。大家可以參考下面的方法設(shè)置下。
錯誤提示:
Server 對象 錯誤 'ASP 0178 : 80070005'
Server.CreateObject 訪問錯誤
../asp.asp,行 123
檢查權(quán)限時,對 Server.CreateObject 的調(diào)用失敗。拒絕對此對象的訪問。
錯誤如提示,存在以權(quán)限。
解決方法:
1. 調(diào)用"server.createObject("mssearch.application")"的時候發(fā)生錯誤,解決如下:
開始->運行->dcomcnfg
找到"mssearch"(這個名稱取決于你調(diào)用的Object是什么),然后右鍵->Properties->security把三個權(quán)限都給everyone即可,其實第一個即可.
2. 出現(xiàn)上述問題時,原因確實是權(quán)限的問題。
一種解決辦法是修改IIS的匿名訪問的權(quán)限。
第二種最簡單的辦法就是將你的組件換個地方注冊,特別是不要放到桌面或C盤的(系統(tǒng)盤)的某些特殊目錄下注冊;而應(yīng)該放到如D,E等盤。原因是因為通常你的IIS所使用的帳號都是系統(tǒng)權(quán)限較低的帳號,如果你是以自己的帳號登錄,那么桌面的訪問的權(quán)限可能比IIS的帳號權(quán)限高。
3. 查了MS的資料庫,解決的方法如下,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.
--------------------------------------------------------------------------------
如果是本機調(diào)試:
要解決問題, 重新設(shè)置 " %ProgramFiles%\Common Files\System " 文件夾的NTFS 權(quán)限。 要這樣做, 請按照下列步驟操作:
1. 打開 Windows 資源管理器。
右鍵單擊 開始 , 然后單擊快捷菜單上 瀏覽 。
2. 在 文件夾 視圖, 展開 " %ProgramFiles%\Common Files\System " 文件夾。
3. 右擊文件夾并單擊快捷菜單上 屬性 。
4. 單擊 安全 選項卡。
5. 至少授予 Everyone 添加現(xiàn)有權(quán)限, 讀取 權(quán)限向 Everyone , 并這些新設(shè)置應(yīng)用于所有文件和子。
6. 單擊 確定 。
--------------------------------------------------------------------------------
如果是服務(wù)器,給相關(guān)的dll進行everyone權(quán)限吧。
錯誤提示:
Server 對象 錯誤 'ASP 0178 : 80070005'
Server.CreateObject 訪問錯誤
../asp.asp,行 123
檢查權(quán)限時,對 Server.CreateObject 的調(diào)用失敗。拒絕對此對象的訪問。
錯誤如提示,存在以權(quán)限。
解決方法:
1. 調(diào)用"server.createObject("mssearch.application")"的時候發(fā)生錯誤,解決如下:
開始->運行->dcomcnfg
找到"mssearch"(這個名稱取決于你調(diào)用的Object是什么),然后右鍵->Properties->security把三個權(quán)限都給everyone即可,其實第一個即可.
2. 出現(xiàn)上述問題時,原因確實是權(quán)限的問題。
一種解決辦法是修改IIS的匿名訪問的權(quán)限。
第二種最簡單的辦法就是將你的組件換個地方注冊,特別是不要放到桌面或C盤的(系統(tǒng)盤)的某些特殊目錄下注冊;而應(yīng)該放到如D,E等盤。原因是因為通常你的IIS所使用的帳號都是系統(tǒng)權(quán)限較低的帳號,如果你是以自己的帳號登錄,那么桌面的訪問的權(quán)限可能比IIS的帳號權(quán)限高。
3. 查了MS的資料庫,解決的方法如下,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.
--------------------------------------------------------------------------------
如果是本機調(diào)試:
要解決問題, 重新設(shè)置 " %ProgramFiles%\Common Files\System " 文件夾的NTFS 權(quán)限。 要這樣做, 請按照下列步驟操作:
1. 打開 Windows 資源管理器。
右鍵單擊 開始 , 然后單擊快捷菜單上 瀏覽 。
2. 在 文件夾 視圖, 展開 " %ProgramFiles%\Common Files\System " 文件夾。
3. 右擊文件夾并單擊快捷菜單上 屬性 。
4. 單擊 安全 選項卡。
5. 至少授予 Everyone 添加現(xiàn)有權(quán)限, 讀取 權(quán)限向 Everyone , 并這些新設(shè)置應(yīng)用于所有文件和子。
6. 單擊 確定 。
--------------------------------------------------------------------------------
如果是服務(wù)器,給相關(guān)的dll進行everyone權(quán)限吧。
相關(guān)文章
asp在服務(wù)器把 XML 轉(zhuǎn)換為 XHTML的實現(xiàn)代碼
asp在服務(wù)器把 XML 轉(zhuǎn)換為 XHTML的實現(xiàn)代碼,需要的朋友可以參考下。2011-11-11ASP+ajax實現(xiàn)頂一下、踩一下同支持與反對的實現(xiàn)代碼
這篇文章主要介紹了ASP+ajax實現(xiàn)頂一下、踩一下同支持與反對的實現(xiàn)代碼,需要的朋友可以參考下2020-09-09Access數(shù)據(jù)庫中“所有記錄中均未找到搜索關(guān)鍵字”的解決方法
這個是Access一個天生不足的表現(xiàn),出現(xiàn)此錯誤是因為你的Access數(shù)據(jù)庫有錯誤了。2008-08-08微信開發(fā) 網(wǎng)頁授權(quán)獲取用戶基本信息
這篇文章主要介紹了微信開發(fā) 網(wǎng)頁授權(quán)獲取用戶基本信息的相關(guān)資料,需要的朋友可以參考下2016-09-09