Solved

Webservice SoapException when targeting Framework 4

Posted on 2011-02-18
3
868 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advice in Xamarin 21 80
Regex validation 2 25
Disable extension 8 38
i have to take the screenshot of command prompt? how to do this? 1 37
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 …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

832 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