Thanks, "I think that you can only use the object model to access web apps within the same farm... (Correct me if I'm wrong devs) You may have to bite the bullet here and use the web services." I know you cant use the object model to remote servers but I thought you could on same network/domain? I have done it before using one server - I just made the two sites use the same application pool (in this case that's not possible).
I can ping the server and the telnet GET command returns this. [cid:[email protected]] Regards, Trent From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Brown Sent: Thursday, 13 November 2008 11:20 AM To: [email protected] Subject: RE: [OzMOSS] Sharepoint Object Modal to server 2 Hi Trent, Really silly question, but can Server2 ping Server1? If so, can it connect to Server1 via telnet on port 80? (start->run->cmd->telnet server1 80)? >From the look of the error message, it's more of a connectivity issue that >security/authentication/authorization/permissions. Cheers, Daniel From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trent Allday Sent: Thursday, 13 November 2008 10:42 AM To: [email protected] Subject: [OzMOSS] Sharepoint Object Modal to server 2 Hi, Hoping someone can help me out here after endless googling. I have two sharepoint MOSS environments (2 separate servers) both are on the same internal network using the same Active Directory. I am trying to lookup a sharepoint list on server 1 from server 2's sharepoint site. Below is the code snippet from the webpart on server 2. Using mysite As New SPSite("http://server1/") Using ElevatedSite As SPWeb = mysite.OpenWeb() Dim List As SPList = ElevatedSite.Lists("Associations") Dim query As SPQuery = New SPQuery() Dim items As SPListItemCollection = List.GetItems(query) 'print first column of first row HttpContext.Current.Response.Write(items(0).GetFormattedValue("Title")) ElevatedSite.AllowUnsafeUpdates = False End Using End Using I am getting the following error: The Web application at http://server1 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. I have tried chaning the identity user for the application pool on server 2 but has failed to do anything. Maybe the identity user doesn't have permissions to server1 db, but from I can see the user should!?? I could try using web services but I saw articles on the net with perople experiencing issue with that aswell... If anybody could shed some light on this it would be great. Regards, Trent ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
<<inline: image001.jpg>>
