Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I was assigned with the .NET Portability Analyzer scan on the Microsoft Windows Server 2016 (Datacenter)

On that datacenter we host ASP.NET Web Forms application hosted on the IIS version 10

I was told that I can download portable .NET Portability Analyzer from https://github.com/microsoft/dotnet-apiport

I did download portable version and ran this command

C:\..\ApiPort.2.8.25.Offline\ApiPort.Offline\netcoreapp3.1\ApiPort.exe analyze -r DGML -f PROJECT_DIRECTORY

I got this response

You must install or update .NET to run this application.

App: C:...\ApiPort.2.8.25.Offline\ApiPort.Offline\netcoreapp3.1\ApiPort.exe Architecture: x64 Framework: 'Microsoft.NETCore.App', version '3.1.32' (x64) .NET location: C:\Program Files\dotnet\

The following frameworks were found: 8.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more: https://aka.ms/dotnet/app-launch-failed

To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.32&arch=x64&rid=win-x64&os=win10

But I did install all the necessary frameworks, everything is up-to-date

Can some one suggest what is missing?

What I have tried:

Tried to run

C:\..\ApiPort.2.8.25.Offline\ApiPort.Offline\netcoreapp3.1\ApiPort.exe analyze -r DGML -f PROJECT_DIRECTORY
Posted
Updated 29-Jan-24 7:40am
Comments
Dave Kreskowiak 29-Jan-24 22:39pm    
Did you install .NET Core 3.1?

It is very specific that .NET Core 3.1 is missing from the ISS server machine, so you would need to check where you installed it.
And if you still have the same problem, go back to where you got it from and ask them: we are not tech support for every piece of software on the internet and you will need someone who specifically knows that software and what it is doing.
 
Share this answer
 
Comments
Member 13304618 6-Feb-24 13:27pm    
Thank you very much, it helped!
Did you even look at the note at the top of that repo?
Note: We're in the process of deprecating API Port in favor of integrating binary analysis directly into .NET Upgrade Assistant[^]. In the upcoming months, we're going to shutdown the backend service of API Port which will require to use the tool in offline mode. The instructions to use API Port in offline mode can be found here[^].
Follow those instructions and use the upgrade assistant[^] instead of a deprecated and not-supported tool.

NB: The upgrade assistant requires .NET 6.0; unlike .NET Framework 4.x, .NET applications will not automatically use a newer framework version.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900