Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Gemini WebService CustomeField saving xml error

api

Hi. I want to save a custom field through the following line and I get the following error. The verion is 3.7.3. I am trying to save just a number in the custom field like 123-5 and another empty fields, not any special characters like &, <, >, " ' that the XML parser doesn't handle without encoding.

ServiceManager.CustomFieldsService.SaveCustomFieldData(CustomFieldDataEN);

Error generated: System.Xml.XmlException: '>' is an unexpected token. The expected token is '"' or '''. Line 1, position 55.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
   at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
   at System.Xml.DtdParser.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
   at System.Xml.DtdParser.ParseExternalId(Token idTokenType, Token declType, String& publicId, String& systemId)
   at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
   at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
   at System.Xml.XmlTextReaderImpl.DtdParserProxy.Parse(Boolean saveInternalSubset)
   at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   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.BaseService.GetResponse[T](String url, Object o, RequestType r)
   at CounterSoft.Gemini.WebServices.CustomFieldsService.SaveCustomFieldData(CustomFieldDataEN customFieldData)
   at Umen.JtGemini.Create.Issue.GeminiProject.SetCustomFieldValue(String bordereau, Int32 issueID, String Bordereau) in C:\Projets\Other\Umen.JtGemini\trunk\Umen.JtGemini.Create.Issue\GeminiProject.cs:line 228

I would like to know what is wrong?
Thanks.

rop
· 1
rop
Replies (2)
helpful
0
not helpful
ANSWER

This is more than likely because you have not allowed "All Verbs" in IIS for the ASHX handler for the Gemini site. Can you please check that?

Also, check Gemini's system log.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

It's strange, but this has solved the problem. Thanks.


rop
· 1
rop