Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2004

Tip: Looking for answers? Try searching our database.

Fusion/Loader error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gursharan - 09 Oct 2004 06:45 GMT
My app supports en and ja cultures. The app fails on an Application Center
cluster and the fusion log shows 0x80070005 error (access denied). I have
checked permissions/ACLs on the assemblies, used tlist -m to check process
locks and we don't use impersonation.

Any other way to find out which access is denied?

Thanks
Junfeng Zhang[MSFT] - 10 Oct 2004 05:35 GMT
It is very hard to diagnose this kind of problems. I have debugged many
access denied errors. And most of them boil down to the following scenario:

1. You enabled shadow copy on the AppDomain.
And,
2. You have either Anti-Virus or index service enabled.
And,
3. You may have run the applications many times in a relatively short time.

The reason is related to how fusion does shadow copy. Here is exactly what
happens.

1. Say you enabled shadow copy on the AppDomain, and you load an assembly.
Fusion will first copy the assembly to a temporary directory under the
shadow copy directory, then call MoveFile to move the temporary directory to
the final location under shadow copy directory. The reason is that we want
the shadow copy to be atomic. And MoveFile gives us the atomicity.

2. If you have Anti-Virus and index service enabled, and you are unlucky,
after we have copied your assembly to the shadow copy directory, and about
to call MoveFile, Anti-Virus or index service decides to poke around the
temporary directory. Now when we call MoveFile, we get the access denied
error.

Condition (3) is not necessary. But it greatly increases the possiblity of
the error. When you read/write the same file many many times, it will alert
the anti-virus.

The fix is easy, excluding the shadow copy directory from Anti-Virus or
index service.

How do you know if you are hitting this scenario?

First, download File Monitor from http://www.sysinternals.com. Run
filemon.exe and set the filter to only trace file accesses under shadow copy
directory. Now run your applications. If you see the Access Denied
exception, you can stop the filemon tracing. Now search the filemon log for
"ACCESS DENIED". When you find it, look at the a few lines above. If the
application on the a few lines above is Anti-Virus or index service
(cisvc.exe), you know you are hitting this problem.

If this is not your case, sorry, I don't know why. You have to debug it
yourself. And you should start with filemon.

Signature

Junfeng Zhang
http://blogs.msdn.com/junfeng

This posting is provided "AS IS" with no warranties, and confers no rights.

> My app supports en and ja cultures. The app fails on an Application Center
> cluster and the fusion log shows 0x80070005 error (access denied). I have
[quoted text clipped - 4 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.