
05-29-2008, 04:07 AM
|
 | EPMFAQ Founder/Owner | | Join Date: Feb 2008 Location: Quakertown, PA
Posts: 161
Thanks: 0
Thanked 13 Times in 13 Posts
| |
If you're using the same code that I posted, then the _cf.ReadCustomFields() method call is the first time you're actually trying to connect to the PSI and do anything with it -- so, you're not actually "logged in" before this point -- you've just been getting "into position", so to speak. It is possible to generate the Proxy Class from the WSDL without actually "logging in", depending on your configuration.
A few questions to start: - Is your computer joined to the same domain as the server?
- If so, does the user account that you are logging into your computer as have a corresponding account in PWA?
- If so, does your user account have the necessary permissions for this method (as defined in the SDK) in Project Server (CreateNewProposalOrActivity, LogOnToProjectServerFromProjectProfessional, ManageEnterpriseCustomFields, ManageUsersAndGroups, ViewResourceCenter)?
- Do you have the same issue if you create a new NetworkCredential(), give it your username, password, and domain, then set it to be the credentials for the _cf Web Reference?
__________________ Stephen Sanderlin
Founder/Owner - EPMFAQ
Principal Consultant - MSProjectExperts If you found this message useful, please click the Thanks button in the post!
This electronic message, along with any information, advice, and opinions it contains, are mine alone and are not representative of my employer. All information is provided in "GOOD FAITH" and on an "AS IS" basis only. I provide no presentations or warranties, express or implied, including implied warranties of fitness for a particular purpose, merchantability, title, and noninfringement. I strongly advise you to extensively test any changes, workarounds, or techniques described herein on a development system prior to implementation in a production environment, and you are hereby notified that I bear no responsibility whatsoever for any loss, harm, or otherwise negative outcomes resulting from your actions, whether or not said actions were a result of this electronic message, directly or indirectly. |