What is the possible solution if the asp.net hosting provider does not allow .exe files which I require for Roslyn Compiler?
Asked Answered
E

2

0

I have developed a responsive asp.net website using Visual Studio 2015 Community by choosing the default ASP.NET Forms template . On my local computer, the website runs perfectly fine, but when I uploaded all the files of the website to the internet server, I found that I am not able to upload three files with .exe extension namely "csc.exe","vbc.exe" and "VBCSCompiler.exe" under the path "/Bin/roslyn". I raised a ticket to my hosting provider net4india and they are saying that they don't allow .exe files to be uploaded on server as they may be potential viruses. I had earlier developed this website on Visual Studio 2010 and was working perfectly fine on the hosting server also , but I wanted to make it responsive and I don't know how to use bootstrap, so I had choosen the template for ready-made coding, but now this is a big problem. I have googled a lot on this issue, but not found anything even near to what I am facing , even on stackoverflow. How can I resolve this issue ? Is any work-around possible for this like converting the .exe to .dll files or anything like that ? Please help.

Evaporate answered 18/9, 2015 at 9:20 Comment(5)
Why do you need the compiler? Can't you generate a deployment package and deploy it?Perchloride
please refer some sources to learn how to host asp.net projects. links for windows hosting - asp.net/mvc/overview/deployment/visual-studio-web-deployment/…, for linx hosting - blog.tonysneed.com/2015/05/25/…Autotoxin
@RubensFarias Earlier I had developed this website using Visual Studio 2010 and I was able to successfully deploy it on hosting server , but I developed it again using a sample asp.net forms template of Visual Studio 2015 Community to make my website responsive on mobile devices, but in doing so, I getting this issue.Can you guide me on how can I generate a deployment package and deploy it without the need of a compiler ?Evaporate
@SiddhikaChhelavda: Either pick a better host, or switch to ASP.Net 4.5 and MVC 5.Probably
@Slaks I have developed my website in .net framework 4.5.2 . is there any way to convert it to ASP.Net 4.5 and MVC 5 now ?Evaporate
E
2

You can deploy even without Roslyn with no change in code. Open NuGet Package Manager window and uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform package and rebuild & republish. This will solve your purpose. Basically this will not generate any csc.exe, vbc.exe files inside bin folder.

Encrinite answered 29/9, 2015 at 20:14 Comment(0)
O
1

No hosting provider will allow you to run exe files. If you really want that, you should go for (virtual) dedicated server.

Originative answered 18/9, 2015 at 9:33 Comment(2)
Hi Rakesh, thanks for your reply. Is there any other work around for this without uploading .exe files ?Evaporate
Many web hosts do allow EXEs. You should pick a better host.Probably

© 2022 - 2024 — McMap. All rights reserved.