Solved

Webservice SoapException when targeting Framework 4

Posted on 2011-02-18
3
875 Views
Last Modified: 2012-05-11
I'm trying to convert our application from framework 2 to framework 4 using VS2010 and am encountering the following error at the very first call to get data via a webservice call:

A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
System.Web.Services.Protocols.SoapException: Server was unable to read request. ---> There is an error in XML document (1, 1632). ---> Column requires a valid DataType.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) ...

Code worked fine in framework 2.  I profiled the database and the call never makes it there.  Any ideas on how to debug this error?
0
Comment
Question by:Erick37
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 34930995
You typically don't have to be concerned with "first chance" exceptions as they are exceptions being handled gracefully by the runtime during debugging. See this blog entry for a description of first chance exceptions.

Are you saying it doesn't work at all (disregarding the first chance exception)?
0
 
LVL 32

Author Comment

by:Erick37
ID: 34931069
If I ignore the exception, the returned value of the webservice call (dataset) is Nothing.
0
 
LVL 32

Author Closing Comment

by:Erick37
ID: 34981992
The problem was resolved by targeting our webservice to Framework 4.  We use datatables extensively in the webservice to pass in parameters and I believe it was the differences in the datatable structures between f/w 2 and f/w 4 which caused the issue.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question