Re: get spsite object in a different web application

2013-03-11 Thread Web Admin
; *Sent:* Monday, 11 March 2013 10:39 AM > > *To:* ozMOSS > *Subject:* Re: get spsite object in a different web application > > ** ** > > Chris, did u resolve this? > > ** ** > > On 8 March 2013 15:47, Chris Grist wrote: > > > I have not writ

RE: get spsite object in a different web application

2013-03-11 Thread Chris Grist
nope From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Web Admin Sent: Monday, 11 March 2013 10:39 AM To: ozMOSS Subject: Re: get spsite object in a different web application Chris, did u resolve this? On 8 March 2013 15:47, Chris Grist mailto:chris.gr

Re: get spsite object in a different web application

2013-03-10 Thread Web Admin
get method supports int and site name I have the URL so was > trying to see if there was a way to get it without iterating over them all. > > > > > *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On > Behalf Of *Web Admin > *Sent:* Friday

RE: get spsite object in a different web application

2013-03-07 Thread Chris Grist
-boun...@ozmoss.com] On Behalf Of Web Admin Sent: Friday, 8 March 2013 3:06 PM To: ozMOSS Subject: Re: get spsite object in a different web application Can we see the code? Still sounds like context. Is this C# or Powershell...? On 8 March 2013 15:33, Chris Grist mailto:chris.gr...@beachenergy.c

Re: get spsite object in a different web application

2013-03-07 Thread Web Admin
em all. > > > ** ** > > *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On > Behalf Of *Web Admin > *Sent:* Friday, 8 March 2013 2:49 PM > *To:* ozMOSS > *Subject:* Re: get spsite object in a different web application > > ** ** > > Get the d

RE: get spsite object in a different web application

2013-03-07 Thread Chris Grist
: get spsite object in a different web application Get the destination webapp object first, then the site. The site you're trying to access does not exist within the current context. On 8 March 2013 15:11, Chris Grist mailto:chris.gr...@beachenergy.com.au>> wrote: Hi Guys, I have w

Re: get spsite object in a different web application

2013-03-07 Thread Web Admin
Get the destination webapp object first, then the site. The site you're trying to access does not exist within the current context. On 8 March 2013 15:11, Chris Grist wrote: > Hi Guys, > > ** ** > > I have webapp1 with several Host name site collections > > ** ** > > I have webapp2 wh

get spsite object in a different web application

2013-03-07 Thread Chris Grist
Hi Guys, I have webapp1 with several Host name site collections I have webapp2 where some code is running. The code seems to die when I try to open a SPSite object based on the HNSC url. This works fine on webapp1, but on webapp2 it bombs out. Is there a neat way to get the site collection fro