Friday, April 13, 2012 3:09 PM
I created a webservice that performs actions on CRM however when I publish my service manually (copy the files to the virtual directory) and then browse to my service location I am getting a complie error saying I am missing Microsoft.CRM.SDK. The virtual directory resides on the CRM server. When i created the service on my DEV system I did download and unpack the SDK however I simply refrenced dlls in the SDK forler but never install the SDK or registered the dlls into my assembly cache directly.
What can I do to get around installing the SDK on my CRM server?
Can I just register the dlls in my applications Bin folder to the assembly cache on my CRM Server?
- Edited by CodemonkeyHelp Friday, April 13, 2012 3:11 PM
Friday, April 13, 2012 3:33 PMYeah that should work. But before doing that compare least security role given to user and salesperson role. Because you might have removed some of the privileges to users. If need be copy SalesPerson Role to a new one and set least privileges to team role.
- Edited by Yuanli Guo 郭远丽 Saturday, April 14, 2012 12:57 AM remove the link
Friday, April 13, 2012 3:45 PM
I dont understand the security role issue? How could this have caused me to remove a security role?
Friday, April 13, 2012 3:52 PMI don't think security will be a problem if your web service is designed to run under integrated authentication. Placing the SDK assembly in your web service application's bin will work. Registering it in the GAC will probably provide better performance.
Friday, April 13, 2012 4:47 PM
thats the funny thing though, I have the dlls in my applications Bin folder?
so why am i getting that error?
Friday, April 13, 2012 4:51 PM
Friday, April 13, 2012 6:47 PM
Yes its a 4.0 app pool.
Friday, April 13, 2012 7:37 PM
This is a .NET assembly reference issue.
A couple of other things that I would try.
- Make sure that the SDK assembly is uploaded to the application's bin folder. The application bin folder may not be the bin folder that you have created, you need to find the application root in IIS manager, and the application bin folder is under <APP ROOT>\bin.
- Make sure that Identify Foundation is installed, if it has not been installed (If it is a CRM server, identity foundation is already installed).
- If the above doesn't help, try to put the SDK assembly into GAC.
Also, you might want to check your server event log to see if you can find something useful there.
Hope this helps.
- Edited by Daniel CaiMVP Friday, April 13, 2012 7:39 PM
Friday, April 13, 2012 7:50 PM
I am trying to avoid messing with the GAC as I would need tyo install GACUTIL on the server too. But yes the assemblies are in the bin folder as they should be.