I've been pulling out my hair on this and I'm pretty much bald at this point.
Background:
Web Service works on my development machine no problem. Deployment to other machines results in the above error when called.
In code, I have a web reference to an authorize.net API. Within it is a method that returns a response of type "CreateCustomerProfileTransactionResponseType". The parameters that it requires are of type MerchantAuthenticationType, CustomerProfileType, and ValidationModeEnum.
Where everything blows up is on the method that is supposed to return the above CreateCustomerProfileTransactionResponseType. I get the error:
What baffles me is that this isn't thrown on my machine (even when mimicking a live environment - No Visual Studio involved) but thrown on any other machine. My machine is a Windows 7 machine. I get failures deploying to 2 separate Windows Server 2008 R2 boxes. I've tried reboots, turning off UAC, etc but to no avail. I've even went so far as to cast the parameter it's complaining about to the object type that it's expecting but the error remains the same. Coding wise, The project is set up as follows:
Any help would be greatly appreciated as I've exhausted all other help avenues.
Thanks,
I figured it out. I had the .dll that I was loading (using Reflection) both in a specified location AND the bin directory of where the web service was. Seems to be a big no no. Removing the .dll from the bin directory solved my issues.