What is the possible solution if the asp.net hosting provider does not allow the .exe files that I need for Roslyn Compiler?

I developed a responsive asp.net site using the Visual Studio 2015 community, choosing the default ASP.NET template. The site works fine on my local computer, but when I downloaded all the website files to the Internet server, I found that I could not upload three files with the extension .exe, namely: "csc.exe", "vbc.exe" and "VBCSCompiler.exe" along the path / bin / roslyn. I raised my ticket for the net4india hosting provider and they say that they do not allow .exe files to be uploaded to the server, as they may be potential viruses. I previously developed this site on Visual Studio 2010 and worked fine on the hosting server, but I wanted to make it responsive, and I do not know how to use bootstrap, so I chose a template for ready-made encoding, but now this is a big problem. I understand this problem a lot,but didn't find anything even next to what i came across, even in stackoverflow. How can I solve this problem? Is such work possible, for example, converting .exe files to DLLs or something like that? Please help.

0
source share
2 answers

No hosting provider can run exe files. If you really want this, you should go a (virtual) dedicated server.

+1
source

You can deploy even without Roslyn without changing the code. Open the NuGet package manager window and uninstall the Microsoft.CodeDom.Providers.DotNetCompilerPlatform package and rebuild and publish. This will solve your goal. Basically this will not generate csc.exe, vbc.exe files inside the bin folder.

+1
source

All Articles