To, Christian, Rajeesh and all, Regarding to the current thread, I am currently working on this problem and found 1 intresting point. The point is I am getting this error only when my code is uploaded on the server. The same code, I have uploaded, is working smoothly on my local IIS. I think this is related to seme XML version problem?????? please help me. Thanks. Anand
Nithin Krishna
Posts
-
Gtting error while reading XML -
Gtting error while reading XMLThanks Christian & Rajeesh, Thanks for answering. Part of my xml is like this:
<termsAndConditions>Can not be sold to or used by residents of Europe, the Russian Federation and Turkey. Travel on the national rail networks of 20 European countries (Austria, Belgium, Croatia, Denmark, Finland, France, Germany, Greece, Hungary, Italy, Luxembourg, the Netherlands, Norway, Portugal, Republic of Ireland, Romania, Slovenia, Spain, Sweden and Switzerland). VALIDITIES Eurail Global Pass available for 15 days, 21 days, 1 month, 2 months or 3 months of consecutive travel. Flexipass available for 10 or 15 daysof travel in a 2 month period. AGE / SAVER DISCOUNT Saver pass available for 2 or more passengers travelling together. Youth discount: for passengers under 26 (available in 2nd Class only) Children 4-11: half-adult fare Children under 4: free (except ifa reservation for a separate seat/bed is required). OTHER RULES 7:00 p.m. rule applies Free map and timetable must be delivered to customer with purchase Pass must be validated within 6 months of issue. REFUND POLICY A 15% cancellation penalty appliesto completely unused and unvalidated passes returned within 1 year of issue date. Partially used, lost or stolen passes are non-refundable except as covered by the Rail Protection Plan (for North America only). Please refer to general conditions of use for more information</termsAndConditions> <countriesCovered> <country> <name>AUSTRIA</name> <code>AT</code> </country> <country> <name>SPAIN</name> <code>ES</code> </country> <country> <name>SWEDEN</name> <code>SE</code> </country> <country> <name>SWITZERLAND</name> <code>CH</code> </country> <country> <name>BELGIUM</name> <code>BE</code> </country> <country> <name>LUXEMBOURG</name> <code>LU</code> </country> <country> <name>NETHERLANDS</name> <code>NL</code> </country> <country> <name>REPUBLIC OF IRELAND</name> </country> <country> <name>ROMANIA</name> <code>RO</code> </country> <country> <name>DENMARK</name> <code>DK</code> </country> <country> <name>FINLAND</name> <code>FI</code> </country> <coun
-
Gtting error while reading XMLAll, I am getting follwing error while reading my XML file directly returned from web service. This occurs normally when XML have some misplaced node, but my XML is returned from webservice with few chances to have node errors. Can any one help me regarding this problem. My error page is: Server Error in '/portal' Application.-------------------------------------------------------------------------------- This is an unexpected token. The expected token is 'NAME'. Line 778, position 626. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Xml.XmlException: This is an unexpected token. The expected token is 'NAME'. Line 778, position 626. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. And my stack trace is:
[XmlException: This is an unexpected token. The expected token is 'NAME'. Line 778, position 626.] System.Xml.XmlTextReader.SetAttributeValues() +323 System.Xml.XmlTextReader.ParseElement() +138 System.Xml.XmlTextReader.Read() +94 System.Xml.XmlValidatingReader.ReadNoCollectTextToken() +38 System.Xml.XmlValidatingReader.Read() +14 System.Xml.XmlLoader.LoadCurrentNode() +612 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +49 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +102 System.Xml.XmlDocument.Load(XmlReader reader) +72 System.Xml.XmlDocument.LoadXml(String xml) +163 AI.Portal.Web.UI.RailBooking.ProcessGet() AI.Portal.Web.UI.BaseDialog.ProcessRequest() AI.Portal.Web.UI.HttpHandler.ProcessRequest(HttpContext context) System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
I am using Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407 Thanks in advance for any help. Anand -
File Scan for virus using C# !!!!!Hi Friends, I want to scan the file before upload on the server using c# and .net. Can anyone help on this. Please send me the useful link or suggestions. Thnaks and Rgds Nithin.
-
Post a html fields to a specific url?????????Hi friends, Can anyone advice me how to post some html fields to a specific url (https) using .net and c#. Thanks and Rgds Nithin
-
Switch from Http to Https??????????Hi friends, any one can advice me how i switch to http url to https using .net and c#? Suggest some articles, urls or dummy codes..... Thanks Nithin
-
Switching from http to https??????????/Hi friends, How can i switch from http to https and vice versa using c# and .net? Thanks and Rgds Nithin
-
Gnerate a pdf file using c# without using a third party product????Hi friends, How i can make a pdf file using c# with out using any 3rd party products? Please advice me.. Thanks Nithin
-
Asynchronous Web service call?How to do Asynchronous web service call (using delegates and threading)? Please advice me? Rgds Nithin
-
Session Expired Problem???????????Hi Friends, In my project i set the session expire after 20 min. But it donot take that much time, the session is expiring with in 5 min or 10 min or expiring when am working on it, can anyone tell what i can do for solve this problem? thanks & rgds Nithin
-
Setting Session id ???????????Hi Sandeep Thank u for ur reply? I don't want to change session id, i need that, how can i get it, this is 4 checking how many time the session is live through programetically rgds nithin
-
Setting Session id ???????????Hi Friends, Can I set an Id for the session?? YA Is there any id is automatically generated for session?? Please advice.. Rgds Nithin
-
SOAP Request for Apache server???Hi friends am Nithin. I had done 4 or 5 webservice using http post method and wsdl... Am facing some trouble for making the soap request(in C#) for Apache server (in java). Can any one help me how can make a soap request for this server???? Rgds Nithin Thanks
-
Problem in WSDL Webservice?????Hi Kazi, This is developed in Java J2EE environment and The SOAP Services have been implemented using Apache Axis 1.1 and their interfaces are defined via WSDL. And me accesing this using .Net and c# Rgds Nithin
-
Problem in WSDL Webservice?????Hi, Thanks 4 ur reply. Look Kazi, [System.Xml.Serialization.SoapTypeAttribute("AgentCode", "http://xml/schema/url")] public class AgentCode { } Above SoapTypeAttribute is one of the parameters of a webmethod in this wsdl. How can assign value to AgentCode Please tell me the solution
-
Problem in WSDL Webservice?????Hello friends, while acessing a SOAP Web Service am getting a error "org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize." please tell me any solution for this... Rgds, Nithin
-
How to get ASCII value for refresh button????Using c# how will we get ascii value for refresh buttun???? Please help me. Rgds Nithin
-
Refresh or back button problem???????Hi friends, am developing a webservice and one problem am facing is that when an error occured due to coding or network getting an error page, at that time pressing the refresh button again the same rquest is sending to the server. I don't want this. So suggest some ways to solve this, means how we can redirect the page to another while refereshing the page or disabling the refresh button... Please help me........ Rgds Nithin
-
Secure websiteHi friends, I need ur help........ Please guide me how to make or start to make a secure website. Please send me useful articles,links or other materials... Thanks Rgds Nithin
-
Web service AuthenticationHello friends, What is the good method for authenticate username and passwordmethod for a webservice???? please guide me .... Rgds Nithin