How to Install a DLL to the GAC on Windows Server 2012 Using Only PowerShell In scenarios where adding a DLL to the Windows GAC (global assembly cache) using gacutil.exe does not work, or needs to be scripted, you can use PowerShell. 'File Name' of 'stdole.dll'. There are some assemblies that are install into the GAC because of the Visual Studio install, not the.NET Framework install. Hi, I have an application developed on visual studio 2008. This application uses the word API's as well. Gamehouse gratis untuk laptop reviews. When user is trying to install the published application, he is getting the exception seying 'Application requires stdole version 7.0.3000.0 installed in the GAC'. How can I get this dll? Do I need to install it in the client machine manually? Is there a way to add it to the GAC when installing the application on the client machine? -Madura Shantha- Code as if the next guy to maintain your code is a homicidal maniac who knows where you live. Hi madura shantha, Go 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. Download film mahabharata bahasa indonesia. 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 this is the situation. If there's any concern, please feel free to let me know. Have a nice day! Mike [MSFT] MSDN Community Support| Please remember to mark the replies as answers if they help and unmark them if they provide no help. Hi madura shantha, RobinDotNet, thanks for your mentioned. I have not note the setup project the first time. But I think this issue is not related to if this is a clickonce or other type setup project after I found the following information. Unlike in Office XP, stdole.dll, adodb.dll and msdatasrc.dll PIAs are shipped in Office 2003. So, like all Office 2003 PIAs, developers should not re-distribute them. I think the probable cause is you add the stdol e.dll to the Prerequisites. So I think maybe you can try to delete this reference to not let the setup install this library again. The following threads also discussed the same error message, maybe they can give you some help. Doom unexpected guests. If there's any concern, please feel free to let me know. Have a nice day! Mike [MSFT] MSDN Community Support| Please remember to mark the replies as answers if they help and unmark them if they provide no help. Hi, I'm trying to install stdole.dll to GAC with Installshield 2009. As far as I know this is not a.NET assembly so I've set my component to '.NET Scan at Build' to 'None'. Target is [GlobalAssemblyCache]. But the file is never installed to GAC and it doesn't show up using 'gacutil.exe /l'. If I manually use 'gacutil.exe /i stdole.dll' it's installed and shows up in list. I guess I could shell the instruction in a script but I rather use the default facilities in InstallShield. I've also tried setting the '.NET Scan at Build' property to 'Properties Only' but I get this: What can I do to force the installation?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |