プロジェクトに Web サービスがあります。サービス参照を追加しようとすると、特定のエラーが表示される
Could not create type 'json_read.GetMapLocation'.
ソースエラー
Line 1: <%@ WebService Language="C#" CodeBehind="GetMapLocation.asmx.cs" Class="json_read.GetMapLocation" %>
これは私のウェブサービスです
<%@ WebService Language="C#" CodeBehind="GetMapLocation.asmx.cs" Class="json_read.GetMapLocation" %>
コードビハインド
namespace json_read
{
/// <summary>
/// Summary description for GetMapLocation
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// 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 GetMapLocation : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
このエラーに数日間苦労していますが、まだ解決していません。ご協力ありがとうございます。