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