Wrox Programmer Forums
BOOK: Professional SharePoint 2010 Administration
This is the forum to discuss the Wrox book Professional SharePoint 2010 Administration by Todd Klindt, Shane Young, Steve Caravajal; ISBN: 978-0-470-53333-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SharePoint 2010 Administration section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 22nd, 2011, 10:07 AM
Registered User
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Claims Based example in chapter 9

I am following the example to build a Claims based sharepoint site as per the directions in Chapter 9. I have followed each step, downloaded the code example components and applied them to each of the web.config files for the website, the Central Admin and the shared services. Now:

Having made the changes (i.e., inserted each code example into the correct place in each of the corresponding web.config files) my Central Admin site no longer works, it fails to display with an HTTP error 500.19' The requested page cannot be accessed because the related configuration data for the page is invalid. '

in the config source section of the error description the listed error is:

365: <add name=”SQLConnectionString” connectionString=”data source=SQL;
366: Integrated Security=SSPI;Initial Catalog=aspnetdb” />

Now, my questions:
Are these example code insertion pieces expected to work exactly as the are in the down load code example or am i supposed to make system specific changes to them? (i.e. SQL server name, system name, etc).

Has anyone else been able to get the code examples installed and running and did you have to make any specific changes to the code examples for them to work.

I am really excited about getting this all working so any help, answers, directions, etc. would be much appreciated. I am not a huge code expert, in fact not a code person at all so any tips needs to be very specific.

Prior to adding these code examples to each of the web.config files everything was working, i had created the site, could access it and could follow all of the directions with ease. Now, after making these changes neither the CA or the site work.

I look forward to, and would really appreciate, your help.

Old November 29th, 2011, 02:11 PM
Registered User
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CA site Fix

Hello about your error for 500.19 using the code found in this book - that crashes the CA site.

This is because there is 2 listings of <rolemanger>
If you open up the web.config file of the CA site and delete out the old code and just leave the books code in the CA site will load.

This is the original code
<roleManager defaultProvider="c" enabled="true" cacheRolesInCookie="false">
<add name="c" type="Microsoft.SharePoint.Administration.Claims.S PClaimsAuthRoleProvider, Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

And you have to delete this entry and REPLACE it with
<roleManager defaultProvider="AspNetWindowsTokenRoleProvider" enabled="true" cacheRolesInCookie="false">
<add connectionStringName="SQLConnectionString" applicationName="/" description="Stores and retrieves roles from SQL Server" name="SQLRoleManager" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

Now if I could only figure out what else is wrong with the bunk code that this book provided

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 - Split View-Based App johnoeffinger BOOK: Beginning iPad Application Development 4 May 21st, 2010 05:43 PM
Author claims default value can’t be set declaratively carewithl BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 14th, 2009 01:22 PM
Author claims ObjectDataSource is bound to data source before Page_Load and not after carewithl BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 13th, 2009 02:20 PM
Incorrect Error Message Claims Multiple Users SerranoG Access 3 April 27th, 2005 01:11 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.