Karthik Ramachandran

Karthik Ramachandran

  • 1.9k
  • 116
  • 18k

The resource cannot be found

Dec 11 2018 8:13 AM
<%@ WebService Language="C#" CodeBehind="~/App_Code/WebService1.asmx.cs" Class="accsoft2018.App_code.WebService1" %>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace accsoft2018.App_Code
/// <summary>
/// Summary description for WebService1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class WebService1 : System.Web.Services.WebService
public string HelloWorld()
return "Hello World";
THE OUTPUT: http://localhost:50138/WebService1.asmx
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /WebService1.asmx
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0
Please suggest me. 

Brought to you by:

Answers (1)