 |
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
|
|
|
|

July 15th, 2010, 12:01 PM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|
|

July 15th, 2010, 01:25 PM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|
|

July 15th, 2010, 01:38 PM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Sorry... I was wrong. It didn't resolve the problem. Seems setting it back to the default.master page worked.
|
|

July 15th, 2010, 02:15 PM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|
|

July 30th, 2010, 03:56 PM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
|
|
Did you cut and paste into the new master page, or just plop the sample into the collection?
|
|

August 3rd, 2010, 07:11 AM
|
|
Registered User
|
|
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 3rd, 2010, 10:10 AM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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".
|
|

August 3rd, 2010, 10:13 AM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
|
|
I think a good deal of the book was written from the beta product.
|
|

August 3rd, 2010, 10:24 AM
|
|
Registered User
|
|
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 3rd, 2010, 10:25 AM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
|
|
Yeah, I cut and pasted and didn't have the same problem others have seen.
|
|
 |
|