Amit
Amit

Reputation: 1

Webservice is working in debug mode but not in release mode

I'm using a web service which works OK in debug mode. When changing to release mode, I get the following exception: There is an error in XML document (2, 567)

When looking into the inner exception, the error is:

Cannot assign object of type R_InsertionOrder.multiple_data_result to an object of type R_Creative.multiple_data_result

The call is :

res = oCreativeService.addAttach(a, b, c)

(Where res is of the same type that the oCreativeService.addAttach returns : R_Creative.multiple_data_result)

Any idea why my code fails when running in release mode?

Upvotes: 0

Views: 1882

Answers (1)

Alberto Freitas
Alberto Freitas

Reputation: 11

Edit Project-> Right Click-> Properties-> Build->Generate Serialiazation Assembly Change Value here "Auto" to Off and build on release mode it now works

Upvotes: 1

Related Questions