問題解決方法: 1,最后是在沒有打sp2補丁下就安裝iis,就不會提示無法復制文件了。 2,假如已要打上了sp2補丁安裝iis,出現提示無法復制文件的時候 (1),給他一個路徑是windwos/system32里面試試(一般情況下可以找到) (2),如果不行的話就點擊開始->運行-> 復制代碼 代碼如下:esentutl /p %windir%/security/database/secedit.sdb然后會有一個警告框,確定就可以了。 總結,據查是因為microsoft的win2003打上sp2補丁后數據庫文件有損,具體原因可以在microsoft的官方網站上查到 由于要用asp寫點小程序,需要在自己的2003 sp2 的系統安裝iis,這個工作很簡單,就不描述過程了,沒想到安裝過程居然提示C:/WINDOWS/ServicePackFiles/i386里無法找到需要的文件,提示插入sp2光盤。找了張安裝這個系統時用的光盤,也沒管它是sp1還是sp2丟進光驅,再來一遍。問題依舊。 納悶了。細細想了想,我這臺機子貌似安裝2003后打過次sp2的補丁吧,莫非和這個有關系。驅貓上網,問了下google,居然真是這個問題,在某人blog里發現 立即按作者提供的方法操作 沒想到又提示錯誤 Microsoft Windows [版本 5.2.3790](C) 版權所有 1985-2003 Microsoft Corp. C:/Documents and Settings/Administrator>esentutl /p windir/security/database/secedit.sdb Microsoft(R) Windows(R) Database Utilities Version 5.2 Copyright (C) Microsoft Corporation. All Rights Reserved. Error: Access to source database 'windir/security/database/secedit.sdb' failed with Jet error -1811. Operation terminated with error -1811 (JET_errFileNotFound, File not found) after 147.500 seconds. 仔細一看,原來是路徑錯誤,無法找到數據庫。 這樣再來一遍 解決方法:開始-》運行-》esentutl /p %windir%/security/database/secedit.sdb 提示: C:/Documents and Settings/Administrator>esentutl /p %windir%/security/database/secedit.sdb Microsoft(R) Windows(R) Database UtilitiesVersion 5.2 Copyright (C) Microsoft Corporation. All Rights Reserved. Initiating REPAIR mode... Database: C:/WINDOWS/security/database/secedit.sdb Temp. Database: TEMPREPAIR44784.EDB Checking database integrity. Scanning Status (% complete) 0 10 20 30 40 50 60 70 80 90 100 |----|----|----|----|----|----|----|----|----|----| ................................................... Integrity check successful. Note: It is recommended that you immediately perform a full backup of this database. If you restore a backup made before the repair, the database will be rolled back to the state it was in at the time of that backup. Operation completed successfully in 1.984 seconds. 問題解決。