0

I have created a custom web service on the sharepoint server (2010). I wanted to update the webservice, so I added the new assenbly to my virtual bin and GAC, it didn't look like the wsdl or disco files needed changed. When I run the web service, it runs the previous version and I know the assembly files have been updated. Does anyone know what the issue could be here?

2
  • 1
    IISRESET performed I hope? :) Commented Jun 12, 2014 at 18:35
  • oops, that is why! dumb mistake
    – Bobcat88
    Commented Jun 12, 2014 at 18:43

1 Answer 1

1

You probably need an iisreset to reload the assemblies.

If you packaged your web service as a WSP file, you can use Update-SPSolution to update the WSP without retracting / re-deploying the solution. This is a technique I use often when making changes to code that needs to get re-deployed, to save the time of the full retraction / deletion / addition / deployment cycle, while still keeping SharePoint "aware" that an update has been made. It goes something like this:

update-spsolution -identity my.custom.wsp -literalpath c:\path\to\my.custom.wsp -gacdeployment

// then

iisreset

// then, if it's a timer job

restart-service sptimerv4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.