Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9
This is the forum to discuss the Wrox book Professional SharePoint 2007 Development by John Holliday, John Alexander, Jeff Julian, Eli Robillard, Brendon Schwartz, Matt Ranlett, J. Dan Attis, Adam Buenz, Tom Rizzo; ISBN: 9780470117569
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 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 July 15th, 2009, 11:14 AM
Registered User
 
Join Date: Jun 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5 - OMExample

64 bit
VS 2008
MOSS

Hi

If I attempt to run the form to create a new site I get the below error on clicking "CreateNewSiteButton".

error encountered attempting to create a new site. The language is not supported on the server

The offending line is:
Code:
SharePointWebInstance.Webs.Add(NewSiteNameTextBox.Text,
NewSiteNameTextBox.Text,
"New website added with the OMExample1 test application", 
(UInt32)System.Globalization.CultureInfo.CurrentCulture.LCID,
CurrentSiteTemplate,
false,
false);
Any thoughts please?

Thanks
Dan
  #2 (permalink)  
Old July 17th, 2009, 05:46 AM
Registered User
 
Join Date: Jun 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
(UInt32)System.Globalization.CultureInfo.CurrentCulture.LCID
returns 2057 (UK). If I hardcode this, the code fails with the same error. If I change this to 1033 (US) I get a new, exciting error:
Quote:
Originally Posted by VS 2008
Error encountered attempting to create a new site
Provisioning did not succeed. Details: Failed to initialize some site properties for Web at URL .... OriginalException: Access is denied.
As with the previous error, not much information available on the internet.
 


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 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
chapter 7 - chapter 11 pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 3 January 6th, 2008 11:40 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM



All times are GMT -4. The time now is 04:12 AM.


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