none
How to properly reference .Net Framework Dlls in project. RRS feed

  • Question

  • I am being notified of random "AppCrash" events with my application on the client server.  I have tested the code on my development machine and everything works as expected. 

    I have my Winforms project set for Any CPU, and by default the Visual Studio .net References are set to:
    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll

    Now I have looked on the client server and this path doesn't exist. 

    Is it possible that not having this path on the client could be the issue?

    Clients claim .Net 4.5.2 is installed but I don't find those folders in either Program Files locations.

    Is there a better or correct way of referencing .Net dlls to accommodate either 32/64 bit machines?

    [UPDATE]
    Client Server has the following directories:

    C:\Windows\Microsoft.NET\Framework64
    v2.0.50727
    v3.0
    v3.5
    v4.0.30319

    C:\Windows\Microsoft.NET\Framework
    v1.0.3705
    v1.1.4322
    v2.0.50727
    v3.0
    v3.5
    v4.0.30319

    I do not find a 4.5.2 folder anywhere. 

    I see that the file version of the System.dll is 4.7.3314.0

    My application targets 4.5.2.
    How does .Net do versioning in the sense of If my app requires 4.5.2, but the system has 4.7 installed does that work because it is 4.5.2 or later?

    If I try and install 4.5.2 on the server the installer states that a newer version already exists.

    Wednesday, January 30, 2019 3:37 PM

Answers

  • I believe this is a Windows 2008 Server.

    https://social.msdn.microsoft.com/forums/vstudio/en-us/home?forum=netfxsetup

    It may be best to post to the forum.

    Wednesday, January 30, 2019 4:42 PM

All replies

  • If I try and install 4.5.2 on the server the installer states that a newer version already exists.

    What Windows server O/S are you talking about?


    • Edited by DA924x Wednesday, January 30, 2019 4:37 PM
    Wednesday, January 30, 2019 4:36 PM
  • I believe this is a Windows 2008 Server.
    Wednesday, January 30, 2019 4:38 PM
  • I believe this is a Windows 2008 Server.

    https://social.msdn.microsoft.com/forums/vstudio/en-us/home?forum=netfxsetup

    It may be best to post to the forum.

    Wednesday, January 30, 2019 4:42 PM
  • Thanks. Done. I will see what feedback I can get.
    Wednesday, January 30, 2019 4:44 PM