473,791 Members | 3,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Erratic Error while invoking asp .net webservice

3 New Member
Hi,
I have an asp.net web page that invokes a web service. The WS searches the database for data relevant to the search critieria like date, transaction no etc.
This works fine and retirves data from the database for many search criteria.

but when I try to serach data for certain Register nos. like 129, I get an webservice error while post back. I am really confused as it works well for almost all other transactions...
I get an error like saying There is an error in XML document (1, 7699).
Pls help me out on this issue....
error details are below:
TargetSite {System.Object Deserialize(Sys tem.Xml.XmlRead er, System.String, System.Xml.Seri alization.XmlDe serializationEv ents)} System.Reflecti on.MethodBase {System.Reflect ion.RuntimeMeth odInfo}


StackTrace " at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader xmlReader, String encodingStyle, XmlDeserializat ionEvents events)\r\n at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader xmlReader, String encodingStyle)\ r\n at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)\r\n at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String methodName, Object[] parameters)\r\n at EJViewerResults .TargetEJViewer .EJViewerWS.Get EJData(DateTime ringDate, String registerNo, Int32 returnType, Int32 requestType, Int32 transNo, String searchString, Int32 maxRecNo, String authToken) in C:\\SourceCode1-10_VS2005\\EJVi ewerResults\\We b References\\Tar getEJViewer\\Re ference.cs:line 79\r\n at EJViewerResults .EJViwerResults Page.CallEJView erWS(String wsServiceUrl) in C:\\SourceCode1-10_VS2005\\EJVi ewerResults\\EJ ViewerResults.a spx.cs:line 256\r\n at EJViewerResults .EJViwerResults Page.PopulateLi stBox(String wsServiceUrl, DateTime ringDate, String registerNo, Int32 returnType, Int32 requestType, Int32 transNo, String searchString, Int32 maxRecNo) in C:\\SourceCode1-10_VS2005\\EJVi ewerResults\\EJ ViewerResults.a spx.cs:line 194" string

Inner exception:

StackTrace " at System.Xml.XmlT extReaderImpl.T hrow(Exception e)\r\n at System.Xml.XmlT extReaderImpl.T hrow(String res, String[] args)\r\n at System.Xml.XmlT extReaderImpl.T hrowInvalidChar (Int32 pos, Char invChar)\r\n at System.Xml.XmlT extReaderImpl.P arseNumericChar RefInline(Int32 startPos, Boolean expand, BufferBuilder internalSubsetB uilder, Int32& charCount, EntityType& entityType)\r\n at System.Xml.XmlT extReaderImpl.P arseCharRefInli ne(Int32 startPos, Int32& charCount, EntityType& entityType)\r\n at System.Xml.XmlT extReaderImpl.P arseText(Int32& startPos, Int32& endPos, Int32& outOrChars)\r\n at System.Xml.XmlT extReaderImpl.P arseText()\r\n at System.Xml.XmlT extReaderImpl.P arseElementCont ent()\r\n at System.Xml.XmlT extReaderImpl.R ead()\r\n at System.Xml.XmlT extReader.Read( )\r\n at System.Xml.XmlR eader.ReadEleme ntString()\r\n at Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReaderEJViewe rWS.Read2_EJDat a(Boolean isNullable, Boolean checkType)\r\n at Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReaderEJViewe rWS.Read3_GetEJ DataResponse()\ r\n at Microsoft.Xml.S erialization.Ge neratedAssembly .ArrayOfObjectS erializer1.Dese rialize(XmlSeri alizationReader reader)\r\n at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader xmlReader, String encodingStyle, XmlDeserializat ionEvents events)" string

- InnerException {"'', hexadecimal value 0x13, is an invalid character. Line 1, position 7699."} System.Exceptio n {System.Xml.Xml Exception}
Mar 21 '07 #1
0 1191

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3216
by: One's Too Many | last post by:
Ran into a strange problem today: 8.1.7 on AIX 4.3.3 Database and applications had been working fine for two years and all of a sudden a couple of regularly-run queries are now no longer coming out in correct sort order specified in the ORDER clauses of the select statements. Behavior is erratic, about half the time the sort order is correct, and the other half is not. All expected rows are being returned (no data is missing) and the...
4
2433
by: Bill Cohagan | last post by:
I'm writing a console app in c# and am encountering a strange problem. I'm trying to use redirection of the standard input stream to read input from a (xml) file. The following code snippet is from this app: =============================== static void Main(string args) { if (args.Length > 0) Console.SetIn(new StreamReader(args)); //executes if I don't use the "<", ">" redirection syntax when invoking XmlTextReader xmlin = new...
1
2110
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS) First project is a webService. Second consumes the webservices by the first.
0
1044
by: Dennis | last post by:
I thought some might be interested in an erratic error that I finally found in my program: I had a class that opened a filestream for a file which I inadvertently forgot to close after it was finished. The routine that used the class was exited and the program went on about doing other things then the filestream would again be opened to the same file by another routine to do other things with the file. Sometimes when opening the...
2
2321
by: Jack | last post by:
I want to design a server which performs some business related user authentiation, and would like to let the clients invoke it through webservice, so my first thinking is using IIS as the web server to host webservice, but then how does it interact with my server. Another invoking from IIS to my server ? no way, it should be damn slow. The problem is I want my server to control many authentiation information, so I don't want them to be...
0
1138
by: janefield2002 | last post by:
Hi there, I get the following error using Access ODBC drivers: '(unknown)' is not a valid path. make sure that the path name is spelled correctly and you are connected to the server on which the file resides access network My setup -------------
0
1318
by: janefield2002 | last post by:
Hi there, I get the following error using Access ODBC drivers: Microsoft OLE DB Provider for ODBC Drivers error '80004005' '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. My setup
1
1778
by: amollokhande1 | last post by:
Hi, I have one query regarding the webservice Invocation. I have one simple webserive. I want to invoke it in VB.Net. I have all required input like contenttype,method,namespaceuri,webservice etc. Previously I was using XMLHTTP for invoking the webservice in VB. Now I want to use features provided by the .Net. So how do I Invoke the webservice in vb.net, so that application can consume the output of webservice in the form of xml. Thanks...
3
3767
by: aswathip | last post by:
I am doing a Webservice in PHP for the first time. I have a service named as testWebService.php and testclient.php that consumes the service. Below is my testclient.php <?php require_once 'includes/nusoap.php'; $params = array('CardId' => 'sm_stu_id_001', 'DeviceIp' => '192.168.60.68' ); $client = new nusoap_client('testWebService.php',false); //+++++++++++++++++++++++++++++++++++++
0
9517
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.