What are _formsweb.config files? SP2010 Claims [Access Denied]
Question
I'm hoping someone will have experience with this. I'm stumped!
I have two SharePoint 2010 (Enterprise) farms: development and production.
Each farm has 3 servers:
SPSQL-Dev, SPSQL-Prod (database servers)
SPAPP-Dev, SPAPP-Prod (central admin servers)
SPWFE-Dev, SPWFE-Prod (web front ends)
Each farm is configured with Claims Authentication (Claims users authenticate from a membership DB on each SQL server). I am not the one who set it up, sadly.
The production farm works fine.
The development farm allows me access to Central Admin with the SP admin account, but cannot access anything under the 443 web application with ANY account I've tried.
I thought about doing a farm backup with Central Administration on production, and restoring it to the development farm...but according to http://technet.microsoft.com/en-us/library/ee748642.aspx#WebConfig, the authentication changes in web.config won't be backed up, so it needs to be done within the OS.
I said "Ok"...but then I ran into a problem...
Here is what C:\inetpub\wwwroot\wss\VirtualDirectories\443 looks like for each server:
**SPAPP-Prod:** **SPAPP-Dev**
\_app_bin \_app_bin
\_forms \_forms
\_vti_pvt \_vti_pvt
\App Browsers \App Browsers
\App_GlobalResources \App_GlobalResources
\aspnet_client \aspnet_client
\bin \bin
\wpresources \wpresources
_formsweb_2011_11_2_12_21.config
_formsweb_2012_1_12_3_14.config
_formsweb_2012_5_23_9_5.config
global.asax global.asax
web.config web.config
**SPWFE-Prod:** **SPWFE-Dev**
\_forms \_app_bin
\Config-Bak \_forms
\wpresources \_vti_pvt
\App Browsers \App Browsers
\App_GlobalResources \App_GlobalResources
\aspnet_client \aspnet_client
\bin \bin
\wpresources \wpresources
_formsweb_2011_11_2_12_21.config
_formsweb_2012_1_12_3_14.config
_formsweb_2012_5_23_9_5.config
global.asax global.asax
web.config web.config
There is a web.config file ABOVE the 443 folder folder on SPWFE-Prod (in C:\inetpub\wwwroot\wss\VirtualDirectories), but it's not under the 443 directory like on the other servers.
Each of the _formsweb config files contain the following XML:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</configuration>
1) What are these _formsweb files for, and what created them?
2) Is there an easier way to copy over the Claims authentication setup from production to development?
I appreciate any advice/help that can be offered, and sincerely apologize for the extremely long text!
Solution
These configuration files always appear as soon as you create a Web Application using Claims Based Authentication. They are meant to give appropriate permissions to every visitor to your site to access to the pages enabling authentication (it basically says "Allow access to files in this folder to anyone". You can find more about options http://support.microsoft.com/kb/316871 ).
The content inside is totally ASP.NET specific (not specific only to SharePoint).
The reason they might be missing is probably related to how you created the Extended version of your application - did you used only Windows Authentication without specifying any Forms Based (Membership and Role providers in the bottom part of the screen)?