Search code examples
ubuntu-16.04identityserver4

How to Run Identity Server 4 Source Code on Ubuntu?


I am new to Identity Server 4 and want to explore its features. So I started first by running the Source Code on Ubuntu( as it is .Net Core project). I have checked out to tag 3.1.1, installed the required SDK and able to build the project as per the given directions in the Readme.md file on github. But when I am trying to Run the IdentityServer4.dll specified in the path IdentityServer4/src/IdentityServer4/src/obj/Release/netcoreapp3.1/IdentityServer4.dll, I am getting an Error as follows:

*Unhandled exception. System.MissingMethodException: Entry point not found in assembly 'IdentityServer4.Storage, Version=3.1.1.0, Culture=neutral, PublicKeyToken=***********'. Aborted (core dumped)*

Can Anyone please tell me am I doing anything in the wrong direction.


Solution

  • If you are new to ASP.NET core I recommend you to firstly create a normal HelloWorld application in ASP.NET core and deploy that to ubuntu server but for that you need to install several things on your ubuntu servers to run a dotnet core application and that are as belows:-

    wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    
    sudo dpkg -i packages-microsoft-prod.deb
    sudo apt-get update
    sudo apt-get install apt-transport-https
    sudo apt-get update
    sudo apt-get install dotnet-runtime-3.0
    sudo apt-get install nginx
    sudo apt-get update
    sudo apt-get install dotnet-sdk-3.0
    

    After all that you have to run your dll which is run like this:

    dotnet [filename].dll
    
    

    NOTE:- Please Don't forget to reload your nginx after your changes as it also require some kind of changes.

    sudo nginx -s reload