Last post Nov 14, 2013 03:30 AM by Illeris
Nov 14, 2013 02:30 AM|pinoyz|LINK
Hi to All,
I'm having a problem in my Unit Test. We have two webservice (service A and service B) and I'm currenly working on the service B, this service connects to the service A and when I'm doing unit testing it throws an common language runtime error and I need
to mark my unit test to pass.
PS. It actually work when I consume the service A if I actually run the application
Nov 14, 2013 02:40 AM|Siva Krishna Macha|LINK
Try by putting try with empty catch block.
// No code blocks. Just to suppress the error.
Nov 14, 2013 03:01 AM|pinoyz|LINK
The error is common language runtime detected an invalid program
Nov 14, 2013 03:30 AM|Illeris|LINK
Please verify the compilation settings. You might get this when runninx x64 code on x86 machines. Make your compiled code platform neutral, clean everything and recompile. Pleasee let us know if this had any affect. The error means an invalid or corrupt