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

August 11th, 2010, 10:57 PM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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!!!
|
|

August 13th, 2010, 09:10 AM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
|
|
Are you putting a valid sharepoint site into the Site URL: field?
|
|
The Following User Says Thank You to dloker For This Useful Post:
|
|
|

August 15th, 2010, 04:23 AM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by dloker
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.
|
|

August 17th, 2010, 08:54 AM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts
|
|
Quote:
Originally Posted by yueyao_xu
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:
|
|
|

August 17th, 2010, 09:56 AM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
|
|
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:
|
|
|

August 18th, 2010, 01:57 AM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts
|
|
Quote:
Originally Posted by dloker
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:
|
|
|

August 19th, 2010, 03:52 AM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by misken
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!!
|
|

November 11th, 2010, 04:57 PM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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..
|
|

November 11th, 2010, 05:02 PM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 18
Thanks: 0
Thanked 6 Times in 5 Posts
|
|
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:
|
|
|
 |
|