You need to sign in to do that
Don't have an account?
molamola
Error :Could not create an instance of entrypoint class
I am having this error
Could not create an instance of entrypoint class ...
Any ideas? Is it related to credential? I am trying to login to Sforce from SSIS.
Thank you.
Here is part of my code
Public Class LoginToSforce
Public Sub Main()
Dim binding As New sforce.SforceService
Dim lr As New sforce.LoginResult
Dim header As New sforce.SessionHeader
Try
Dim myproxy As New System.Net.WebProxy(CStr(Dts.Variables("webproxy").Value), True)
myproxy.Credentials = CredentialCache.DefaultCredentials
binding.Proxy = myproxy
lr = binding.login(CStr(Dts.Variables("username").Value), CStr(Dts.Variables("pwd").Value))
header.sessionId = lr.sessionId
binding.SessionHeaderValue.sessionId = lr.sessionId
binding.Url = lr.serverUrl
Dts.Variables("SForce_Binding").Value = binding
Dts.Variables("SForce_Session_Id").Value = lr.sessionId
Dts.TaskResult = Dts.Results.Success
Catch ex As Exception
Dts.TaskResult = Dts.Results.Failure
End Try
End Sub
End Class