Hosting WCF and ASP.NET with IIS - asp.net-mvc

I want to host WCF-services and an ASP.NET MVC4 site with IIS on Windows Server 2008 R2.
Which server roles do I have to install to make this work?
edit:
I have installed the roles.
I have internet-connection on my virtual machine.
I can ping from vm to pc.
I can not ping from pc to vm... How can I fix this?

The roles are not completely updated for these new technologies.
Look at this for WCF
http://msdn.microsoft.com/en-us/library/ms751527.aspx
and this For MVC
http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-cs
Will take a little bit more of a manual installation.

Related

Web Essentials AspNetCore PWA - No matching service worker detected when published to IIS

I built an ASP .Net MVC web application using .Net 6 and Web Essentials AspNetCore PWA by madskristensen
Everything is normal in localhost Visual Studio or localhost IIS, but no matching service worker when accessed using IP IIS
Visual Studio Localhost: (https://i.stack.imgur.com/DtKYd.png)
IIS Localhost: (https://i.stack.imgur.com/wo4d4.png)
IIS with IP Address: (https://i.stack.imgur.com/Jlcjd.png)
I've googling so many time, but none of them are works for me
Any suggest what should i do?
Thanks before

Hosting MVC application on linux server

I am developing an MVC 4 application on windows and that is to be hosted on Debian. I am a newbie to web development. I am using Mariadb in backend.
I don't know how to deploy this application. Can anybody provide help to me?
UPDATE
I am using Mono 3.2.3
There is no way to host a Microsoft asp.net mvc 4 Application on Linux UNLESS you use Mono (Never tried it but the honey is here ).
OR
If you don't want to buy mono,
Wait for vNext ! He Will be among us around April 2015 as Microsoft Announced at the DotNet-Conf.
MEANWHILE
you can download VisualStudio 2014 CTP and taste the golden kvm
More resources
I'm running 4 MVC4 sites on my Ubuntu 16.04 server and all I did was install a ftp server and I put all the sites in my user home dir under public_html (eg: public_html/site1 public_html/site2) then use the ftp publish method of visual studio which will build the site and copy everything over via ftp then you can just browse your site.

Why do I need to switch off module inheritance to make my ASP.NET MVC site work on Windows Server 2008?

I am developing an ASP.NET MVC 5 site targeting .NET 4.5.1 and for some reason I am struggling to deploy it on a Windows Server 2008 Standard edition server.
To be clear the site runs fine on my Windows 7 development machine and my Windows Server 2012 test environment but when I deploy it to the Windows Server 2008 in question I get this error:
At this point I tried all the advice about reinstalling ASP.NET and enabling runAllManagedModulesForAllRequests that I found in threads like this one ASP.NET MVC on IIS 7.5 but nothing would make it work.
Eventually I found that I could fix the problem by switching off the "Invoke only requests to ASP.NET applications or managed handlers" option for all managed modules in the application. What this did in essence was to make the following changes to the web.config file:
So my question is two-fold. Firstly, why is this change necessary to get the site to work? Secondly, am I safe to change the web.config permanently given that it will be installed on other servers as well, not all of which will be Windows Server 2008?

Using the same certificate with a windows service and an ASP.NET MVC web application (in IIS)

Is it possible to use the same SSL certificate for a windows service and an ASP.NET MVC application in IIS.
Both the Windows service and the MVC app are hosted on a Windows Server 2008 machine with IIS 7.
The MVC web is accessed with www.mydomain.com, and the services are accesed through ip_address/myService/method...
SSL Certs are tied to domain names, not IP address. So I belive the answer to your question is no.
See:
ip based ssl certificate

what are the server requirements to host an asp.net mvc application

Hai guys,
Any one knows what are the server requirements to host an asp.net mvc application....
From MSDN:
Operating Systems: Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP
.NET version: .NET Framework SP1

Resources