none
'Application requires stdole version 7.0.3000.0 installed in the GAC' error comes when try to install published application

    Question

  • Hi,

    I have an application developed on visual studio 2008. this application uses the word API's as well. 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.
    Tuesday, January 18, 2011 3:57 AM

Answers

  • For ClickOnce, you can find the reference in your project and set "copy local" to true. This will include it in the deployment. I think that property is used at build-time, so an s&d project might pick it up and include it in the deployment.

    I don't know if you really have to have it in the GAC. A lot of assemblies can just be included in the deployment rather than installed in the GAC. (A good example is SQLCompact Edition).

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Marked as answer by Helen Zhou Thursday, February 3, 2011 6:36 AM
    Saturday, January 29, 2011 7:50 PM
    Moderator

All replies

  • Setup & deployment package or ClickOnce deployment?

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    Thursday, January 20, 2011 8:17 AM
    Moderator
  • it should be Setup & deployment.
    -Madura Shantha- Code as if the next guy to maintain your code is a homicidal maniac who knows where you live.
    Thursday, January 20, 2011 8:46 AM
  • 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. 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 | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, January 24, 2011 11:38 AM
    Moderator
  • Mike -- he's not using ClickOnce, he's using a setup & deployment package. So I don't think that solution will work for him.

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    Wednesday, January 26, 2011 8:40 AM
    Moderator
  • Yes Robin,

    It was not working for me, I tried it. any other solutions please?

    Thanks


    -Madura Shantha- Code as if the next guy to maintain your code is a homicidal maniac who knows where you live.
    Wednesday, January 26, 2011 8:43 AM
  • 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.

     

    http://msdn.microsoft.com/en-us/library/aa195478(office.11).aspx

    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 stdole.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.

    http://social.msdn.microsoft.com/forums/en-US/winformssetup/thread/fa07ed63-68d5-45b4-bbe8-c2339c4f7136/

    http://social.msdn.microsoft.com/forums/en-US/winformssetup/thread/6f5ddeb7-4490-478a-8713-552c7a0cb83c/

     

    If there's any concern, please feel free to let me know.

     

    Have a nice day!


    Mike [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 28, 2011 7:37 AM
    Moderator
  • For ClickOnce, you can find the reference in your project and set "copy local" to true. This will include it in the deployment. I think that property is used at build-time, so an s&d project might pick it up and include it in the deployment.

    I don't know if you really have to have it in the GAC. A lot of assemblies can just be included in the deployment rather than installed in the GAC. (A good example is SQLCompact Edition).

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Marked as answer by Helen Zhou Thursday, February 3, 2011 6:36 AM
    Saturday, January 29, 2011 7:50 PM
    Moderator
  • Hi madura,

    How's the issue going on? Is the reply from Robin helpful to you? If you feel the solution marked doesn’t real answer your question, please feel free to unmark it and update the thread.

    Regards,


    Helen Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, February 3, 2011 6:36 AM