SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a sharepoint 2010 public web site , it ask a user/pass for first request after iisreset. It's working good after first request.

There is noting in windows event log, only i found in diagnostic logs a row like below

<nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.

Have any idea ?



share|improve this question
have you check the sharepoint's logs? – Salvatore Di Fazio Mar 12 '13 at 14:36

Thos error means that there is a peace of your custom code or any SharePoint element that are required an authorisation.

I suppose that you have a customized publishing site? Try to check out if there are some referenced images, documents or something similar on your page they are published.

This will be hard to track your custom code but sometimes in the code behind you need to performe some operations (access API, update, delete, insert, items etc.) which reqire you to impersonate this code. To debug your page try to select a page on which you are prompted after iis reset and try to comment peaces of your custom code before you'll find what is exactly prompting up.

Once you will find, try to see how to resolve the issue or see this post to know how to impersonate a peace of code and run this with elevated privileges.

Hope it helps,


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.