Click here to Skip to main content
15,077,641 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I want to create a ASP.net web service SharePoint 2013. I am using Visual Studio 2015.

I am following this link

https://msdn.microsoft.com/en-us/library/ms464040(v=office.14).aspx

I am stuck during "To generate and edit the static discovery and WSDL files" part of the above link..

When I am hitting the below disco command on Visual Studio command prompt to generate the .wsdl and .disco file, I am getting error.

C:\ProgramFile<86>\Windows\MicrosoftSDk\Windows\bin\v10.0A\.NetFx 4.6.1 Tools> disco http://servername/_layouts/MyFirstWebService.asmx

I am getting below error message.

There was an error downloading "http://servername/_layouts/MyFirstWebService.asmx"

The request failed with HTTP status 404: not found.




What I have tried:

I am trying to post a question on code project. i dont know what else to write.
Posted
Updated 10-Feb-18 8:21am

1 solution

The error is pretty clear...your URL of http://servername/_layouts/MyFirstWebService.asmx doesn't exist. I imagine it has something to do with "servername" as that doesn't seem like a valid domain name. Should that be correct, your URL you provided as what you are following indicates the URL should be MyServer and not servername.

But again, "The request failed with HTTP status 404: not found" is very self explanatory...figure out what is wrong with your URL as none of us can do that for you since we don't have access to your code, your servers or know anything about your project.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900