1

私は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://culinary-festival.thisticket.com

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>

リードをありがとう!

4

0 に答える 0