Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The HTML document does not contain Web service discovery information

I am using Visual Studio Professional 2012 and trying to add web reference for ReportService.asmx through Add Service Reference>Advanced>Add Web Reference.

In the Add Web Reference dialog I enter the address to the ssrs report service and click GO. The URL is,

http://MyServerName/ReportServer/ReportService.asmx.

I am able to view the WSDL in my browser.

On the left, it shows me the methods it found in the WSDL.

On the right, the Add Reference button is disabled and the following error appears:

The HTML document does not contain Web service discovery information.

what could be reason for this?

like image 703
RobertKing Avatar asked Oct 20 '22 19:10

RobertKing


1 Answers

Very late, but this helped me: In a browser, open the url and add "?wsdl" at the end. If you have any exceptions that occurred during serialization, then the error(s) will show there and you can then resolve the problem. In my case a new class did not have a parameter-less constructor.

like image 98
Atron Seige Avatar answered Nov 04 '22 20:11

Atron Seige