I am trying to update an email send definition with a sender profile via the c# SOAP API library. I have my email send definition object, and I have a sender profile object. I'm assigning the sender profile to the esd.SenderProfile property, and then I perform the update call. I get error code 2, which is the generic "unexpected error" exception.
Any thoughts on this? The code is pretty simple, but some snippets are below to help with troubleshooting.
Adding the Sender Profile to an existing Email Send Definition:
SenderProfile selectedSenderProfile = (SenderProfile)lvwSenderProfiles.SelectedObject;
esd.SenderProfile = selectedSenderProfile;
Then the ESD object eventually makes its way to the update call:
m_exactTargetFramework.Update(new UpdateOptions(), new APIObject[] { esd }, out requestId, out status);