How to properly reference .Net Framework Dlls in project.

  • Thread starter Thread starter MrAvgProgrammer
  • Start date Start date
M

MrAvgProgrammer

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

Continue reading...
 
Back
Top