Publishing a Web Application Project Using Visual Studio

I am using Visual Studio 2008 and trying to publish a web application project, but it continues to fail when trying to add files to the project. Below is a sample message;

JavaScript publishing folder ... Unable to add 'JavaScript / hoverIntent.js' to the website. Failed to add the file 'JavaScript \ hoverIntent.js. The specified file cannot be encrypted.

This also happens for image files. I am lost why this is happening. I have to add that I am using Windows 7 build 7100, not sure if this caused the problem?

Any help is much appreciated

+4
source share
5 answers

This message in BlackMarble indicates that you can have the destination directory set using encryption. It seems that the exception you see is the inability of the VS publishing process to handle this.

To work around this problem:

  • use VS to publish to the staging directory. Somewhere on your PC is possible.
  • copy the files yourself (using a batch file) to the server

This is a workaround, at least.

+2
source

I know this is an old topic, but I found it when I was looking for the same problem.

My solution was to remove the "Encrypt" flag from Windows Explorer for the listed files (right click → Properties → Advanced)

+13
source

Disable the encrypted Windows file system in cmd as follows:

fsutil behavior set disableencryption 1 

Then restart your computer.

+2
source

When I had this problem when publishing a Visual Studio 2010 web project either in a local folder or on a host, I was at a dead end. Visual Studio did not indicate which files or even folders caused the problem. I did not know that there were any encrypted files in the solution, and I could not find them. I could not update my site.

I was looking for files with encrypted files, but none of the solutions related to efsinfo.exe was suitable for Windows 7, then I found an example using the encryption command:

https://superuser.com/questions/58878/how-to-list-encrypted-files-in-windows-7

Several different responses were found to search for encrypted files. I used the command line method.

I opened the command line at the root of my application and did:

D: \ Data \ Code2011> cipher / s: MyWeb> Encryption.txt

Then I did a case-sensitive search in Encryption.txt for lines starting with E [space] or "file is encrypted"

I found two .htc files that were encrypted in the styles subfolder and were able to decrypt them on the Advanced tab of the file properties of the explorer.

Then the website is compiled and published by "OK".

+1
source

I also had this problem. I set the properties of the source files so that they are not encrypted, but which still do not work. It turned out that the files were cached in the temporary deployment folder, and I also had to uncheck the encryption. He probably would have deleted the temporary deployment directory, but another way worked.

0
source

All Articles