以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Dot NET,C#,ASP,VB 』  (http://bbs.xml.org.cn/list.asp?boardid=43)
----  "VC软件包不可用或未注册"问题的解决  (http://bbs.xml.org.cn/dispbbs.asp?boardid=43&rootid=&id=11883)


--  作者:admin
--  发布时间:11/9/2004 2:26:00 AM

--  "VC软件包不可用或未注册"问题的解决
发信人: Nineteen (-_-#!), 信区: DotNET
标  题: "VC软件包不可用或未注册"问题的解决
发信站: BBS 水木清华站 (Thu Jun 17 17:34:01 2004), 站内

http://zhuonline.51.net/blogs/archives/000045.html

"VC软件包不可用或未注册"问题的解决

困扰我两周的VS.NET问题今天终于解决了,其实就是安装过程中一个方法的小小失误,这个失
误提醒着我一个简单的道理:软件稳定性>>磁盘空间.感谢dudu(http://www.cnblogs.com/du
du)提供的帮助,同时也把这篇文章拿出来与大家一块分享.原文是英文版的,我翻译了一下,
水平所限瑕疵在所难免,望发现者给予指正. zhuonline zlponline@163.com



VS.NET中"VC软件包不可用或未注册"问题的解决.2004-2-21
--------------------------------------------
by zhuonline http://zhuonline.51.net/
感谢dudu的帮助
以下是这片参考文章出处:
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/s
upport/kb/articles/q320/4/27.asp
--------------------------------------------
微软知识库文章
Microsoft Knowledge Base Article



问题:"VC软件包不可用或未注册"错误信息
PRB: "VC Package Not Available or Not Registered" Error Message



症状:
当建立一个WinForms应用程序时,收到下述错误信息:"VC软件包不可用或未注册".这个错误
甚至会在看上去一个成功的安装之后出现.
SYMPTOMS
When you create a WinForms application, you may receive the following error mess
age:
"VC Package not available or not registered"
This behavior can occur even after what appears to be a successful installation.




起因:
如果Visual Studio.NET安装程序发现一些TLB文件和DLL文件已经存在的话,就不会再次在计
算机中注册这些文件,因此
就有可能发生"VC软件包不可用或未注册"的提示.
在多数情况下,旧版本的的Visual Studio .NET容易引起这个错误,尤其是旧版本安装在另一
个操作系统下.
CAUSE
This behavior seems to occur because the Windows Installer does not register TLB
s and DLLs if the installer finds that these items already exist. In most cases,
a previous version of Visual Studio .NET causes this behavior, even if the prev
ious installation was under a different operating system.



解决方案:
要解决这个问题,需要运行Visual Studio .NET修复程序.由于修复程序会强制注册一些安装
程序中没有被注册的项目,因此能更有效地解决这个问题.
RESOLUTION
To resolve the problem, run the Visual Studio .NET repair. A repair is more effe
ctive for fixing this issue because the repair process forces registration of it
ems that are not re-registered during an install.



按照下列步骤运行修复程序:
在开始中,指向"设置",点击控制面板,然后点击"添加/删除程序";
在列出的已安装程序列表中,点击Visual Studio .NET,然后点击"更改/删除";
点击Visual Studio .NET安装对话框1 2 3项目中的第二项;
点击"修复/重装",然后按照屏幕提示操作.



To run the repair, follow these steps:
On the Start menu, point to Settings, click Control Panel, and then click Add/Re
move Programs.
On the list of installed programs, click Visual Studio .NET, and then click Chan
ge.
Click the second item in the 1 2 3 Visual Studio Setup dialog box.
Click Repair/Re-install, and then follow the onscreen instructions.



更多相关信息:
重现这个问题的做法
要重现这个问题,最好有装在独立分区上的两个操作系统.两个Windows XP Professional会
达到这个目的.
在一个操作系统下安装Visual Studio .NET;
在另一个操作系统下Visual Studio .NET,安装过程中改变安装的缺省路径,以匹配第一次安
装的路径.
两次安装结果都会宣告成功.
然后启动第二次安装的Visual Studio .NET(你就会发现这个问题的重现).
MORE INFORMATION
Steps to Reproduce the Behavior
To reproduce the problem, it is best to have two operating systems installed on
separate partitions. Two installations of Windows XP Professional will work.
Install Visual Studio .NET under one operating system.
Install Visual Studio .NET under the other operating system; change the default
location to match the installation location of the first installation.
Both installs report as successful.
Start the copy of Visual Studio .NET that you installed in step 2.



这种安装形式是永远不推荐的,即使两次安装选项完全相同,而且你也会以此节省磁盘空间,
但这种方法出现潜在问题的机会是很大的.如果一个Visual Studio .NET改变了文件和注册
危险.
This type of installation is never recommended. Even if the installation selecti
ons are exactly the same, and you can save disk space by performing this type of
installation, the potential for problems is high. If one installation changes f
iles and registry entries, these changes are not recorded by the other installat
ion, which creates a substantial risk for unexpected results.


--
——长夜漫漫,无心睡眠……难道狼妹妹也睡不着吗?                                


※ 来源:·BBS 水木清华站 smth.org·[FROM: 202.206.3.*]                          


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
4,707.031ms