使用 Visual Studio 2010 ClickOnce 发布加密文件
我的项目解决方案位于加密文件夹下,当我发布项目时,文件也将被加密。我试图将它们发布到另一台服务器,这给了我错误
无法将文件“C:...”复制到“\Server...”。无法将“应用程序文件/...”添加到网站。无法添加文件“应用程序文件...”。指定的文件无法加密。
有没有办法在发布之前自动删除加密或通过其他方式解决此问题。我不想删除解决方案目录的加密。
My project solution is located under an encrypted folder and when I publish a project the files will also be encrypted. I am trying to publish them to another server which gives me the error
Failed to copy file 'C:...' to '\Server...'. Unable to add 'Application Files/...' to the Web site. Unable to add file 'Application Files...'. The specified file could not be encrypted.
Is there a way to remove the encryption autmatically before publishing or some other way to solve this. I don't want to remove the encryption of the solution directory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以通过在命令中键入以下内容来禁用加密:promt
fsutil behavior set disableencryption 1
或者,如果您想保持加密状态,我认为您需要制作一个通用的加密证书并将其导入到您的电脑和服务器中,然后您将能够通过网络发布加密文件。
制作新的证书< /p>
在两台机器上导入,
然后进入加密证书管理器,选择证书,会提示选择您的驱动器,选择您的驱动器并等待它更新您的文件。在两台计算机上执行此操作。
You can disable encryption by typing this into commands promt
fsutil behavior set disableencryption 1
Or if you want to keep encrpytion on, I think you need need to make a common encryption certificate and import it to both your pc and server, then you will be able to publish the encrypted files across the network.
Make a new certificate
Import it on both machines,
Then goto the encryption certificate manager and select the certificate, you will be prompted to select your drives, Select your drives and wait till it updates your files. Do this on both machines.
我能想到的唯一方法是将文件复制到未加密的文件夹,运行 mage 或 mageUI 对部署进行签名,然后将它们复制到服务器。 C/O 中没有任何内容可以处理加密的文件夹和文件。
The only way I can think of to do this is to copy the files to a folder that is not encrypted, run mage or mageUI to sign the deployment, and then copy them to the server. There is nothing in C/O that will handle encrypted folders and files.
该文件已加密,因此在发布时无法解密然后加密。
在 Windows 资源管理器中右键单击该文件,选择“属性”。在属性下单击高级。取消选中“加密内容以保护数据”复选框。
The file is encrypted already and so cannot be decrypted then encrypted when published.
Right click the file in Windows explorer, Properties. Under Attributes click Advanced. Deselect the checkbox for "Encrypt contents to secure data."