How To Track "Permission Denied" Errors on DLL Files

BB İçeriği Yasal Uyarısı Kaldırıldı

Bu makale, Microsoft'un artık destek sağlamadığı ürünler ile ilgili olarak yazılmıştır. Bu nedenle, bu makale "olduğu gibi" sunulmaktadır ve bundan sonra güncelleştirilmeyecektir.

Summary

When you try to create a component or access a method, you may receive the following error message:

Run-time Error '70': Permission Denied
Or you may receive the following error message from Active Server Pages (ASP):
Error Type:
Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions.
Access is denied to this object.
/Test/abort.asp, line 3
These errors mean that there are insufficient permissions to access a file.

More Information

To find the dynamic-link library (DLL) file on which the caller has insufficient permissions, you can trace all access to all files with the Filemon tool. Similarly, you can trace all calls that go to the registry with the Regmon tool. You can download both of these tools from the following Sysinternals location:

Steps to Capture Permission Issues

  1. Start Filemon. The tool immediately scrolls and sends a lot of information about which process is accessing which file. It also displays the results of those interactions.
  2. Reproduce the error, and click the magnifying glass on the toolbar to tell Filemon to stop logging.
  3. Save the results to a log file.
  4. In Microsoft Excel, open the log as a text file. In the wizard about how to convert the text file into a spreadsheet, click Finish.
  5. In Excel, on the Data menu, click Filter, and then click AutoFilter to filter the results.
  6. On the Results column, click Permission Denied.
In the Process column, you can see which process tried to access the file; in the Path column, you can see which file received the "Permission denied" error. You can reset the NTFS permissions on this file to resolve the problem.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Özellikler

Makale No: 286198 - Son İnceleme: 26 Ara 2006 - Düzeltme: 1

Geri bildirim