Visual Studio发布Web项目报错:Unable to add 'xxx' to the Web site. Unable to add file 'xxx'. The specified file could not be encrypted.

背景

Visual Studio下的Web项目

现象

发布时遇到Unable to add ‘xxx‘ to the Web site.  Unable to add file ‘xxx‘. The specified file could not be encrypted.的报错

原因

  1. 这些文件(文件夹)被设置为"加密"。可能因为这些文件是从Internet上下载并复制到项目下的文件夹,在被下载前就已经被启用"加密"选项
  2. 这些文件(文件夹)来自于其他计算机并被锁定

解决办法

对于由原因1造成的:

在文件管理器中定位到目标文件(文件夹),右键->属性->高级->取消加密选项,重新发布,错误解除

对于由原因2造成的:

在文件管理器中定位到目标文件(文件夹),右键->属性,点击"解锁"按钮(如果有的话)。重新发布,错误解除

如果被锁定的是下载来的zip文件,其中所有文件默认也是被锁定的。Windows没有天生提供批量解锁多个文件的捷径(选取多个文件后右键弹出属性菜单,会发现解锁按钮不见了)。最简单快速的办法是在解压前将zip文件解锁,这样解压出来的文件就全部是非锁定的了

Visual Studio发布Web项目报错:Unable to add 'xxx' to the Web site. Unable to add file 'xxx'. The specified file could not be encrypted.

时间: 2024-08-25 07:09:48

Visual Studio发布Web项目报错:Unable to add 'xxx' to the Web site. Unable to add file 'xxx'. The specified file could not be encrypted.的相关文章

Visual Studio 2013执行项目报错:HTTP 错误 500.22

转至:http://www.codingwhy.com/410.html 具体报错 HTTP 错误 500.22 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置. 解决方法 1.选中项目,注意右下角的属性 2.把属性中的“托管管道模式”改为“经典” 3.ctrl+s保存,重新启动项目,项目就正常运行了

MyEclipse10+Flash Builder4+BlazeDS+Tomcat7配置J2EE Web项目报错(一)

1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-6-23 20:15:55 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using

利用Eclipse中的Maven构建Web项目报错

利用Eclipse中的Maven构建Web项目 1.在进行上述操作时,pom.xml一直报错 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.o

利用Tomcat部署Web项目报错

1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 八月 18, 2014 7:35:40 下午 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.24 u

jacob 多个web项目报错 jacob-1.14.3-x64.dll already loaded in another classloader jacob

多个web项目报错 jacob-1.14.3-x64.dll already loaded in another classloader jacob 这个问题困扰了很久,网上很多解决方案,很多都不成功,可用的资料也很少,主要问题是一个项目加载了  jacob-1.14.3-x64.dll  这个dll文件,其它项目就不能加载. 最终解决方案如下 1,部署环境tomcat,在tomcat lib 中加入jacob jar 包 2,在tomcat webapp 下 对应使用到 jacob 的项目下的

Eclipse maven创建web项目报错Could not resolve archetype

1.下载http://repo1.maven.org/maven2/archetype-catalog.xml 通过eclipse下载和网页下载我这里都比较慢,最后用的迅雷下载 2.将本地xml文件配置到eclipse中 依次打开windows--preferences--maven--archetypes--add local catalog 3.选择下载的xml文件,description随便填写,例如maven_catalog 4.创建项目,这一步时,catalog选择自己导入的,里面东西

利用Eclipse中的Maven构建Web项目报错(二)

利用Eclipse中的Maven构建Web项目 1.错误描写叙述 [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ---------------------------------

Java Web项目报错java.lang.NullPointerException at org.apache.jsp.front.index_jsp._jspInit(index_jsp.java:30)

环境:myeclipse+tomcat6+jdk6 今天搭建了一个Java Web项目,访问index.jsp时报如下错误: 严重: Servlet.service() for servlet jsp threw exceptionjava.lang.NullPointerException    at org.apache.jsp.front.index_jsp._jspInit(index_jsp.java:30)    at org.apache.jasper.runtime.HttpJs

Eclipse/IDEA中使用Maven创建Web项目报错

Eclipse中的错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp-1.0.jar:RELEASE from any of the configured repositories IDEA中的的错误:The desired archetype does not exist(org.apache.maven.archetypes:maven-archetype-webapp:1.0)