Is it possible to run ASP.NET MVC without IIS?

Asked

Viewed 475 times

0

It is possible to run an ASP.NET MVC application without IIS?

I wanted the user to be able to run this ASP.NET MVC application without having to configure IIS, I found this link, but I didn’t understand how I could apply in ASP.NET MVC.

  • This is something very complicated to do. I’ve looked for it, what I found was through . Net Core (MVC5) that you can do with Kestrel or Weblistener. The most I could with MVC4 was running with IIS express, which was initialized by a windows Forms.

  • Murilo, would post in example with MVC4 and IIS Express?

  • Take a look here https://gist.github.com/cairey/5501024 Perhaps someone more experienced will come along to help you. Good luck there

  • In which version of ASP.NET MVC do you want it?

  • Gypsy, in version 4.

2 answers

1

Yes, it is possible

It may not be what you want, but it’s possible.

You need the .NET Core where you have the new ASP.NET MVC that doesn’t need an external server. And now it has become the standard.

More information on What is ASP.NET vNext? What is the correct name?.

Study it and understand that it is a different product. Of course you will have to adapt your application. Only you can say whether it pays or not.

It is also possible to rotate the ASP.NET Traditional MVC with Mono. Has a deeper analysis in the OS.

Otherwise it is not possible, the original ASP.NET was not developed to run without a built-in HTTP server, but it does not need to be IIS.

  • I didn’t understand the downvotes, and this question should be marked as the right one. + 1 for having cited Mono as well.

  • @Renan I understand, I spoke on ASP.NET Core and there are people who do not like it, think that nobody should use and prefer to ignore it. Then those who speak of it seem to deserve negative. There is even another less obvious reason that I prefer not to speak publicly.

-3


It is possible to run an Asp.net mvc application without IIS?

In short, no. ASP.NET MVC4 is very dependent on IIS.

I wish the user could run this application Asp.net mvc without having to configure IIS, I found this link, but I didn’t understand how I could apply in ASP.NET MVC.

Note that Hostable Webcore (HWC) is still an extension of IIS, only in order to allow its own application to be also part of an indirect implementation of IIS.

The sample code is integer here.

The big problem with this approach is that it’s very old. This type of approach only exists for IIS7, and requires you to mount a separate console application only to run a server that implements a good part of IIS7.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.