PDA

View Full Version : Problems with Microsoft .net Framework 2.0


m.brandtner
12-07-2005, 11:20 PM
hallo to everybody,
I have installed the Visual Studio 2005 C# Expresson on a machine side by side with the Visual studio 2003 Enterprise Architect. After that the fortran compiler fails when building a certain solution in the Developer Studio 2003

message:

Error: Reference to undefined class 'hybridtunnelanalysis/__save'
Error: Reference to undefined class 'temperature/__save'
Error: Reference to undefined class 'utilisation_extrapolation/__save'
Error: Reference to undefined class 'degreeofhydration/__save'
Error: Reference to undefined class 'utilisation_shortestdistance/__save'
Error: Reference to undefined class 'prescribed_disp_macht/__save'
Could not create output file, error code=0x80004005

this solution compiled fine, before this installation and compiles well on another machine without having the Visual Studio 2005 installed.

After uninstalling the Visual Studio 2005 C# Express it was still the same, but after I have uninstalled the .net Framework 2.0 as well everything worked fine again.

did anybody have made this experience? any suggestions from the Lahey support team are extremlely appreciated, since it is a must for us to have the .net framework 2.0 installed.

with kind regards

markus brandtner

Lahey Support
12-20-2005, 06:15 PM
We believe we have found a possible work around to the incompatibility with systems with .NET 2.0 on them. Our .NET integration was looking for the latest installed version of the framework and not specifically v1.1. To fix this you need to do two things:

1. Force our .NET integration to use v1.1 of the framework by using an xml configuration file. This file is attached to this post and is named f95.exe.config.f. Save it to your local machine and rename it f95.exe.config. Copy this file named f95.exe.config into the same directory on your system as the file f95.exe. This directory is usually C:\Program Files\Lahey-Fujitsu Fortran\v7.1\bin.

2. Force our .NET compiler to use v1.1 of the framework by using an xml configuration file. Make a copy of the file f95.exe.config from 1. above and name this copy jwd_fort.exe.config. You should now have the files f95.exe.config and jwd_fort.exe.config in your Lahey-Fujitsu Fortran\v7.1\bin directory.

The project should now build and run without any problems. Note that version 1.1 of the .NET Framework and Visual Studio 2003 still needs to be installed on your system in order to build applications. Note also that you should be able to distribute your built Fortran .NET applications to people with just v2.0 of the .NET Framework on their system as that is backwardly compatible with v1.1.

Edit: Edited to improve the procedure. You now do not need to remove the project references to get the project to build.

m.brandtner
12-20-2005, 08:34 PM
It compiles now without errors.

Thank you for your help

with kind regards

markus brandtner

GDK_SWRI2
07-21-2007, 07:07 PM
The link does not display the config file...

http://www.laheyforum.com/attachment.php?attachmentid=38

m.brandtner
07-22-2007, 01:12 PM
I dont know why, but I can provide you with a copy of mine.

hopefully this helps

with kind regards
markus brandtner