Error Calling the PSI Calendar.ListCalendars Method

B

BradleyWard

I am using Project Server 2007 on a Windows Server 2003 system.

I am doing the following sequence using PSI:

1. LoginWindows.Login()
2. Calendar.ListCalendars()
3. LoginWindows.Logoff()

The LoginWindows.Login() works fine.

But when I call the Calendar.ListCalendars() method the exception shown
below is thrown. The error message in that exception is pretty worthless, but
I have noticed the following error in the Application log in the Windows
Event Viewer on the server where Project Server 2007 runs: PSI Auth: SiteId
63304633-2ebd-4fa9-8900-b822e313e12e was not found in the
ProjectSiteCollection for this SSP.

I've googled this for a couple of hours but not found anything yet.

Help!

Thanks,

Brad


Here is the exception:

System.Net.WebException : The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="http://tpslcpmdev:88/_layouts/1033/...quest failed with HTTP status 404: Not Found.">here</a>.</h2>
</body></html>

--.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at ProjectCalendar.ProjectServer2007.Calendar.Calendar.ListCalendars() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\Web
References\ProjectServer2007.Calendar\Reference.cs:line 231
at ProjectCalendar.ProjectServerAPI.DumpCalendar() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\ProjectServerAPI.cs:line 69
at ProjectCalendar.ProjectServerAPI.Execute() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\ProjectServerAPI.cs:linA first
chance exception of type 'System.Net.WebException' occurred in
System.Web.Services.dll
e 29
at ProjectCalendar.frmMain.buttonExecute_Click(Object sender, EventArgs
e) in C:\Amtrak\Source\Sandbox\ProjectCalendar\frmMain.cs:line 27
 
D

Dale Howard [MVP]

BradleyWard --

I would recommend that you repost this question in the
microsoft.public.project.developer newsgroup, as you are more likely to get
an answer in that newsgroup. Hope this helps.
 
B

BradleyWard

Thanks for the input Dave, although I do find that quite curious. This is
definitely a Project Server issue so I am curious why this newsgroup is not
the correct place? Or is it just that this newsgroup does not get as much
traffic as the other one and so more eyes will see it there?

As for this issue, I have dropped this approach so will not be following up
on it any more. But let me describe what I am up to better in hopes of this
helping someone else in the future.

We have developed an application around Project Server 2007 and Project
Professional. Part of the application includes custom enterprise calnders,
macros, and filters all stored inside Project Server. Now I need to be able
to deploy this from my development server to a production server and I was
looking for a way to do this. I spent some time in both Project Professional
and also in the PWA and did not come across any way to export this
configuration data.

So what I had decided to try was to use the PSI to read the calendar data,
then serialize to an XML file on disc. I would then ship that XML file with
my application and during the installation process I would de-serialize the
XML then create the calendar via PSI calls.

But not long after I posted this question in this forum, I came across the
Remarks section on
http://msdn.microsoft.com/en-us/library/websvccalendar.calendar.aspx that I
took to mean my approach was not valid, so I abandoned it.

But a co-worker of mine discovered this thread so I plan to try this
approach:
http://www.microsoft.com/communitie...41c-a48f-6e278361455a&lang=en&cr=US&sloc=&p=1

(if this link does not work for you, the subject of the thread is "Can
Global.mpt call Enterprise Global code in Developer ") and it is in a
Microsoft communities forum. If I run into trouble with that solution I will
probably post something on that thread instead of here.

Brad


Dale Howard said:
BradleyWard --

I would recommend that you repost this question in the
microsoft.public.project.developer newsgroup, as you are more likely to get
an answer in that newsgroup. Hope this helps.




BradleyWard said:
I am using Project Server 2007 on a Windows Server 2003 system.

I am doing the following sequence using PSI:

1. LoginWindows.Login()
2. Calendar.ListCalendars()
3. LoginWindows.Logoff()

The LoginWindows.Login() works fine.

But when I call the Calendar.ListCalendars() method the exception shown
below is thrown. The error message in that exception is pretty worthless,
but
I have noticed the following error in the Application log in the Windows
Event Viewer on the server where Project Server 2007 runs: PSI Auth:
SiteId
63304633-2ebd-4fa9-8900-b822e313e12e was not found in the
ProjectSiteCollection for this SSP.

I've googled this for a couple of hours but not found anything yet.

Help!

Thanks,

Brad


Here is the exception:

System.Net.WebException : The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="http://tpslcpmdev:88/_layouts/1033/...quest failed with HTTP status 404: Not Found.">here</a>.</h2>
</body></html>

--.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at ProjectCalendar.ProjectServer2007.Calendar.Calendar.ListCalendars()
in
C:\Amtrak\Source\Sandbox\ProjectCalendar\Web
References\ProjectServer2007.Calendar\Reference.cs:line 231
at ProjectCalendar.ProjectServerAPI.DumpCalendar() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\ProjectServerAPI.cs:line 69
at ProjectCalendar.ProjectServerAPI.Execute() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\ProjectServerAPI.cs:linA first
chance exception of type 'System.Net.WebException' occurred in
System.Web.Services.dll
e 29
at ProjectCalendar.frmMain.buttonExecute_Click(Object sender, EventArgs
e) in C:\Amtrak\Source\Sandbox\ProjectCalendar\frmMain.cs:line 27
 
G

Gary L. Chefetz

Brad:

Your co-worker also points you to the "appropriate" newsgroup for posting
Project Server "developer" questions.

--
----------
Gary L. Chefetz, MVP
MSProjectExperts
Project Server Consulting: http://www.msprojectexperts.com
Project Server Training: http://www.projectservertraining.com
Project Server FAQS: http://www.projectserverexperts.com
Project Server Help Blog: http://www.projectserverhelp.com


BradleyWard said:
Thanks for the input Dave, although I do find that quite curious. This is
definitely a Project Server issue so I am curious why this newsgroup is
not
the correct place? Or is it just that this newsgroup does not get as much
traffic as the other one and so more eyes will see it there?

As for this issue, I have dropped this approach so will not be following
up
on it any more. But let me describe what I am up to better in hopes of
this
helping someone else in the future.

We have developed an application around Project Server 2007 and Project
Professional. Part of the application includes custom enterprise calnders,
macros, and filters all stored inside Project Server. Now I need to be
able
to deploy this from my development server to a production server and I was
looking for a way to do this. I spent some time in both Project
Professional
and also in the PWA and did not come across any way to export this
configuration data.

So what I had decided to try was to use the PSI to read the calendar data,
then serialize to an XML file on disc. I would then ship that XML file
with
my application and during the installation process I would de-serialize
the
XML then create the calendar via PSI calls.

But not long after I posted this question in this forum, I came across the
Remarks section on
http://msdn.microsoft.com/en-us/library/websvccalendar.calendar.aspx that
I
took to mean my approach was not valid, so I abandoned it.

But a co-worker of mine discovered this thread so I plan to try this
approach:
http://www.microsoft.com/communitie...41c-a48f-6e278361455a&lang=en&cr=US&sloc=&p=1

(if this link does not work for you, the subject of the thread is "Can
Global.mpt call Enterprise Global code in Developer ") and it is in a
Microsoft communities forum. If I run into trouble with that solution I
will
probably post something on that thread instead of here.

Brad


Dale Howard said:
BradleyWard --

I would recommend that you repost this question in the
microsoft.public.project.developer newsgroup, as you are more likely to
get
an answer in that newsgroup. Hope this helps.




BradleyWard said:
I am using Project Server 2007 on a Windows Server 2003 system.

I am doing the following sequence using PSI:

1. LoginWindows.Login()
2. Calendar.ListCalendars()
3. LoginWindows.Logoff()

The LoginWindows.Login() works fine.

But when I call the Calendar.ListCalendars() method the exception shown
below is thrown. The error message in that exception is pretty
worthless,
but
I have noticed the following error in the Application log in the
Windows
Event Viewer on the server where Project Server 2007 runs: PSI Auth:
SiteId
63304633-2ebd-4fa9-8900-b822e313e12e was not found in the
ProjectSiteCollection for this SSP.

I've googled this for a couple of hours but not found anything yet.

Help!

Thanks,

Brad


Here is the exception:

System.Net.WebException : The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="http://tpslcpmdev:88/_layouts/1033/...quest failed with HTTP status 404: Not Found.">here</a>.</h2>
</body></html>

--.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
ProjectCalendar.ProjectServer2007.Calendar.Calendar.ListCalendars()
in
C:\Amtrak\Source\Sandbox\ProjectCalendar\Web
References\ProjectServer2007.Calendar\Reference.cs:line 231
at ProjectCalendar.ProjectServerAPI.DumpCalendar() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\ProjectServerAPI.cs:line 69
at ProjectCalendar.ProjectServerAPI.Execute() in
C:\Amtrak\Source\Sandbox\ProjectCalendar\ProjectServerAPI.cs:linA first
chance exception of type 'System.Net.WebException' occurred in
System.Web.Services.dll
e 29
at ProjectCalendar.frmMain.buttonExecute_Click(Object sender,
EventArgs
e) in C:\Amtrak\Source\Sandbox\ProjectCalendar\frmMain.cs:line 27
 

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