I'm trying to follow a simple example of AJAX-enabled WCF Service like: http://www.pluralsight.com/community/blogs/fritz/archive/2008/01/31/50121.aspx
我正在尝试按照启用AJAX的WCF服务的简单示例,例如:http://www.pluralsight.com/community/blogs/fritz/archive/2008/01/31/50121.aspx
I'm getting the JavaScript errors Type not defined and Sys not defined. Does this mean there is an issue with one of these .axd things? or something else? How do I troubleshoot what is wrong with the Ajax scripts?
我收到的JavaScript错误类型未定义且未定义Sys。这是否意味着这些.axd之一存在问题?或者是其他东西?如何解决Ajax脚本的错误?
1 个解决方案
#1
2
Ok. I think I got this one.
好。我想我得到了这个。
Added this to my web.config
将此添加到我的web.config中
<httpHandlers>
<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
#1
2
Ok. I think I got this one.
好。我想我得到了这个。
Added this to my web.config
将此添加到我的web.config中
<httpHandlers>
<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>