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 August 24th, 2007, 01:41 PM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a Custom Site Definition

Hi,

I followed the instructions in chapter 4 to create a custom site definition. After I finished I'm getting "File Not Found" in the Sharepoint Central Administration v.3. Although my front end website works fine. I created a copy of each file modified in this excercise and since I deleted my new definition and reverted back to my backup files. That did not help. I even reinstalled version 3. Any ideas where I went wrong?

Thanks.
  #2 (permalink)  
Old August 27th, 2007, 11:54 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I may be having the same issue you are. I created the custom site definition from the instructions in chapter 4. The site is created, but when I try to view it I get the following error.

The resource cannot be found

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /personal/tysonm/dev/default.aspx

Obviously my default.aspx for the custom site is not where its supposed to be. Is this file supposed to be copied to a folder like the core.js and core.css files or is a copy put into the DB when the site is partitioned?
  #3 (permalink)  
Old October 25th, 2007, 09:21 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got the same generic "File Not Found" error message as well.

If I create a new Site Defn with a default site, its OK. I deleted my work and re-created everything to no avail. I don's suppose their is a SharePoint LOG somewhere that would provide more detailed info than the File not found message.
In my [wss]\TEMPLATES\Site Templates\MySiteDefinition folder I have:

bin folder
obj folder
Properties folder
xml folder WITH ONET.XML in there
core.css
core.js
default.aspx
MySiteDefinition.csproj
MySiteDefinition.master
MySiteDefinition.sln
MySiteDefinition.suo
WEBTEMPMySiteDefinition.xml

  #4 (permalink)  
Old October 25th, 2007, 10:04 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For what it is worth. I copied the book's solution to my set of folders, re-built, and tried again to create a new site from this Site Definition and I still get the File Not Found error.

  #5 (permalink)  
Old March 26th, 2008, 08:42 AM
Registered User
 
Join Date: Mar 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has anyone resolved this issue?

  #6 (permalink)  
Old June 12th, 2008, 02:27 PM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having the same issue. I came to the site and downloaded the code until I read and realized that others even had the problem with the code from the book. It doesn't really inspire confidence in the book I will tell you that much.

  #7 (permalink)  
Old August 18th, 2008, 02:51 PM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jherschel Send a message via MSN to jherschel
Default

I have the same issue. Has anybody found a resolution to this? Is Wrox monitoring these forums?

Thanks
Jonathan Herschel

  #8 (permalink)  
Old August 18th, 2008, 08:29 PM
jminatel's Avatar
Wrox Staff
Points: 18,803, Level: 59
Points: 18,803, Level: 59 Points: 18,803, Level: 59 Points: 18,803, Level: 59
Activity: 80%
Activity: 80% Activity: 80% Activity: 80%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,943
Thanks: 72
Thanked 139 Times in 101 Posts
Default

Jonathan and others: Sorry we haven't gotten an answer for this specific question. If you'll look through the other topics in the forum, you'll see that the authors have done a pretty good job answering most, but I'm sure that's no consolation when the question you need answered isn't. I can't make any promises but I know at least one of the authors is trying to get you an answer for this.

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press

Last edited by jminatel; May 18th, 2016 at 04:15 PM.. Reason: deleted dead link
The Following User Says Thank You to jminatel For This Useful Post:
cdoherty (December 10th, 2008)
  #9 (permalink)  
Old September 7th, 2008, 10:32 PM
Registered User
 
Join Date: Jul 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Folks,

I apologize for the delay in replying. In reference to the File Not Found error:

Is it possible that those of you that are having this issue have created the project in the wrong place. What may have happened is that the webtemp file IS being deployed correctly via the post build script, which allows you to "see" your site definition as an option on the create page, but the actual default.aspx, master page and onet.xml may not be in the right place. They need to be in a folder with a name that matches exactly the "Name" attribute in your webtemp file that is placed in the [WSS]\TEMPLATE\SiteTemplates folder.

If this is not the case, please post the content of your webtemp files as well as the folder structure of your project.

Thanks,

Dan

  #10 (permalink)  
Old December 8th, 2008, 04:29 AM
Registered User
 
Join Date: Nov 2008
Location: guwahati, assam, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

Thank you to all for discuss with this subject. It is important subject.
 


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
Creating your own site using this book merlin89 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 September 22nd, 2006 11:23 AM
Creating Field Definition Files in Crystal Reports ejan Pro VB 6 0 February 4th, 2005 03:11 PM
Creating Field Definition Files ejan Pro VB 6 0 December 31st, 2004 08:15 AM
Creating Field Definition Files ejan Crystal Reports 0 December 31st, 2004 08:14 AM



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.