Access is denied - dll error

  • Thread starter Thread starter Uma
  • Start date Start date
U

Uma

Hi

We have developed a C# Class Library dll which raises a error
intermittently. We get error Access is denied looked at the google
newsgroups etc., It all points to "Remove the Indexing service to specific
directory". But, Indexing service is not running in the machine.

What could be the problem ? anyone any idea... When I did deep investigation
using filemon utility ==> I found that .net is copying all dll's to some
sort of temp directory before execution and it is reading the file from temp
directory and access is denied.

Thanks
 
Uma said:
Hi

We have developed a C# Class Library dll which raises a error
intermittently. We get error Access is denied looked at the google
newsgroups etc., It all points to "Remove the Indexing service to specific
directory". But, Indexing service is not running in the machine.

What could be the problem ? anyone any idea... When I did deep investigation
using filemon utility ==> I found that .net is copying all dll's to some
sort of temp directory before execution and it is reading the file from temp
directory and access is denied.

If you are talking about an ASP.NET application, you need to grant Full Control permissions to the system user (ASPNET for IIS 5.0, Network Service for IIS 6.0) to the "%System Root%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files" folder.

You'll have to use the Advanced button and uncheck the "Inherited" checkbox. Just select Copy from the pop-up nag box and make sure the account has Full Control.

- carl
 
Back
Top