简体   繁体   中英

How to create exe of a web application in asp.net

I have to create an exe of an website created in asp.net using visual studio 2010. I don't known whether exe of web application can be created or not, but I want that my application with database will be able to run on another system where visual studio will or will not be there.And my code should not to be visible to the users using that exe or running that project. How can I achieve it?!

you can't make a exe for web application but you can do one thing to solve your problem

1)make a window project in this project make a code for run iis and open browser with your web application url and make your window application form hide

2) now make exe of your window application project

You cannot create an executable file in asp.net.

All you can do is create a website using visual studio. once done, publish your website. Deploy it to IIS or host it to a paid web hosting company so you can have your domain. Once done, other users can see your beautiful and elegant website.

You don't create exe of a web application. It is hosted on IIS. So first of all you have to publish your website and then you can host it. For more information you can refer to this one: http://msdn.microsoft.com/en-us/library/20yh9f1b%28v=vs.100%29.aspx Or google for more articles.

Posting to an old thread, but I came across this situation and found the solution. Following footsteps of Spring Boot and other containerized solutions, I believe now Microsoft also has added this feature.

My scenario : Created a basic REST based Web application and built it. This created Debug and Release folder within \\bin within the root directory of Web application.

It also creates an exe file.

You just need the necessary runtime dependencies (like .NetCore 3.1 etc in my case) to run this exe.

I copied the entire Web application folder to a Windows Server 2016. There were some issues initially, however later when I added the required dependencies (dotnet folder which was present in my earlier machine), it worked like a charm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM