[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Webservice SoapException when targeting Framework 4

Posted on 2011-02-18
3
Medium Priority
?
891 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 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

650 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