On a site I am helping develop, there seems to be a problem with code executing while not logged into Sharepoint 2010.

When logged in as administrator, everything works fine on the site. Code executes as it should. However, when we visit the site without logging into SharePoint or as an account that has no privilages (same as not logging in), none of the server side code executes for certain pages. It's really weird how that happens.

Client side code still executes without a problem, but when a postback call or an OnClick is made, the server side code does not execute.

I looked online how to set the site to be accessed by anonymous users, which I did, but that didn't solve the problem. Does anyone have any ideas how to possibly fix this problem, or what the problem even is? My conclusion so far is that it has to be something in SharePoint like a setting or privilage, but I can't pinpoint it. I've played around with the Central Administration and the like but no luck.

Member Avatar for LastMitch

I looked online how to set the site to be accessed by anonymous users, which I did, but that didn't solve the problem. Does anyone have any ideas how to possibly fix this problem, or what the problem even is? My conclusion so far is that it has to be something in SharePoint like a setting or privilage, but I can't pinpoint it. I've played around with the Central Administration and the like but no luck.

You need to do this:

http://office.microsoft.com/en-us/office365-sharepoint-online-small-business-help/share-a-site-with-external-users-HA101850586.aspx

and also this code:

http://www.sharepointnutsandbolts.com/2010/09/set-object-caching-user-accounts-with.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.