asp提示Server 對象 錯誤 ASP 0178 : 80070005

來源:互聯網
上載者:User

尤其是剛安裝的那些組件,需要手工設定下許可權,因為為了安全考慮,許可權限制的很低。大家可以參考下面的方法設定下。

錯誤提示:
Server 對象 錯誤 'ASP 0178 : 80070005'
Server.CreateObject 訪問錯誤
../asp.asp,行 123
檢查許可權時,對 Server.CreateObject 的調用失敗。拒絕對此對象的訪問。

錯誤如提示,存在以許可權。
解決方案:
1. 調用"server.createObject("mssearch.application")"的時候發生錯誤,解決如下:
開始->運行->dcomcnfg
找到"mssearch"(這個名稱取決於你調用的Object是什麼),然後右鍵->Properties->security把三個許可權都給everyone即可,其實第一個即可.

2. 出現上述問題時,原因確實是許可權的問題。
一種解決辦法是修改IIS的匿名訪問的許可權。
第二種最簡單的辦法就是將你的組件換個地方註冊,特別是不要放到案頭或C盤的(系統硬碟)的某些特殊目錄下註冊;而應該放到如D,E等盤。原因是因為通常你的IIS所使用的帳號都是系統許可權較低的帳號,如果你是以自己的帳號登入,那麼案頭的訪問的許可權可能比IIS的帳號許可權高。

3. 查了MS的資料庫,解決的方法如下,fromaspxuexi.com asp學習網:
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.
--------------------------------------------------------------------------------

如果是本機調試:
要解決問題, 重新設定 " %ProgramFiles%\Common Files\System " 檔案夾的NTFS 許可權。 要這樣做, 請按照下列步驟操作:
1. 開啟 Windows 資源管理員。
按右鍵 開始 , 然後單擊捷徑功能表上 瀏覽 。
2. 在 檔案夾 視圖, 展開 " %ProgramFiles%\Common Files\System " 檔案夾。
3. 右擊檔案夾並單擊捷徑功能表上 屬性 。
4. 單擊 安全 選項卡。
5. 至少授予 Everyone 添加現有許可權, 讀取 許可權向 Everyone , 並這些新設定應用於所有檔案和子。
6. 單擊 確定 。

--------------------------------------------------------------------------------

如果是伺服器,給相關的dll進行everyone許可權吧。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.