Error updating Issue from Custom Event Handler - **RESOLVED**
Has anyone encountered this issue before? I am trying to update an issue from a custom event handler.
I first encountered this error ...
'100' is an unexpected token. The expected token is '"' or '''. Line 20, position 65. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2) at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(Stream inStream) at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream) at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromResponse[T](Stream stream) at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.IssuesService.UpdateIssue(IssueEN issue) at Company.Gemini.Plugins.TDIssueEventListener.UpdateField(IssueEventArgs args) at Company.Gemini.Plugins.TDIssueEventListener.IssueUpdated(IssueEventArgs args) at CounterSoft.Gemini.Business.Events.GeminiEventDispatcher.PluginDelegateInvoker.<>cDisplayClass1.b0(Object func)
which I solved by granting write access to the "GeminiWebRoot\api" folder to my app pool identity.
But now I am running into the following error message:
Method requires authentication at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.IssuesService.UpdateIssue(IssueEN issue) at Company.Gemini.Plugins.TDIssueEventListener.UpdateField(IssueEventArgs args) at Company.Gemini.Plugins.TDIssueEventListener.IssueUpdated(IssueEventArgs args) at CounterSoft.Gemini.Business.Events.GeminiEventDispatcher.PluginDelegateInvoker.<>cDisplayClass1.b0(Object func)
I have tried to authenticate using Windows authentication (anonymous access is turned off in IIS):
private ServiceManager serviceManager;
serviceManager = new ServiceManager(url, userName, pwd, string.Empty, true);
I have also tried to authenticate using the apiKey method but that also generated the same error message.
Executing the same authentication/update code in the test harness (WinForms) is working as expected.
Thanks.
yu217171
· 1 |
|
Monday, November 22, 2010, 4:04:41 PM |