Discussions
Strange error in Receipt Confirmation
Hi All,
We are getting very strange error while doing receipt confirmation.Actually when we were using the WSDL 2.6 version, we have written the following code in MS.NET 2005 and which was working fine.
ItemReceipt ItmRcpt = new ItemReceipt();
if (ItmRcpt.landedCostMethod.ToString() != null)
{ ItmRcpt.landedCostMethod = LandedCostMethod._weight;
ItmRcpt.landedCostMethodSpecified =true;
}
else
{
ItmRcpt.landedCostMethodSpecified = false;
}
Recently we upgraded our application to WS 2008.1 version and the same code is behaving differently and it is throwing the below compilation error.
Compiler Error Message: CS0266: Cannot implicitly convert type
'com.netsuite.webservices.LandedCostMethod1' to 'com.netsuite.webservices.LandedCostMethod'. An explicit
conversion exists (are you missing a cast?)