Visual Studio的发布AjaxControlToolkit错误 - 指定的文件不能被加密 [英] Visual Studio publish AjaxControlToolkit error - The specified file could not be encrypted
问题描述
我想发布一个Web项目,并于2010年VStudio,我收到以下错误:
I'm trying to publish a web project and in VStudio 2010 and I'm getting the following error:
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 ==========
我试图删除Solution Explorer中的文件,但该文件不断重新出现。
I tried deleting the the file in Solution explorer, but the file keeps re-appearing.
任何想法?
感谢
推荐答案
我找到了解决办法。
关键是要禁用文件夹所在的开发文件要发布位于加密。
The key was to disable the encryption on the folders where the development files to be publish are located.
如果您encouter你只需要打开资源管理问题,右键单击该文件夹,选择先进的,你会发现一个选项,加密内容以便保护数据 - >确定它是禁用的。
If you encouter the problem you just need to open explorer, right click on the folder, select advanced, and you will find an option "Encrypt contents to secure data" --> make sure it is disabled.
希望它能帮助
这篇关于Visual Studio的发布AjaxControlToolkit错误 - 指定的文件不能被加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!