gaamaa resosa

gaamaa resosa

  • NA
  • 43
  • 3.1k

Can we publishing ASP.Net Core Web Application as native dll or exe

Oct 17 2020 8:54 PM
Why I need native dll/exe ?
To protect from decompilers which retrive 99% source code back from the binary.
Native build binaries can show only assembly after decompile.
 
 
Question 1:
Can we make native output dll/exe from .NET core and publish it in any Windows web Server ?

I tried the below solutions and published on local IIS, but no success.
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-29408-02" />

https://www.codeproject.com/Articles/5262251/Generate-Native-Executable-from-NET-Core-3-1-Proje?msg=5753507#xx5753507xx
https://secanablog.wordpress.com/2018/06/08/compile-a-net-core-app-to-a-single-native-binary/
https://archive.codeplex.com/?p=crossnet

I get few errors every try like below:  

Tried A)
hostingModel="InProcess"
Error thrown: HTTP Error 500.38 - ANCM Application DLL Not Found
Common solutions to this issue:
Application DLL not found. Confirm the application dll is present.
Single-file deployments are not supported in IIS

(Only on IIS ? May be yes on the real world servers ?)

Tried B)
hostingModel="OutofProcess"
Error thrown: HTTP Error 500.30 - ANCM In-Process Start Failure

Question 2:
Can we host .NET Core website on any Linux Web hosting servers like Hostinger/HostGator/SiteGround etc ?
I think on Linux VPS we can host, but I ask regular web hosting servers.

Question 3:
Is there any successful proven .NET to Native dll/exe converter which works for Web Application ?
I tried http://www.dotnetnative.online/
But they refuse dll and may support only WinForm applications, not sure.


Obfuscation:
I think most of you may say Obfuscation is the only solution.
But what is the use. There are so many De-Obfuscators also available for free.
And most of the obfuscated binaries won't work properly.

Answers (2)