instance project server

C

Chriss777

Hi,
I would get the several instances of project server programmatically.
Exemple :
In the SSP of my central admin, I have 2 instances of project Server :
- http://myServerName/instance1
- http://myServerName/instance2

But how get these two url programmatically in a console application for
example ?
If someone would help me, it would be very nice because I have searched the
solution for several days but without success.

Thanks.
 
C

Chriss777

The problem is that I must create a console application which return the list
of all instances of Project Server. Indeed, this list isn't static but is
dynamic, that's why I have problems.
 
S

Stephen Sanderlin

The problem is that for most methods you need the SiteID or URL. You may
be able to find something in the site's property bag or in the SSP
itself to identify the PWA sites, but you'd probably need to use
Reflection to find and/or access it and you would need to be running the
console app on the server to access the SharePoint Object Model.
Further, you'd need to know information about the PWA site and/or the
SSP.

Things become even more complicated if you have multiple SSPs. One thing
you may be able to do is create a web service that would instantiate an
instance of SPFarm and then dig down into the SSPs and sites to pull out
the information you're looking for. Your console app could then consult
this web service. However, this will probably be a lot of work and will
likely involve at least some Reflection code.

--
Stephen Sanderlin
Principal Consultant
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read my blog at: http://www.projectserverhelp.com
Join the community at: http://forums.epmfaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top