Home Deploy ASP.NET RC1 WebApp in IIS 8.5

# Deploy ASP.NET RC1 WebApp in IIS 8.5

user11103
1#
user11103 Published in September 19, 2018, 6:44 pm

I am trying to deploy an ASP.NET 5 WebApp in a Windows Server 2012 R2 that has IIS 8.5 installed.

The source code that I have here is a new ASP.NET Web Application. If I build it and run it in Visual Studio 2015, then works fine.

Now... I want to use the publish wizard to deploy it in ISS 8.5 so what I do is...

1. Right click on the project name (WebApplication5)
2. I created a custom profile (I named as localhost)
3. I add the target location. C:\inetpub\wwwroot
4. I configure the Settings
• Configuration: Release
• Target DNX Version: dnx-clr-win-x64.1.0.0.rc1-update1
5. Then I publish the web app.

After that, I have the following folder structure in my C:\inetpub\wwwroot

C:\inetpub\wwwroot
- approot
- packages
- runtime
- src
- ... bunch of files
- logs
- wwwroot
- css
- images
- js
- lib
- some files including web.config


Now I edited the permissions of the C:\inetput\wwwroot to include IIS_IUSRS and IUSR (I gave them full access for now to discard permission issues)

Finally, I went to ISS manager to Default Web Site -> Right Click -> Manage Website -> Advanced Settings -> and under physical path I added C:\inetpub\wwwroot\wwwroot

I restarted the IIS Server and when I try to browser to the default site I got the following message...

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information:

Module IIS Web Core

Handler Not yet determined

Error Code 0x8007000d

Config Error

Config File \?\C:\inetpub\wwwroot\wwwroot\web.config

And finally... this is the content of the web.config file...

<configuration>
<system.webServer>
<handlers>
<add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
</system.webServer>
</configuration>


What am I missing? That used to be super easy on previous versions of ASP.NET but I can't configure this properly now.

Any pointers? Thanks!

• Have you installed ASP.NET 4.6/5 on this machine? get.asp.net This is not installed by default yet. – Maxime Rouiller Dec 18 '15 at 17:56
• Have you also installed the HttpPlatformHandler? It is required for ASP.NET 5. – Maxime Rouiller Dec 18 '15 at 17:57
• EDIT... I don't have installed the HttpPlatformHandler, I will do it now. Regarding to the ASP.NET 4.6/5. How can I check that out? I believe I have installed latest one as I am using latest VS2015 – user3587624 Dec 18 '15 at 17:58
• No but I provided you both link. get.asp.net and iis.net/downloads/microsoft/httpplatformhandler – Maxime Rouiller Dec 18 '15 at 17:59
• It needs to be installed on the server. Not just on the OS developing the application. Are those 2 the same as in... are you deploying locally to IIS? – Maxime Rouiller Dec 18 '15 at 18:01