惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

博客园 - 李晓

离开程序员的行业3年了,这次回来,心情波动很大 现在不做程序员了,不会了 现在的生活 芙蓉姐姐大片美若天仙 - 李晓 - 博客园 博客地图怎么做? 我是一个很不称职的管理员 写了一个以树形显示文档库的WEBPART,可根据权限显示文档库 更正用AJAX实现IE TREE无刷新取值的方法 转发: Visual Studio 2005常用插件 转发:编程之余保护眼睛[不断更新ing...] 转发:Session研习笔记 转发:使用JavaScript删除ASP.NET生成的HttpCookie 大病了一场,不过闲时对AJAX探索时,实现了IE TREE无刷新 提供可在WSS上使用的MYTREE 2006年的长春.NET俱乐部 关于WSS搜索的问题 AJAX(2) 关于AJAX开发 在C#中实现MSN消息框的功能
在将WEBPART打包成*.CAB包和*.MSI安装包后,竟然无法将其安装到指定的WSS网站
李晓 · 2005-11-30 · via 博客园 - 李晓

我遇到了一个错误:

在将WEBPART打包成*.CAB包和*.MSI安装包后,竟然无法将其安装的指定的WSS网站。

在执行stsadm.exe -force -o addwppack -url http:\\jason:8080\ -f c:/1.cab 命令后,出现的错误如下:

c:/1.cab: 部署到 http:\\jason:8080\
根级别上的数据无效。 行 1,位置 39。
c:/1.cab: Web 部件配置失败。
这个是怎么回事呢?

我的第一反应是检查 Manifest.xml 文件是否写错,可是,没有任何错误。

接着又检查我的代码,也无任何错误。这下我可蒙了!

我想了半天,确定出现这样的错误一定是XML类型的文件出错了,但是webpart项目程序除了Manifest.xml

件还有别的XML类型文件吗?

我突然想到,还有XML类型文件,那就是*.dwp文件!

我检查了所有的*.dwp文件,发现我把它们的编码方式保存错了!

由于公司有用繁体系统写程序的家伙,我们为了之间查看代码的方便,就需要把所有的程序编码转换成

Unicode 格式。但是,WSS是用UTF-8的编码格式的,所以,在安装*.CAB包和*.MSI包时,*.dwp文件就变成了

乱码,这样,WSS由于无法识别就导致了这个错误。

所以说,不要更改*.dwp文件的默认保存的编码方式,切记!