私は2つの同一のサイトを持っています。アプリプールをクラシックとして使用している場合、Webサービス(写真)はJSONを返します。統合モードに変更すると、XMLが返されます。
コード
[WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public EventList GetAllFeaturedEvents(string AppId, string OrderId)
{ }
http://www.simpletix.com/facebook/app/displaywidget.aspx?domain=http://dev.simpletix.com
はい..両方のサイトには次のものがあります。
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
の<system.webServer> <handlers>
リードをありがとう!