I am attempting to run a .Net 2 app on a .Net 4 app pool. According to Microsoft I should add a few lines of code to my app.exe.config file. There is no such file currently but there is a Web.config file. Microsoft says:
To add a configuration file, on the Visual Studio menu bar, choose Project, Add New Item. Choose General from the left pane, and then choose Configuration File. Name the configuration file appName.exe.config. These menu choices are not available for Windows Store app or Windows phone app projects, because you cannot change the activation policy on those platforms.
But in Visual Studio 2017 there is no such option. I tried adding the lines of code to web.config but it did not fix the problem
<startup>
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v4.0"/>
</startup>
Should I create an app.exe.config file manually using a txt file?