![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| Everytime I reach : _cfDataSet = _cf.ReadCustomFields(_cfFilter.GetXml(), false); it throws an error : "The request failed with HTTP status 401: Unaurthorized." I am using: _cf.Credentials = CredentialCache.DefaultCredentials; which logged in me with no problems. Can someone tell me what I am doing wrong? Thanks, Gene |
| Sponsored links |
| |
| ||||
| 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:
__________________ 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. |
| ||||
| Okay. Let me know how it turns out!
__________________ 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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|