编译时asp.net(ajax工具包)出错 [英] Error at compile time asp.net(ajax toolkit)

查看:87
本文介绍了编译时asp.net(ajax工具包)出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单中添加了一个HtmlEditor控件。

运行项目时出现以下错误:

找不到任何资源适用于指定的文化或中性文化。确保AjaxControlToolkit.Properties.Resources.resources在编译时正确嵌入或链接到程序集AjaxControlToolkit,或者所有所需的附属程序集都是可加载和完全签名的。







异常详情:System.Resources.MissingManifestResourceException:找不到任何适合的资源特定文化或中性文化。确保在编译时将AjaxControlToolkit.Properties.Resources.resources正确嵌入或链接到程序集AjaxControlToolkit中,或者所有所需的附属程序集都是可加载和完全签名的。







如何解决上述错误?

来源错误:

在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。

解决方案

是对AjaxControlToolkit.Properties的引用项目中缺少.Resources.resources?

另见此处 [< a href =http://forums.asp.net/p/1516859/3632563.aspxtarget =_ blanktitle =New Window> ^ ]。


< blockquote>如果你有一个母版页,那么将toolkitscript manager添加到你的母版页,否则你的aspx页面。


1。检查代码中是否添加了以下行

 <%@    注册   程序集  =  AjaxControlToolkit   < span class =code-attribute>命名空间  =  AjaxControlToolkit    TagPrefix   =  asp   %>  





2.不要忘记添加以下行。

 <   asp:ToolkitScriptManager     runat   =  server >  <   / asp:ToolkitScriptManager  >  





3.如果您使用母版页,则将脚本管理器添加到母版。

 < ;   asp:ScriptManagerProxy     ID   =  ScriptManagerProxy1    runat   =  server >  <   / asp:ScriptManagerProxy  >  


I added a HtmlEditor control to my form.
When I run the project I get the following error:

Could not find any resources appropriate for the specified culture or the neutral culture.Make sure AjaxControlToolkit.Properties.Resources.resources was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.




Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.




How do I resolve the above error?

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

解决方案

Is a reference to AjaxControlToolkit.Properties.Resources.resources missing in your project?
Also see here[^].


Add toolkitscript manager to your master page if you have a master page otherwise your aspx page.


1. Check the following line is added in your code or not

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>



2. Don't forget to add following line.

<asp:ToolkitScriptManager runat="server"></asp:ToolkitScriptManager>



3. If you are using master page then add script manger to the master.

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>


这篇关于编译时asp.net(ajax工具包)出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆