Workspace and PSI

D

dalf

Hi all,

I'm trying to get the current workspace like in this example :
http://msdn2.microsoft.com/en-us/library/aa568778.aspx
But a WebException is raised every time at this line :
WebSvcWssInterop.WssSettingsDataSet dsCurrentWssInfo =
wssInterop.ReadWssSettings();

Error message is : object moved.

It's like I can't use ReadWssSettings.

Does someone have an idea?
Thanks you!
 
D

dalf

Answer to myself :)

I found this : http://geekswithblogs.net/MTex/archive/2008/01/22/118817.aspx
"When a PSI web service is addded in Visual Studio to a project, the chosen
web service url has the form of
http://{machinename}/pwa/_vti_bin/psi/{webservicename}.asmx but in the
app.config file and in the settings class of the project, for a reason
unknown by me the url of the web service is set to
http://{machinename}/_vti_bin/psi/{webservicename}.asmx, the /pwa part is
left out from the url.

The solution is to modify manually the generated url both in the app.config
and in the settings file (Settings.Designer.cs)."

Yes it's working, but kind of strange, why do I have to modify these 2 files
for wssInterop.asmx, but not for project.asmx.

Anyway, I hope it will help someone else :)
 
M

Mike Glen

Hi Dalf,

Thanks for making the effort to give us feedback. As you say, it might well
help someone else. :)

Mike Glen
Project MVP
 

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