错误内容:System.NullReferenceException: Object reference not set to an instance of an object.
处理方法:
- cmd中输入sfc/scannow
- 根据提示进入cbs.log查看
- 网上搜索sfc、cbs.log条目,发现问题出在文件丢失上面,于是找到以下错误,文件位于C:\Windows\WinSxS\x86_atiilhag.inf.resources_31bf3856ad364e35_6.1.7600.16385_zh-cn_abb3055a465f1ec7.manifest
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">2015-03-30 23:05:47, Error CSI 0000001f (F) STATUS_OBJECT_NAME_NOT_FOUND #469357# from Windows::Rtl::SystemImplementation::DirectFileSystemProvider::SysCreateFile(flags = (AllowSharingViolation), handle = {provider=NULL, handle=0}, da = (SYNCHRONIZE|FILE_READ_ATTRIBUTES), oa = @0x79e564->OBJECT_ATTRIBUTES {s:24; rd:NULL; on:[103]"\??\C:\Windows\WinSxS\x86_atiilhag.inf.resources_31bf3856ad364e35_6.1.7600.16385_zh-cn_abb3055a465f1ec7"; a:(OBJ_CASE_INSENSITIVE)}, iosb = @0x79e584, as = (null), fa = 0, sa = (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE), cd = FILE_OPEN, co = (FILE_SYNCHRONOUS_IO_NONALERT|0x00004000), eab = NULL, eal = 0, disp = Invalid)</span>
[gle=0xd0000034]
- 如下所示操作,但没有找到x86_atiilhag.inf.resources_31bf3856ad364e35_6.1.7600.16385_zh-cn_abb3055a465f1ec7.manifest 的good file
- 继续搜索,发现用光盘、备份可以提取好的文件,也可以直接使用光盘的系统修复功能
- 没有光盘和备份。。。,只有gho格式的
- 最后,本打算恢复系统,但搜到金山系统文件修复工具有用,抱着不行就back的心态下载了
- 意外的,顺利修复了,gogotester又能用了,youtube也能上了,这真是无心栽柳柳成荫啊~~
To determine which files could not be repaired by the System File Checker tool, follow these steps:
- Open an elevated command prompt.
- Type the following command, and then press ENTER:
findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >sfcdetails.txtNote The Sfcdetails.txt file contains details from every time that the System File Checker tool has been run on the computer. The file includes information about files that were not repaired by the System File Checker tool. Verify the date and time entries to determine the problem files that were found the last time that you ran the System File Checker tool.
- Type the following command, and then press ENTER:
edit sfcdetails.txtThe Sfcdetails.txt file uses the following format:Date/Time SFC detail
To fix/replace follow steps below:
- At an elevated command prompt, type the following command, and then press ENTER:
takeown /f Path_And_File_NameFor example, type takeown /f E:\windows\system32\jscript.dll.
- Type the following command, and then press ENTER to grant administrators full access to the file:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:FFor example, type icacls E:\windows\system32\jscript.dll /grant administrators:F.
- Type the following command to replace the file with a known good copy of the file:
Copy Path_And_File_Name_Of_Source_File Path_And_File_Name_Of_DestinationFor example, type copy E:\temp\jscript.dll E:\windows\system32\jscript.dll.