IIS Cannot find web.config when publishing .netcore with .net46 only

When I publish my .net46 MVC project for azure that was created using the ASP.NET Core Web Application (.NET Framework) template, I get an HSC500 error. When viewing streaming logs, I see a message:

  • IIS received the request; however, an internal error occurred while processing the request. The main reason for this error depends on which module processes the request and what happens in the workflow when this error occurs.
  • IIS could not access the web.config file for the website or application. This can happen if the NTFS permissions are set incorrectly.
  • IIS was unable to process the configuration for the website or application.
  • The authenticated user does not have permission to use this DLL.
  • The request maps to a managed handler, but the .NET Extensibility feature is not installed.

My project.json file looks like this:

{ "dependencies": { "AutoMapper": "5.0.2", "AutoMapper.EF6": "0.5.0", "BlueStar.Core": "1.0.0-*", "BlueStar.Data": "1.0.0-*", "BlueStar.Data.EntityFramework": "1.0.0-*", "BlueStar.Domain": "1.0.0-*", "EntityFramework": "6.1.3", "EntityFramework.Extended": "6.1.0.168", "Microsoft.ApplicationInsights.AspNetCore": "1.0.0", "Microsoft.AspNetCore.Diagnostics": "1.0.0", "Microsoft.AspNetCore.Mvc": "1.0.0", "Microsoft.AspNetCore.Razor.Tools": { "version": "1.0.0-preview2-final", "type": "build" }, "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0", "Microsoft.AspNetCore.StaticFiles": "1.0.0", "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", "Microsoft.Extensions.Configuration.Json": "1.0.0", "Microsoft.Extensions.Logging": "1.0.0", "Microsoft.Extensions.Logging.Console": "1.0.0", "Microsoft.Extensions.Logging.Debug": "1.0.0", "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0" }, "tools": { "BundlerMinifier.Core": "2.0.238", "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final", "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" }, "frameworks": { "net461": { } }, "buildOptions": { "emitEntryPoint": true, "preserveCompilationContext": true }, "publishOptions": { "include": [ "wwwroot", "Views", "Areas/**/Views", "appsettings.json", "web.config" ] }, "scripts": { "prepublish": [ "bower install", "dotnet bundle" ], "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ] } } 
+5
source share

All Articles