Asp.net Visual Studio发布AjaxControlToolkit错误-无法加密指定的文件
我试图在VStudio 2010中发布一个web项目,但出现以下错误:Asp.net Visual Studio发布AjaxControlToolkit错误-无法加密指定的文件,asp.net,ajax,visual-studio-2010,Asp.net,Ajax,Visual Studio 2010,我试图在VStudio 2010中发布一个web项目,但出现以下错误: Publishing directory /... Publishing directory bin... Publishing directory bin/ar... Unable to add 'bin/ar/AjaxControlToolkit.resources.dll' to the Web site. Unable to add file 'bin\ar\AjaxControlToolkit.resources
Publishing directory /...
Publishing directory bin...
Publishing directory bin/ar...
Unable to add 'bin/ar/AjaxControlToolkit.resources.dll' to the Web site. Unable to add file 'bin\ar\AjaxControlToolkit.resources.dll'. The specified file could not be encrypted.
Error: The operation could not be completed
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
我尝试在解决方案资源管理器中删除该文件,但该文件一直重新出现
有什么想法吗
谢谢请确认您已完成以下工作: 1) 在解决方案资源管理器的“引用”部分中包含对dll的引用。 2) 在ajax控件所在的aspx页面顶部引用了ajax工具包。 3) 确保webconfig中有对ajax工具包的引用 如果没有,那么这将是你的问题,如果你需要帮助做这件事。请对此答案发表评论我找到了解决方案 关键是在要发布的开发文件所在的文件夹上禁用加密 如果遇到问题,只需打开资源管理器,右键单击文件夹,选择“高级”,您将找到一个选项“加密内容以保护数据”-->确保禁用该选项
希望它有帮助Ajax似乎没有问题。我已取消安装ajax控件,并删除了webforms中的所有引用。我现在收到带有图片文件的加密错误消息。无法将“Images/CalculationsExamples.jpg”添加到网站。无法添加文件“Images\CalculationsExamples.jpg”。无法加密指定的文件。无法将“Images/Calendar.jpg”添加到网站。无法添加文件“Images\Calendar.jpg”。无法加密指定的文件。我猜问题可能是我使用的笔记本电脑被加密了。但我不确定这是否是问题所在,我不知道如何克服这个问题