Solved

Webservice SoapException when targeting Framework 4

Posted on 2011-02-18
3
858 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 74

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now