<p>Hi</p><p>I want to import data from CRM webservice.</p><p>I have created console application and referenced all XRM.Sdk bla bla</p><span style="color:#008000;font-face:Consolas;"><span style="color:#008000;font-face:Consolas;"><span style="color:#008000;font-face:Consolas;"><p>Xrm.XrmServiceContext xrm = new Xrm.XrmServiceContext(CrmConnection.Parse("Authentication Type=AD; Server=https://server:port/XRMServices/2011/Organization.svc; Username=myusername; Password=mypwd;"));</p><p><p>var coll = (from com in xrm.bc_countriesSet select com).ToList();</p></p></span></span></span><span style="font-face:Consolas;"></span>
It is working.
I want to use the same code in SSIS script task.
When I added Xrm.cs(it is generated using crmsvcutil.exe) to the solution in SSIS script task, I am getting unhandled exception. Saying problem with user code couldnot load.
Why is it?
Any other solution? Pls reply.