Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SharePoint > SharePoint 2010 > BOOK: Beginning SharePoint 2010 Development
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning SharePoint 2010 Development
This is the forum to discuss the Wrox book Beginning SharePoint 2010 Development by Steve Fox; ISBN: 978-0-470-58463-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning SharePoint 2010 Development 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
  #1 (permalink)  
Old July 15th, 2010, 12:01 PM
Authorized User
Points: 95, Level: 1
Points: 95, Level: 1 Points: 95, Level: 1 Points: 95, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default Setting the Master page hoses site... Page 92...

Hey ya'll. Was wondering if anyone else ran into this issue. I'm running through page 92 in the book, Customizing a Master Page.
If I use the code from Wrox_Master_Page.master, it fries the site. Did anyone else run into this? The only way I can seem to get the site running again (http://myserver) is to delete and recreate the base site...

Thoughts?
  #2 (permalink)  
Old July 15th, 2010, 01:25 PM
Authorized User
Points: 95, Level: 1
Points: 95, Level: 1 Points: 95, Level: 1 Points: 95, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default Resolved?

I believe I resolved this by setting the "default.master" page as the default again. It prompted me with "The master page you have chosen is intended for sites with a version 4 user interface. This site's user interface is currently set to 3. Would you like to change it to 4?", I clicked yes. That seems to have fixed the problem.
  #3 (permalink)  
Old July 15th, 2010, 01:38 PM
Authorized User
Points: 95, Level: 1
Points: 95, Level: 1 Points: 95, Level: 1 Points: 95, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sorry... I was wrong. It didn't resolve the problem. Seems setting it back to the default.master page worked.
  #4 (permalink)  
Old July 15th, 2010, 02:15 PM
Authorized User
Points: 95, Level: 1
Points: 95, Level: 1 Points: 95, Level: 1 Points: 95, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I believe this is related to the base version of the site. Seems that my site is Sharepoint version 4, but the UI verision for default.master is version 3! Seems if I use a master page based on UI 4, the site fails.

Any ideas folks?
  #5 (permalink)  
Old July 30th, 2010, 03:56 PM
Authorized User
 
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
Default

Did you cut and paste into the new master page, or just plop the sample into the collection?
  #6 (permalink)  
Old August 3rd, 2010, 07:11 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did the same on me. I set it back to v4.master NOT the default.master and all was fine.

First I downloaded the startermasterpages from codeplex which works but but the code didn't match what is described in the book. Then I downloaded the wrox_master_page.master and that failed when I refreshed the browser with:

Cannot find ContentPlaceHolder 'PlaceHolderLeftActions' in the master page '~masterurl/default.master'

I noticed that this message also appears if you use the ootb minimal.master as the default. So other than reading the codeplex guide on how to do this, I'm not sure. BUT I thought i'd bought this book so I don't have to search the web for examples.

Cheers
Ken
  #7 (permalink)  
Old August 3rd, 2010, 10:10 AM
Authorized User
Points: 95, Level: 1
Points: 95, Level: 1 Points: 95, Level: 1 Points: 95, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I believe you are correct. Seems the version 3 vs version 4 is the problem. I hate it when the book is wrong. I end up spinning my wheels and wasting a lot of time on book errors/ommissions in detail. But, we all make mistakes right?

Anyway, "sally forth".
  #8 (permalink)  
Old August 3rd, 2010, 10:13 AM
Authorized User
 
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
Default

I think a good deal of the book was written from the beta product.
  #9 (permalink)  
Old August 3rd, 2010, 10:24 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'll get back to the minimal version later but what I have done for now is open the v4.master in notepad, copy its contents then paste them in designer over the top of my SharePoint_2010_master. I can then modify that to add the image by finding:

SharePoint:SiteLogoImagename="onetidHeadbnnr0"id="onetidHeadbnnr2"

Then right click to set this as the default master and hey presto.

Cheers
Ken
  #10 (permalink)  
Old August 3rd, 2010, 10:25 AM
Authorized User
 
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
Default

Yeah, I cut and pasted and didn't have the same problem others have seen.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the style sheet of the Master Page dotnetDeveloper BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 August 4th, 2008 09:56 AM
Master Page Method: Code-Behind for Content Page kwilliams ASP.NET 2.0 Professional 3 June 2nd, 2008 12:57 PM
Setting Theme in Master Page rodmcleay General .NET 12 April 9th, 2008 05:24 AM
Master Page and Content Page with Java script Harjinder ASP.NET 2.0 Professional 1 February 1st, 2008 10:31 AM
Access Master page control from Content page. angshujit ASP.NET 2.0 Basics 3 January 11th, 2007 06:20 AM





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