私はVSでWebサービス(ハローワールド)を作成していると私は、Webサービスを実行するとき、私は、次のエラーメッセージが表示されます。のWebServiceパーサーエラー
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'UpdaterWS.Service1'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="UpdaterWS.Service1" %>
が、私はこれをどのように修正することができますか?
コード:
namespace WebService1HelloTest
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
あなたがここにあなたのコード... – Simsons
パブリッククラスService1のいくつかの表示できます。System.Web.Services.WebService を{ [WebMethod属性] 公共の文字列のHelloWorld(){ リターンの "Hello World"; } } – GTV
は名前空間UpdaterWSにありますか? –