Silverfrost Forums

Welcome to our forums

VS2010 gets Message Unable to find a version of the runtime

1 Jun 2011 11:20 #8339

Hello, I have a question: If I compile my Fortran DLL .NET Program:

PROGRAM Main
OBJECT('System.String[]') STR1 
STR1=NEW@('System.String[]',10)
END

i get the following Message: 'Unable to find a version of the runtime to run this Application' :?: I use VS2010 Can anyone help me?

Greetings from Germany! Michael

1 Jun 2011 8:11 #8343

I don't know exactly what is wrong but your machine will probably have various versions of the .NET runtime installed and these correspond to DBK_LINK.exe, DBK_LINK2.exe etc.

The FTN95 command line option /CLR_VER is relevant here but only when also using /LINK.

The thing to do is to look at the FTN95 commands provided by the FTN95 Visual Studio plugin to see which of the DBK_LINKs is being used and then compare this with the installed versions of the .NET runtime.

There ought to be a setting in the Project Properties that provides the relevant link.

This is all just a guess from my memory but it may help you.

Please login to reply.