我已经下载了Ajax控件工具包。
当我从Ajax控件工具包模板创建网站时,我可以在单个文件(asmx)中创建Web服务,并将其与工具包中提供的不同Ajax控件连接起来。
但是,如果我将Toolkit添加到现有的ASP.Net 2.0应用程序Web项目中,我就无法在单个asmx文件中创建Web服务。如果我创建一个Web服务,VS总是会同时创建一个代码后台文件。因此,对Web服务的调用(或在浏览器中直接加载服务)会生成以下错误:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'AddAjaxToApplication.List'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="List.asmx.cs" Class="AddAjaxToApplication.List" %>
有人知道如何解决这个问题吗?
谢谢,
Tim