title: SharePoint OOTB Web Services asmx to WSDL conversion not working
body: <p>I have a problem accessing the web services?wsdl for SharePoint lists, sites etc.</p>
  
  <p>I can see the list of operations using the following URLS: </p>
  
  <p><a href="http://test.com/_vti_bin/Lists.asmx" rel="nofollow">http://test.com/_vti_bin/Lists.asmx</a> - returns a list of operations for OOTB Service</p>
  
  <p><a href="http://test.com/_vti_bin/sites.asmx" rel="nofollow">http://test.com/_vti_bin/sites.asmx</a> - returns a list of operations for OOTB Service</p>
  
  <p>However, when I try to view WSDL document using the following URLs:</p>
  
  <p><a href="http://test.com/_vti_bin/Lists.asmx?wsdl" rel="nofollow">http://test.com/_vti_bin/Lists.asmx?wsdl</a> - returns a 404 error</p>
  
  <p><a href="http://test.com/_vti_bin/sites.asmx?wsdl" rel="nofollow">http://test.com/_vti_bin/sites.asmx?wsdl</a> - returns a 404 error</p>
  
  <p>On the test enviroment, I can see the WSDL being returned but on the production it returns 404 errors as mentioned above.</p>
  
  <p>I'm also seeing this message in the logs:</p>
  
  <p>Error on page: <a href="http://test.com/_vti_bin/wswsdl.aspx?WSDL" rel="nofollow">http://test.com/_vti_bin/wswsdl.aspx?WSDL</a>
  System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.FileNotFoundException: There is no Web named "/careers/Pages/_vti_bin/sites.asmx". </p>
  
  <p>It seems that asmx to wsdl coversion is not working well on production enviroment. Any ideas will be appreciated.</p>
  
  <p>I have also made sure to add <code>"&lt;protocols&gt;&lt;add name="Documentation"/&gt;&lt;/protocols&gt;"</code> to the WebServices element of web.config of webservice.</p>