编译/运行ASP.NET AJAX示例页面的问题......

编程入门 行业动态 更新时间:2024-10-26 18:27:03
本文介绍了编译/运行ASP.NET AJAX示例页面的问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用VS 2005: 今天上午按照此处的说明进行操作: ajax.asp/docs/overview/In...SPNETAJAX.aspx , 我安装了ASP.NET我的WinXP Pro开发机器上的AJAX。在 之后,我安装了2006年11月的CTP。和控制工具包 - 然后 我重新启动了我的机器。 接下来我尝试创建一个简单的示例页面... 我的工具箱中有AJAX控件,但是当我拖到我的页面上时,它会被加下划线 - 表示编译错误。例如,当我将a脚本管理器拖到我的页面上时,编译错误状态(注意: 拖动页面上的脚本管理器控件,它编译并运行 w / o事件): 错误1元素''ScriptManager''不是已知元素。如果网站中存在编译错误,则可能发生这种情况。。 C:\Documents和 设置\ ... ebSites \TaskList \TodoList.aspx 4 10 C:\ ... \TaskList \ 所以,认为我的页面有问题,我从创建了一个示例ASP.NET AJAX 页面 ajax.asp/docs/ViewSample....verviewCS.aspx 并将其放在我的本地Web服务器上。当我导航到我当地的 页面时,我收到了此消息末尾附带的错误(ERROR_01)。 似乎.NET没有在我的C:\Program Files \ Microsoft ASP.NET \ASP.NET 2.0 AJAX Extensions \v1.0.61025 \" $ b中找到了DLL $ b文件夹。这里有一个列表: AJAXExtensionsToolbox.dll Microsoft.Web.Extensions.Design.dll Microsoft。 Web.Extensions.dll Microsoft.Web.Preview.dll 我在想我错过了一些简单的东西......任何人都可以帮助? 感谢您对此事的关注, celoftis < ----- ---------------------------------- ERROR_01 以下------ -----------------------------------> 服务器错误'' /''申请。 ------------------------------------- ------------------------------------------- 解析器错误 描述:解析资源期间发生错误 为此请求提供服务。请查看以下具体的 解析错误详细信息并适当修改源文件。 解析器错误消息:无法加载类型 来自程序集System.Web的System.Web.UI.WebControls.ScriptManager, Version = 1.0.5000.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a。 来源错误: 第16行:< form id =" form1" runat =" server"> 第17行:< div> 第18行:< asp:ScriptManager ID =" ScriptManager1" RUNAT = QUOT;服务器" /> 第19行:< asp:UpdatePanel ID =" UpdatePanel1" runat =" server"> 第20行:< ContentTemplate> 源文件:c:\inetpub \wwwroot \ ASP.NET \ AJAX \ Updatepanel.aspx行: 18 -------------------------- -------------------------------------------------- ---- 版本信息:Microsoft .NET Framework版本:1.1.4322.2032; ASP.NET版本:1.1.4322.2032 < ; --------------------------------------- ERROR_01 ABOVE ----------------------------------------->

Using VS 2005: This morning, following the instructions here: ajax.asp/docs/overview/In...SPNETAJAX.aspx, I installed ASP.NET AJAX on my WinXP Pro development machine. Following that, I installed the "November 2006 CTP" and "Control Toolkit" - then I re-booted my machine. Next I tried to create a simple, sample page... I have the AJAX controls in my toolbox, but when I drag on onto my page it gets underlined - denoting a compile error. For example, when I drag a script manager on to my page, the compile error states (NOTE: Before dragging the script manager control on the page, it compiled and ran w/o incident): Error 1 Element ''ScriptManager'' is not a known element. This can occur if there is a compilation error in the Web site. C:\Documents and Settings\...ebSites\TaskList\TodoList.aspx 4 10 C:\...\TaskList\ So, thinking my page was a problem, I created a sample ASP.NET AJAX page from ajax.asp/docs/ViewSample....verviewCS.aspx and placed it on my local web server. When I navigated to my local page, I got the error (ERROR_01) attached at the end of this message. It appears that .NET has not found the DLLs in my "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\" folder. Here''s a list of the ones that are there: AJAXExtensionsToolbox.dll Microsoft.Web.Extensions.Design.dll Microsoft.Web.Extensions.dll Microsoft.Web.Preview.dll I''m thinking that I''ve missed something simple... can anyone help? Thanks for you attention to this matter, celoftis <---------------------------------------ERROR_01 BELOW-----------------------------------------> Server Error in ''/'' Application. -------------------------------------------------------------------------------- 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 load type System.Web.UI.WebControls.ScriptManager from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Source Error: Line 16: <form id="form1" runat="server"> Line 17: <div> Line 18: <asp:ScriptManager ID="ScriptManager1" runat="server" /> Line 19: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> Line 20: <ContentTemplate> Source File: c:\inetpub\wwwroot\ASP.NET\AJAX\Updatepanel.aspx Line: 18 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 <---------------------------------------ERROR_01 ABOVE----------------------------------------->

推荐答案

您是否从Visual Studio ASP.NET AJAX项目创建项目 模板?如果是这样,它应该创建所有必需的引用和 web.config条目。否则你将不得不手动添加它们。 - 我希望这会有所帮助, Steve C. Orr , MCSD,MVP,CSM,ASPInsider http:// SteveOrr。净 " celoftis" < ce ****** @ gmail写信息 news:11 ********************* @ h54g2000cwb。 googlegro ups ... Did you create your project from the Visual Studio ASP.NET AJAX project template? If so, it should create all the required references and web.config entries. Otherwise you''ll have to add them manually. -- I hope this helps, Steve C. Orr, MCSD, MVP, CSM, ASPInsider SteveOrr "celoftis" <ce******@gmailwrote in message news:11*********************@h54g2000cwb.googlegro ups... 使用VS 2005: 今天早上,按照此处的说明: ajax.asp/docs/overview/In...SPNETAJAX .aspx , 我在WinXP Pro开发机器上安装了ASP.NET AJAX。在 之后,我安装了2006年11月的CTP。和控制工具包 - 然后 我重新启动了我的机器。 接下来我尝试创建一个简单的示例页面... 我的工具箱中有AJAX控件,但是当我拖到我的页面上时,它会被加下划线 - 表示编译错误。例如,当我将a脚本管理器拖到我的页面上时,编译错误状态(注意: 拖动页面上的脚本管理器控件,它编译并运行 w / o事件): 错误1元素''ScriptManager''不是已知元素。如果网站中存在编译错误,则可能发生这种情况。。 C:\Documents和 设置\ ... ebSites \TaskList \TodoList.aspx 4 10 C:\ ... \TaskList \ 所以,认为我的页面有问题,我从创建了一个示例ASP.NET AJAX 页面 ajax.asp/docs/ViewSample....verviewCS.aspx 并将其放在我的本地Web服务器上。当我导航到我当地的 页面时,我收到了此消息末尾附带的错误(ERROR_01)。 似乎.NET没有在我的C:\Program Files \ Microsoft ASP.NET \ASP.NET 2.0 AJAX Extensions \v1.0.61025 \" $ b中找到了DLL $ b文件夹。这里有一个列表: AJAXExtensionsToolbox.dll Microsoft.Web.Extensions.Design.dll Microsoft。 Web.Extensions.dll Microsoft.Web.Preview.dll 我在想我错过了一些简单的东西......任何人都可以帮助? 感谢您对此事的关注, celoftis < ----- ---------------------------------- ERROR_01 以下------ -----------------------------------> 服务器错误'' /''申请。 ------------------------------------- ------------------------------------------- 解析器错误 描述:解析资源期间发生错误 为此请求提供服务。请查看以下具体的 解析错误详细信息并适当修改源文件。 解析器错误消息:无法加载类型 来自程序集System.Web的System.Web.UI.WebControls.ScriptManager, Version = 1.0.5000.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a。 来源错误: 第16行:< form id =" form1" runat =" server"> 第17行:< div> 第18行:< asp:ScriptManager ID =" ScriptManager1" RUNAT = QUOT;服务器" /> 第19行:< asp:UpdatePanel ID =" UpdatePanel1" runat =" server"> 第20行:< ContentTemplate> 源文件:c:\inetpub \wwwroot \ ASP。 NET\AJAX\Updatepanel.aspx行: 18 ------------------ -------------------------------------------------- ------------ 版本信息:Microsoft .NET Framework版本:1.1.4322.2032; ASP.NET版本:1.1.4322.2032 < --------------------------------------- ERROR_01 ABOVE -----------------------------------------> ; Using VS 2005: This morning, following the instructions here: ajax.asp/docs/overview/In...SPNETAJAX.aspx, I installed ASP.NET AJAX on my WinXP Pro development machine. Following that, I installed the "November 2006 CTP" and "Control Toolkit" - then I re-booted my machine. Next I tried to create a simple, sample page... I have the AJAX controls in my toolbox, but when I drag on onto my page it gets underlined - denoting a compile error. For example, when I drag a script manager on to my page, the compile error states (NOTE: Before dragging the script manager control on the page, it compiled and ran w/o incident): Error 1 Element ''ScriptManager'' is not a known element. This can occur if there is a compilation error in the Web site. C:\Documents and Settings\...ebSites\TaskList\TodoList.aspx 4 10 C:\...\TaskList\ So, thinking my page was a problem, I created a sample ASP.NET AJAX page from ajax.asp/docs/ViewSample....verviewCS.aspx and placed it on my local web server. When I navigated to my local page, I got the error (ERROR_01) attached at the end of this message. It appears that .NET has not found the DLLs in my "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\" folder. Here''s a list of the ones that are there: AJAXExtensionsToolbox.dll Microsoft.Web.Extensions.Design.dll Microsoft.Web.Extensions.dll Microsoft.Web.Preview.dll I''m thinking that I''ve missed something simple... can anyone help? Thanks for you attention to this matter, celoftis <---------------------------------------ERROR_01 BELOW-----------------------------------------> Server Error in ''/'' Application. -------------------------------------------------------------------------------- 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 load type System.Web.UI.WebControls.ScriptManager from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Source Error: Line 16: <form id="form1" runat="server"> Line 17: <div> Line 18: <asp:ScriptManager ID="ScriptManager1" runat="server" /> Line 19: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> Line 20: <ContentTemplate> Source File: c:\inetpub\wwwroot\ASP.NET\AJAX\Updatepanel.aspx Line: 18 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 <---------------------------------------ERROR_01 ABOVE----------------------------------------->

你应该创建一个ajax项目,添加/更新web配置 来拥有参考ajax dlls。 - 布鲁斯(sqlwork) " celoftis" < ce ****** @ gmail写信息 news:11 ********************* @ h54g2000cwb。 googlegro ups ... you should have created an ajax project, that adds/updates the web config to have the references to the ajax dlls. -- bruce (sqlwork) "celoftis" <ce******@gmailwrote in message news:11*********************@h54g2000cwb.googlegro ups... 使用VS 2005: 今天早上,按照此处的说明: ajax.asp/docs/overview/In...SPNETAJAX .aspx , 我在WinXP Pro开发机器上安装了ASP.NET AJAX。在 之后,我安装了2006年11月的CTP。和控制工具包 - 然后 我重新启动了我的机器。 接下来我尝试创建一个简单的示例页面... 我的工具箱中有AJAX控件,但是当我拖到我的页面上时,它会被加下划线 - 表示编译错误。例如,当我将a脚本管理器拖到我的页面上时,编译错误状态(注意: 拖动页面上的脚本管理器控件,它编译并运行 w / o事件): 错误1元素''ScriptManager''不是已知元素。如果网站中存在编译错误,则可能发生这种情况。。 C:\Documents和 设置\ ... ebSites \TaskList \TodoList.aspx 4 10 C:\ ... \TaskList \ 所以,认为我的页面有问题,我从创建了一个示例ASP.NET AJAX 页面 ajax.asp/docs/ViewSample....verviewCS.aspx 并将其放在我的本地Web服务器上。当我导航到我当地的 页面时,我收到了此消息末尾附带的错误(ERROR_01)。 似乎.NET没有在我的C:\Program Files \ Microsoft ASP.NET \ASP.NET 2.0 AJAX Extensions \v1.0.61025 \" $ b中找到了DLL $ b文件夹。这里有一个列表: AJAXExtensionsToolbox.dll Microsoft.Web.Extensions.Design.dll Microsoft。 Web.Extensions.dll Microsoft.Web.Preview.dll 我在想我错过了一些简单的东西......任何人都可以帮助? 感谢您对此事的关注, celoftis < ----- ---------------------------------- ERROR_01 以下------ -----------------------------------> 服务器错误'' /''申请。 ------------------------------------- ------------------------------------------- 解析器错误 描述:解析资源期间发生错误 为此请求提供服务。请查看以下具体的 解析错误详细信息并适当修改源文件。 解析器错误消息:无法加载类型 来自程序集System.Web的System.Web.UI.WebControls.ScriptManager, Version = 1.0.5000.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a。 来源错误: 第16行:< form id =" form1" runat =" server"> 第17行:< div> 第18行:< asp:ScriptManager ID =" ScriptManager1" RUNAT = QUOT;服务器" /> 第19行:< asp:UpdatePanel ID =" UpdatePanel1" runat =" server"> 第20行:< ContentTemplate> 源文件:c:\inetpub \wwwroot \ ASP。 NET\AJAX\Updatepanel.aspx行: 18 ------------------ -------------------------------------------------- ------------ 版本信息:Microsoft .NET Framework版本:1.1.4322.2032; ASP.NET版本:1.1.4322.2032 < --------------------------------------- ERROR_01 ABOVE -----------------------------------------> ; Using VS 2005: This morning, following the instructions here: ajax.asp/docs/overview/In...SPNETAJAX.aspx, I installed ASP.NET AJAX on my WinXP Pro development machine. Following that, I installed the "November 2006 CTP" and "Control Toolkit" - then I re-booted my machine. Next I tried to create a simple, sample page... I have the AJAX controls in my toolbox, but when I drag on onto my page it gets underlined - denoting a compile error. For example, when I drag a script manager on to my page, the compile error states (NOTE: Before dragging the script manager control on the page, it compiled and ran w/o incident): Error 1 Element ''ScriptManager'' is not a known element. This can occur if there is a compilation error in the Web site. C:\Documents and Settings\...ebSites\TaskList\TodoList.aspx 4 10 C:\...\TaskList\ So, thinking my page was a problem, I created a sample ASP.NET AJAX page from ajax.asp/docs/ViewSample....verviewCS.aspx and placed it on my local web server. When I navigated to my local page, I got the error (ERROR_01) attached at the end of this message. It appears that .NET has not found the DLLs in my "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\" folder. Here''s a list of the ones that are there: AJAXExtensionsToolbox.dll Microsoft.Web.Extensions.Design.dll Microsoft.Web.Extensions.dll Microsoft.Web.Preview.dll I''m thinking that I''ve missed something simple... can anyone help? Thanks for you attention to this matter, celoftis <---------------------------------------ERROR_01 BELOW-----------------------------------------> Server Error in ''/'' Application. -------------------------------------------------------------------------------- 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 load type System.Web.UI.WebControls.ScriptManager from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Source Error: Line 16: <form id="form1" runat="server"> Line 17: <div> Line 18: <asp:ScriptManager ID="ScriptManager1" runat="server" /> Line 19: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> Line 20: <ContentTemplate> Source File: c:\inetpub\wwwroot\ASP.NET\AJAX\Updatepanel.aspx Line: 18 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 <---------------------------------------ERROR_01 ABOVE----------------------------------------->

感谢您的快速回复! 我创建了一个新网站 ;来自ASP.NET AJAX CTP启用的网站 模板。难道不能正确引用 " Microsoft.Web.Extensions.dll" ;? 作为新手,这是怎么做的我在 Web.config中手动创建引用? celoftis Thanks for you quick responses! I created a "New Web Site" from the "ASP.NET AJAX CTP-Enabled Web Site" template. Shouldn''t that get the correct reference to the "Microsoft.Web.Extensions.dll"? Being a newbie to this, how do I manually create the reference in "Web.config"? celoftis

更多推荐

编译/运行ASP.NET AJAX示例页面的问题......

本文发布于:2023-11-24 19:00:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1626442.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:示例   页面   ASP   NET   AJAX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!