无法安装或运行此应用程序。该应用程序要求首先在“全局程序集缓存(GAC)”...问题解决...

问题:无法安装或运行此应用程序。该应用程序要求首先在“全局程序集缓存(GAC)”中安装程序集stdole版本7.0.3300.0

Could not load file or assembly 'stdole, Version=7.0.3300.0' 

解决:

  打开工程选项-》publish->application file按钮 找到'stdole 将其状态改为include重新编译项目
 

http://www.eggheadcafe.com/software/aspnet/29390396/requires-stdole-version-7.aspx

Requires stdole Version 7.0.33 be installed in GAC ClickOnce deployment - Velupula

02-Mar-07 03:06:44
Error message "Unable to install or run the application. The
            application requires stdole Version 7.0.3300.0 in the GAC"
            Resolution:
            I had the same problem with a click once deployment.
            I solved the problem by going to the 'Publish' tab in the project
            properties and then selecting the 'Application Files' button.
            I then selected the options:
            'File Name' of 'stdole.dll'
            'Publish status' to 'Include' and
            'Download Group' to 'Required'.
            This fixed my problem when I re-published.
            However, I wanted to take the opportunity to explain what is going
            on.  Visual Studio 2005 tries to be smart about how to deploy
            references.  If the reference has CopyLocal=true, then the reference
            will be published with the application, by default.  If the reference
            has CopyLocal=false (which is the default when the a reference is
            installed in the gac, then the reference will be marked as a
            prerequisite.  This means the assembly must be installed in the
            client's GAC before the ClickOnce application will install.
            There are some assemblies that are install into the GAC because of the
            Visual Studio install, not the .NET Framework install.  It sounds like
            

转载于:https://www.cnblogs.com/forrestsun/articles/1152388.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值