function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
molamolamolamola 

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.

 

 

molamolamolamola

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

SuperfellSuperfell
double check that you've put the built DLL in the place that SSIS expects to find it.
molamolamolamola
I put dll in Microsoft.net / framwork/v2.05 folder and added reference in the add reference. Do you think that it is something to do with login credential?
molamolamolamola
cos I did not install Assembly to GAC. Thank you for your support.