Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SharePoint > SharePoint 2010 > BOOK: Professional SharePoint 2010 Administration
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.

  #2 (permalink)  
Old November 29th, 2011, 02:11 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 08:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.