locked
Oledlg.dll missing in Server Core (VS 2012 dependency) RRS feed

  • Question

  • I have an application that installed and ran fine on Windows server 2008 r2 Core when it was written in C++ VS2005. However, to cope with new Windows platforms, I have had to rebuild my application in C++ VS 2012. Now, without any other functional changes, I can no longer install my app in Server 2008 r2 core. The installer invokes several custom actions that reside in one of my C++ DLLs. Using depends.exe, I can see that the problem is that my DLL now has a dependency on oledlg.dll which is not part of server core.

    What is the best way to obtain this DLL? I can copy it over from a Windows Server 2008 r2 GUI system and that fixes my problem but this isn't very elegant. I am also not impressed by the fact that this is a problem caused by VS 2012 rather than anything I have done. BTW - I also installed the VS 2012 Redistributables on my core system but this did not have any effect.

    Tuesday, March 24, 2015 3:06 PM

Answers

  • Hi Weebo,

    Server core version is a basic system which you only install the few services and components that you need.
    We can find this .dll file under the folder "C:\Windows\System32" and "C:\Windows\SysWOW64" on the Server with GUI. However, it isn't located on servser core, and the available DLLs with Server Core can be checked here:
    https://msdn.microsoft.com/en-us/library/ms723876.aspx?f=255&MSPPError=-2147217396

    I would like to suggest you can go on with the workaround on Server core or install this app on full installation server.

    If there is anything else regarding this issue, please feel free to post back.

    If you have any feedback on our support, please click here.

    Best Regards,

    Anna Wang

    TechNet Community Support


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com

    • Proposed as answer by AnnaWY Tuesday, April 7, 2015 10:43 AM
    • Marked as answer by AnnaWY Friday, April 10, 2015 7:05 AM
    Wednesday, March 25, 2015 2:46 AM

All replies

  • Hi Weebo,

    Server core version is a basic system which you only install the few services and components that you need.
    We can find this .dll file under the folder "C:\Windows\System32" and "C:\Windows\SysWOW64" on the Server with GUI. However, it isn't located on servser core, and the available DLLs with Server Core can be checked here:
    https://msdn.microsoft.com/en-us/library/ms723876.aspx?f=255&MSPPError=-2147217396

    I would like to suggest you can go on with the workaround on Server core or install this app on full installation server.

    If there is anything else regarding this issue, please feel free to post back.

    If you have any feedback on our support, please click here.

    Best Regards,

    Anna Wang

    TechNet Community Support


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com

    • Proposed as answer by AnnaWY Tuesday, April 7, 2015 10:43 AM
    • Marked as answer by AnnaWY Friday, April 10, 2015 7:05 AM
    Wednesday, March 25, 2015 2:46 AM
  • Thank you for the reply.
    Wednesday, March 25, 2015 8:08 AM
  • Copying the DLL over from a system which has a GUI seems like a workaround to me. What I would really like to know is why, when I rebuild my application in VS 2012 that this suddenly becomes a dependency. Is there something I can change in my project settings which could remove this dependency?
    Friday, April 10, 2015 7:09 AM
  • Hi Weebo,

    Since Server Core doesn't contain this .dll file, if you want to change the setting of the application in VS 2012 to get rid of this .dll file, I recommend you can post in Visual Studio forum for more efficient support:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio

    If there is anything else regarding this issue, please feel free to post back.

    If you have any feedback on our support, please click here.

    Best Regards,

    Anna Wang

    TechNet Community Support


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Friday, April 10, 2015 7:18 AM
  • Thank you for pointing me in the direction of the correct forum. There are so many different ones these days, it is difficult to know where to start.
    Friday, April 10, 2015 2:10 PM