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 August 11th, 2010, 10:57 PM
Registered User
 
Join Date: Aug 2010
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Question Chapter 5:Access List with Server-side object Modle

I did the "TRY IT OUT" section(Page 164).
But I got a FileNotFoundException on SPSite site = new SPSite(""),
and it side that "using http://XXXXX:XXXX can not find a Web application".

I use Administrator and did on the Sharedpoint Server.

please hlep me!!!
  #2 (permalink)  
Old August 13th, 2010, 09:10 AM
Authorized User
 
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
Default

Are you putting a valid sharepoint site into the Site URL: field?
The Following User Says Thank You to dloker For This Useful Post:
yueyao_xu (August 19th, 2010)
  #3 (permalink)  
Old August 15th, 2010, 04:23 AM
Registered User
 
Join Date: Aug 2010
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dloker View Post
Are you putting a valid sharepoint site into the Site URL: field?
Thanks for your response.

I use a URL that can access to sharepoint site with IE.
  #4 (permalink)  
Old August 17th, 2010, 08:54 AM
Registered User
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts
Default

Quote:
Originally Posted by yueyao_xu View Post
I did the "TRY IT OUT" section(Page 164).
But I got a FileNotFoundException on SPSite site = new SPSite(""),
and it side that "using http://XXXXX:XXXX can not find a Web application".

I use Administrator and did on the Sharedpoint Server.

please hlep me!!!
i had the same problem, took me a few hours of problemsolving til i realized the solution:
1.go to project properties
2. build tab
3. target machine: 64x

worked like a charm for me, hope this helps.. no exercises in chapter 5 worked for me without a few hours of problemsolving
The Following 2 Users Say Thank You to misken For This Useful Post:
yueyao_xu (August 19th, 2010)
  #5 (permalink)  
Old August 17th, 2010, 09:56 AM
Authorized User
 
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
Default

That fixed it for me as well - don't know why the app had to be targeted specifically for x64, but then again, we're only running this on x64 boxes and the normal code production is set for x86.
The Following User Says Thank You to dloker For This Useful Post:
yueyao_xu (August 19th, 2010)
  #6 (permalink)  
Old August 18th, 2010, 01:57 AM
Registered User
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts
Default

Quote:
Originally Posted by dloker View Post
That fixed it for me as well - don't know why the app had to be targeted specifically for x64, but then again, we're only running this on x64 boxes and the normal code production is set for x86.
that is because sharepoint server can only be run on 64x machines, the target machine has to be 64x when making a client-side code running towards it, while, when making code run with serverside object model i dont think u need to change it, but it took a while to realize it, and this information should of course be in a book for us newbies in sharepoint
The Following 2 Users Say Thank You to misken For This Useful Post:
cchiang12 (November 11th, 2010), yueyao_xu (August 19th, 2010)
  #7 (permalink)  
Old August 19th, 2010, 03:52 AM
Registered User
 
Join Date: Aug 2010
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by misken View Post
i had the same problem, took me a few hours of problemsolving til i realized the solution:
1.go to project properties
2. build tab
3. target machine: 64x

worked like a charm for me, hope this helps.. no exercises in chapter 5 worked for me without a few hours of problemsolving
it works now!
Thank you very much!!
  #8 (permalink)  
Old November 11th, 2010, 04:57 PM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2010
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you Misken, I would have never figured that out... (the 64x thing).

I also noticed that I have to create the list called Products first with 3 fields in it.... I don't think the book mentioned it---edit: just look at it again, it did mention the list before the example. Maybe it should cut that and paste into the example as step 1.

Last edited by cchiang12; November 11th, 2010 at 09:20 PM..
  #9 (permalink)  
Old November 11th, 2010, 05:02 PM
Authorized User
 
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
Default

The author has created an errata list - if anybody is going through the examples, it's a good idea to check it out to see what's needing correction. Check him out at:

http://blogs.msdn.com/b/steve_fox/ar...oint-list.aspx
The Following User Says Thank You to dloker For This Useful Post:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrival of Server Side DateTime with ACCESS dubey.kuldeep Access 2 November 1st, 2005 12:37 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
server side data access rizp ASP.NET 1.0 and 1.1 Basics 3 September 6th, 2004 12:41 PM
File System Object in Server Side stalker Classic ASP Basics 2 December 22nd, 2003 09:48 AM





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