Skip to content
Advertisement

.Net Coe App in Linux fails with – ProjectFactory did not find Project

Following is my server environment

  • Server : VPS
  • Host : AWS EC2
  • OS : CentOS Linux 8.3.2011
  • Plesk : Plesk Obsidian 18.0.34
  • .Net Version : .Net Core 3.1.11 (Installed manually from linux CLI)

What I am look for

I have created a .Net core test application and tried to run the app using following and everything works fine. App runs fine with “Hello World!”, All Good.

JavaScript

But when I tried to publish and run the app,

JavaScript

It gives following error, I have made sure path and file names all are proper.

JavaScript

I have tried API, Console and other templates. Error remains same for all.

Any help would be highly appreciated.

Many Thanks & Regards

Advertisement

Answer

Try dotnet contest.dll first. Please note the absence of option -d in the command.

Even then it does not run most likely it is a permission issue. Does the user have executable permissions? You can try giving permissions using chmod ### directory/where/dotnet/publish is done. Try giving 777 permissions and check.

You can also try clearing Nuget cache files at /tmp/NuGetScratch/lock/ using command rm /tmp/NuGetScratch/lock/* if the some other user has used chmod command. Sometimes nuget lock files do create issues if multiple users have access to lock directory.

Advertisement