乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      關于Asp程序的Server.CreateObject錯誤解決方法

       liu_jinbo 2006-09-03
      由于以前一直沒用過XP系統(tǒng)(還是在大學那會xp剛出來的時候用過,以后就一直沒用過xp,當時不喜歡它花里胡哨的界面,呵呵。),沒碰到過這樣的問題,今天在幫一個網(wǎng)友mm解決excel導入到sqlserver數(shù)據(jù)庫中遇到這樣的問題,asp代碼里無權限創(chuàng)建excel對象(偶的是XP Professional 英文版),大概是xp默認權限限制的問題,于是到百度里搜索了一下,找到了解決辦法如下:


      很多使用 IIS 架站的人 經(jīng)常碰到類似的問題。


      在Asp程序CreateObject的時候發(fā)生錯誤,大致內容為Server 對象 錯誤 ‘ASP 0178 : 80070005‘ ,這一般發(fā)生在較高版本的IIS或者Windows平臺上.
      如果你使用的是中文版,錯誤信息如下:

      程序代碼:
      Server 對象 錯誤 ‘ASP 0178 : 80070005‘

      Server.CreateObject 訪問錯誤

      ../config/coon.asp,行 5

      檢查權限時,對 Server.CreateObject 的調用失敗。拒絕對此對象的訪問。



      如果是英文版,錯誤信息如下:

      程序代碼:
      Error Type:
      Server object, ASP 0178 (0x80070005)
      The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
      ../config/coon.asp, line 5



      解決方法:

      1. 調用"server.createObject("mssearch.application")"的時候發(fā)生錯誤,解決如下:

      開始->運行->dcomcnfg

      找到"mssearch"(這個名稱取決于你調用的Object是什么),然后右鍵->Properties->security把三個權限都給everyone即可,其實第一個即可.


      2. 出現(xiàn)上述問題時,原因確實是權限的問題。

      一種解決辦法是修改IIS的匿名訪問的權限。

      第二種最簡單的辦法就是將你的組件換個地方注冊,特別是不要放到桌面或C盤的(系統(tǒng)盤)的某些特殊目錄下注冊;而應該放到如D,E等盤。原因是因為通常你的IIS所使用的賬號都是系統(tǒng)權限較低的賬號,如果你是以自己的賬號登錄,那么桌面的訪問的權限可能比IIS的賬號權限高。


      3. 查了MS的資料庫,解決的方法如下:

      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.


        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多