何があったハンドラ(ASHX)ASP.NET 3.5
質問
なぜデフォルトの"汎用ハンドラ"のコードがASP.NET 3.5webアプリを追加属性のクラスが、正しい名前空間の参照です。このテンプレートからout-of-the-box:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Handler1
{
/// <summary>
/// Summary description for $codebehindclassname$
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class People : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
なぜならライントップ:
using System.Web.Services;
このバグマイクロソフトマイクロソフトのデフォルトのテンプレート?私何かが足りない?
解決
編集:んで、追加された場合は汎用ハンドラをウェブ の応用 (残念だったので買ってきたことでご質問の時間)を取得しました機能テンプレートを作成します。同意するその他のユーザから編集、デフォルトのテンプレートを作成します。使用している場合は、MVCする必要がなくなり、より快適なハンドラをなしています。
なっているように見えますが既知のバグ こちらはMSの接続の問題で.
の編集を行ないたい場合には、テンプレートのものです。C:\Program Files¥Microsoft Visual Studio9.0\Common7\IDE\ItemTemplates\CSharp\Web\1033\Handler.zip
所属していません StackOverflow