You need to sign in to do that
Don't have an account?

login failed for "Unable to generate a temporary class (result=1).\r\n ..... " error CS0030" Error
Good afternoon,
I have tried to use the code above but i receive this error:
e.Message = "There was an error in serializing one of the headers in message loginRequest: 'Unable to generate a temporary class (result=1).\r\nerror CS0030: Cannot convert type 'SF_Connector1.SoapApi.ListViewRecordColumn[]' to 'SF_Connector1.SoapApi.ListViewRecordColu... etc.
Googling around i found some answers to that "generic" error saying there is an dimensional array mismatch, but i have been unable to apply the suggested corrections.
I reduced the code to the very minimal section oflogin but the bug appears into the line
lr = ss.login(Nothing, "hello@hello.com.au", "Yourpassword" & "Security Token")
Of course i replaced the variable with my own login data.
Anyone can help?
This is the very last part i have to implement in my procedure and begin to be very frustrated for the impossibility to do it.
Thank you in advance.
PS, i am using VS2015, vb.net, net framework 3.5
Claudio
I have tried to use the code above but i receive this error:
e.Message = "There was an error in serializing one of the headers in message loginRequest: 'Unable to generate a temporary class (result=1).\r\nerror CS0030: Cannot convert type 'SF_Connector1.SoapApi.ListViewRecordColumn[]' to 'SF_Connector1.SoapApi.ListViewRecordColu... etc.
Googling around i found some answers to that "generic" error saying there is an dimensional array mismatch, but i have been unable to apply the suggested corrections.
I reduced the code to the very minimal section oflogin but the bug appears into the line
lr = ss.login(Nothing, "hello@hello.com.au", "Yourpassword" & "Security Token")
Of course i replaced the variable with my own login data.
Anyone can help?
This is the very last part i have to implement in my procedure and begin to be very frustrated for the impossibility to do it.
Thank you in advance.
PS, i am using VS2015, vb.net, net framework 3.5
Claudio
All Answers
I've made some notes about this in a blog post Importing the Salesforce Winter 15 Partner API to .NET
To fix it, find the XmlArrayItemAttribute attribute that is generated for
ExecuteListViewResult.records
in the References file.With C# it needs to be changed to:
VB.net will be similar. Something like:The changes is adding the array notation in typeof/GetType.
Your answer unlocked the login procedure that is now working like a charms, so i went on with developing the user interface.
Now back to the SF section i am unable to do any other operation and i receive the dreadful
ex.Message = "UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService".
I have recechked all the code and i am pretty sure that the endpoint URL is properly set:
Login destination url
Endpoint = Address={https://login.salesforce.com/services/Soap/c/35.0}
Url obtained from Login()
Endpoint = Address={https://na28.salesforce.com/services/Soap/c/35.0/00D80000000LPbi}
Any suggestion?
I already went trough all the similar questions but unable to find out an answer for it.
Thank you in advance
Basically you send the first request to the login.salesforce.com/... URL. All subsequent requests go to the URL returned in the LoginResult.
Yes i appreciate the need to put the received url into the subsequent calls and is what i do (at least is my intention)
Here is my code, whre in the yellow lines I cache the new URL addresse.
This is the code i translated from C# that is into the "Soap API developer guide 16"
Thank you in advance for your support
Thank you.
I looked around and haven't found anywhere to do it.
Thank you