Moving from beta 7 to beta 8 in ASP.NET 5 (MVC 6)
So Beta 8 was recently announced, and I thought I'd update DotNetMashups to beta 8.
In case you havn't been paying attention, recently it was announced that helios was no longer a thing. Helios was the loader for ASP.NET 5 in IIS. Instead they are using the http Platform Handler to proxy the connections to kestrel.
So I thought that this was going to be a difficult update. I loaded the announcements repo in my browser and got to work. You can view the Pull request here.
The first thing I did was update my visual studio tools, do a
dnvm update, then update my packages to use beta8. I then ran into was 2 build errors in my startup.cs It seemed that
app.UseErrorPage(); was renamed to
app.UseDeveloperExceptionPage(); which seems like a sensible rename. The second thing was that
app.UseExceptionHandler("/Home/Error"); again 100% sensible.
I deleted my hosting.ini, I changed my web command from using
"web": "Microsoft.AspNet.Hosting --config hosting.ini" to
"web": "Microsoft.AspNet.Server.Kestrel" and I set my web.config to look like the following. That was basically it. Overall really simple!
<configuration> <system.webServer> <handlers> <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> </handlers> <httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false" startupTimeLimit="3600" /> </system.webServer> </configuration>