Here is the code that is i am using to create the instance of the CRM service connection
Public Function Crm_Service() As CrmService
Dim token As New CrmAuthenticationToken
token.AuthenticationType = 0
token.OrganizationName = "CompanyName"
Dim service As New CrmService()
service.Url = "http://serverlocation/mscrmservices/2007/crmservice.asmx"
service.CrmAuthenticationTokenValue = token
Dim mycredentials As System.Net.ICredentials
mycredentials = New NetworkCredential("username", "password")
service.Credentials = mycredentials
Return service
End Function
Any help would be much appreciated

New Topic/Question
Reply



MultiQuote



|