plugin webservice reference not getting deployed? RRS feed

  • Question

  • Hello, I'm seeing some weird behavior with a plugin. My plugin has a wcf service reference. I recently updated the service reference in my plugin to pick up a new method added to the wcf service.  I've updated the service reference for the plugin in the past and the expected changes get propagated upon deployment.

    I've followed these steps for my latest deployment and the plugin isn't finding the latest method I added to the wcf service in the upper environment, although everything works as expected in my lower environment.  Do you have any suggestions on how I can debug this? Are there any manual workarounds for this? Trying to figure out the best way to troubleshoot/resolve this problem?
    Friday, February 28, 2014 4:11 AM

All replies

  • What are the symptoms of 'not finding the latest method' ? What errors are thrown ?

    How are you setting the WCF configuration ? By default, WCF references will be written to the app.config file, which is an issue with plugin deployment as you have to either put the data into an appropriate .config file for the process the plugin runs under, and build the reference in code. So, one possibility is that the configuration data hasn't been deployed. Do you have an old copy of the web service in a different location ?

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Friday, February 28, 2014 7:18 PM
  • How do I build the web service reference in code such that it can run in a plugin? I tried creating the EndpointAddress and EndpointAddress and passing those to the constructor of my WebService client, but when I do this I get a runtime error "Could not load type 'System.ServiceModel.HttpBindingBase' from assembly 'System.ServiceModel'".  There is no app.config to add the configuration information to, so how do you call a webservice in a plugin?

    Sunday, May 25, 2014 9:32 PM