We had a customer recently upgrade from LF 10.2 to LF 11. During the upgrade they also moved to a new server. They have several VS projects that use the /Workflow/api/ web services and since the server move, they have to update their projects to the new server. Originally, they got an error that the authentication was invalid because anonymous authentication was disabled. The enabled anonymous authentication and then they get an error that the "Metadata contains a reference that cannot be resolved: 'http://workflowserver/Workflow/api/RestWorkflowAPI.svc'.". I tested on my Demo system and get the same errors. Originally, I got the error for anonymous authentication and then after enabling it in IIS, I get the same error about the reference cannot be resolved. Below are screenshots from my Demo machine of the config and the error.
1 | The HTML document does not contain Web service discovery information. |
2 | Metadata contains a reference that cannot be resolved: 'http://desktop-a5ti2dh/Workflow/api/RestWorkflowAPI.svc'. |
3 | The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html> <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--><html lang=en-US class=no-js> <!--<![endif]--><head><link rel=stylesheet href=https://www.laserfiche.com/wp-content/cache/minify/a1063.default.include.f26483.css media=all> <script type=application/ld+json>{"@context":"https://schema.org","@type":"WebSite","url":"https://www.laserfiche.com/","potentialAction":{"@type":"SearchAction","target":"https://www.laserfiche.com/Search/Index?q={search_term_string}","query-input":"required name=search_term_string"}}</script> <meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"><meta name="theme-color" content="#e35205"><link rel=profile href=https://gmpg.org/xfn/11> <script>if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){var originalAddEventListener=EventTarget.prototype.addEventListener,oldWidth=window.innerWidth;EventTarget.prototype.addEventListener=function(eventName,eventHandler,useCapture)'. |
4 | If the service is defined in the current solution, try building the solution and adding the service reference again. |