Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SharePoint 2010, Web.Config, and Forms/Claims Based Authentication question.

Posted on 2010-09-13
4
934 Views
Last Modified: 2012-05-10
Greetings all!

I've got a question, and I hope the answer is simple (don't we all!).  Before setting up claims based authentication (CBA) in our production environment, we installed SharePoint 2010 as a standalone installation on a server that was separate from the farm.  The web.config file was modified to list the membership and role providers, for FBA (Forms Based Authentication), which we then proceeded to set up CBA.

We're trying to do the same thing on our production environment, but we seem to have hit a snag...

Now, when trying to set up FBA and CBA in our production farm (which is newly upgraded from SP2007 to SP2010), the virtual directories have seem to have disappeared!  When we browse to C:\inetpub\wwwroot\wss\, there is only one virtual directory (which has a web.config file), but we've figured out (by breaking tags in the web.config file to see which sites broke) that this directory belongs to central administration.  

But when setting up claims based authentication, we need to edit more than just one web.config file (according to the steps that we followed previously).  

My colleagues and I read on a blog somewhere that a SharePoint 2010 server farm takes the web.config files and stuffs them into the database (which I guess is in preparation for fully using the .NET 4.0 framework, although this is just a rumor that I read and have no facts with which to back it up).  Regardless of that, if upgrading our 2007 Sharepoint farm to 2010 stuffed our web.config files into the database (which I'm assuming would be the SP config database?), how in the world are you supposed to read/write to it?

We found some code online for a custom .aspx page that you access via http://servername:<central admin port>/_admin/webconfig.aspx , however we weren't quite sure how to use it as it didn't actually display any information from the web.config files, nor did it let us specify which one to use.

0
Comment
Question by:ThatSharepointGuy
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:avishar
ID: 33669189
0
 
LVL 6

Author Comment

by:ThatSharepointGuy
ID: 33669340
It's worth a shot!  I'll try it in the morning.

This is what I love about the power of the internet - people have the capability to find things that others (using very similar search terms) may not!

It still gets on my nerves that, if what I'm trying to understand is true, SharePoint 2010 "virtualized" the web.config files by putting them into the database, with no direct way to view what configurations are in it, and no way to directly edit it unless you use someone's home-brew coded applications.  

It just seems like a bad way to do business.
0
 
LVL 6

Accepted Solution

by:
avishar earned 500 total points
ID: 33669475

yep, there is no direct way to view web.config you need to query using sql and for modification use SPWebConfigModification,

http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=32

http://msmvps.com/blogs/laflour/archive/2010/01/05/how-sharepoint-manages-web-config-via-spwebconfigmodification.aspx

0
 
LVL 6

Author Closing Comment

by:ThatSharepointGuy
ID: 33692859
Great job!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question