Welcome to MSDN Blogs Sign in | Join | Help

SharePoint Intermittent 403 Forbidden Errors

I recently encountered intermittent 403 Forbidden errors on a Windows SharePoint Services (WSS) site.  Most of the site would work, but when users accessed certain functions such as uploading a document or adding calendar items, they would receive a 403 forbidden error.  The problem appeared to be intermittent, however I was able to identify a pattern to the behavior.  If an administrator accessed the feature that caused the error, subsequent requests from non-administrators would succeed.  This behavior is typically associated with lack of permissions to the temporary folder where Asp.Net assemblies are Just In Time compiled.  To troubleshoot the issue, I used the filemon utility. 

 

8 

Filemon identified that the w3wp.exe was attempting to access the /bin directory in the context of the requesting user account through impersonation.

9

A quick check of the bin directory permissions revealed only administrators could access the bin directory, so the solution is to add server\users Read & Execute, List Folder Contents and Read permissions.

Published Friday, May 23, 2008 5:07 PM by johnwpowell

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Airline Travel » SharePoint Intermittent 403 Forbidden Errors

# re: SharePoint Intermittent 403 Forbidden Errors

Saturday, May 24, 2008 5:00 AM by stefan demetz @ decatec

Thanks,

I had this problem on some wikis after a system restore/reinstall.

Stefan

# re: SharePoint Intermittent 403 Forbidden Errors

Tuesday, June 03, 2008 10:09 AM by Da

I was having this same issue with a 2 FE WSS 3.0 farm.

I verified that users did not have that access on the bin directories for my web sites, and added it.

So far so good

Awesome John, thanks!

# re: SharePoint Intermittent 403 Forbidden Errors

Monday, July 14, 2008 5:35 AM by Lion King

I encounter similar problem. The solution you mentioned works fine!

Thank you!!

# re: SharePoint Intermittent 403 Forbidden Errors

Wednesday, July 23, 2008 10:40 AM by DM

Worked for me too on one of my customers case. Thank You!!

# re: SharePoint Intermittent 403 Forbidden Errors

Friday, September 19, 2008 8:56 AM by Stark

Thanks a lot for this, I was pulling out hair trying to solve this, didnt know where to begin. You saved my life.

# re: SharePoint Intermittent 403 Forbidden Errors

Monday, December 08, 2008 12:41 PM by Srivatsan

I have the same issue. But i dont know why it is a permission issue. There are certain pages that work and there are some that dont. And all of them are using the same DLL.

My scenario is that i have custom ASPX pages that i have put into a Sharepoint site. If the Admin logs in then it works fine. But if a non-admin logs in then it throws the 403 Forbidden error. Please let me know if there is anything else i am missing.

I dont know if i can add all the users and give them read access to the bin.

# re: SharePoint Intermittent 403 Forbidden Errors

Monday, December 08, 2008 3:08 PM by Srivatsan

As you have entioned in your article, if i ive permissions to the folder containing the web config then the application works. But why should i give this? Is there any other way of tacklng this?

# re: SharePoint Intermittent 403 Forbidden Errors

Wednesday, December 17, 2008 7:45 AM by Raveekumar

Thanks a lot. It is worked fine for me.

# re: SharePoint Intermittent 403 Forbidden Errors

Wednesday, December 17, 2008 9:22 AM by Claude

Thanks for the solution.  One of my SharePoint users in Canada has been really frustrated with this problem.  I kept giving her additional permissions in SharePoint, added her to higher level sites, and it would appear that I had fixed the problem.  However, the next day it was back again.  Your explanation helped me understand why it was intermittant and the changes to the permissions on the bin folder fixed it.

# re: SharePoint Intermittent 403 Forbidden Errors

Wednesday, April 08, 2009 5:25 AM by Filda001

Great Solution, I was concerned for several weeks. tried everything possible but had not idea about FileMon....

Congratulations...

# re: SharePoint Intermittent 403 Forbidden Errors

Tuesday, April 14, 2009 7:29 AM by Yorick

Hi John,

Some developers of ours also ran into the same issue. Although the mentioned solution works, I am wondering why this is occuring with some web parts and are others working just fine. Were you using impersonation in your code when you had to configure these permissions?

Regards,

Yorick

# re: SharePoint Intermittent 403 Forbidden Errors

Saturday, July 11, 2009 5:26 PM by Tim

Thanks so much for this - worked a treat. Excellent work!

# re: SharePoint Intermittent 403 Forbidden Errors

Friday, July 17, 2009 5:02 PM by Bryan

This post keeps on giving.  We just created a new test environment and this was the missing piece to our puzzle.

# re: SharePoint Intermittent 403 Forbidden Errors

Friday, August 14, 2009 1:31 PM by Thomas

Ahhh, thank you...  You have saved me many calls from a customer with exactly the same problem!!

# re: SharePoint Intermittent 403 Forbidden Errors

Friday, October 30, 2009 8:58 AM by Jason Hooper

The post just gave again.  Thanks so much.

# re: SharePoint Intermittent 403 Forbidden Errors

Tuesday, November 10, 2009 10:10 AM by DM

This is just awesome. 3rd time worked for one on my customer..:)

# re: SharePoint Intermittent 403 Forbidden Errors

Monday, December 07, 2009 4:26 PM by Jameel

Worked for me too after a sharepoint move to a new server farm. Thank you.

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker