SOLVED

.net Core 5 or 3.1 installation on Existing SharePoint 2019 Server

%3CLINGO-SUB%20id%3D%22lingo-sub-1963064%22%20slang%3D%22en-US%22%3E.net%20Core%205%20or%203.1%20installation%20on%20Existing%20SharePoint%202019%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1963064%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20want%20to%20host%20custom%20solutions%20that%20run%20on%20asp.net%20core%203.1%20%2F%205.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20supported%20to%20install%20.net%20core%203.1%2F5%20on%20existing%20SP%202019%20server%20(where%20you%20already%20have%20.net%20FX%204.7.2%20running).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPurpose%20is%20to%20host%20our%20backend%20of%20onprem%20SPFx%20solution%20on%20same%20application%20frontends%20of%20SharePoint%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1963064%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1963800%22%20slang%3D%22en-US%22%3ERe%3A%20.net%20Core%205%20or%203.1%20installation%20on%20Existing%20SharePoint%202019%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1963800%22%20slang%3D%22en-US%22%3EMight%20I%20ask%20why%20you%20want%20to%20host%20the%20custom%20solution%20in%20your%20SP%202019%20farm%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

 

We want to host custom solutions that run on asp.net core 3.1 / 5.

 

Is it supported to install .net core 3.1/5 on existing SP 2019 server (where you already have .net FX 4.7.2 running).

 

Purpose is to host our backend of onprem SPFx solution on same application frontends of SharePoint 

3 Replies
Might I ask why you want to host the custom solution in your SP 2019 farm?

@Juan Carlos González Martín 

 

Actually its SPFx based solution which needs REST API backend that communicates with SQL server. its a system with few custom forms. The backend does not use CSOM also, it uses SQL server at the backend which is also same SQL of SharePoint server.

 

We don't want to have new hardware for just this application, so we prefer to use same SP 2019 frontend server to host ASP.net Core 3.1/5 app as well.

best response confirmed by Shahid Roofi Khan (Occasional Contributor)
Solution

@Shahid Roofi Khan Personally, I wouldn't run this Web API on your SharePoint farm servers. I would host the application on another server if possible. You wouldn't want to take away resources that your SharePoint Environment needs.

Now, I don't have the specific answer to your question, but .NET core and .NET Framework can co-exist and run together on the same server in IIS. I am doing this in non-SharePoint environments, so I don't see a reason why you couldn't.