问题:无法安装或运行此应用程序。该应用程序要求首先在“全局程序集缓存(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
            
posted on 2008-04-14 11:04  forrestsun  阅读(19305)  评论(10编辑  收藏  举报