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.