Set up the server
In project.json
add another entry in "dependencies"
:
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final"
The resulting dependencies should look like this:
"dependencies": { "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final", "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final", "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final" },
Replace the body of Configure
in Startup.cs
with
public void Configure(IApplicationBuilder app) { app.UseIISPlatformHandler(); app.UseDefaultFiles(); app.UseStaticFiles(); }
Please login to continue.