nam
nam

Reputation: 23769

ASP.NET 5 web app not running in debug mode in IIS Express

Completely following this Tutorial including the prerequisites described there, I created the web app ContosoBooks using VS2015 Professional on Windows 7. The app compiles successfully but when I run the app in debug mode using F5 in Visual Studio, it waits for a long time and finally gives me this error: enter image description here The project properties are set to default as follows: enter image description here enter image description here

The windows event log shows the following message: The directory specified for caching compressed content C:\Users\myname\AppData\Local\Temp\iisexpress\IIS Temporary Compressed Files\Clr4IntegratedAppPool is invalid. Static compression is being disabled

The project.json file is as follows:

{
  "userSecretsId": "aspnet5-ContosoBooks-1954a805-4685-4556-982f-138333528f36",
  "version": "1.0.0-*",
  "compilationOptions": {
    "emitEntryPoint": true
  },

  "dependencies": {
    "EntityFramework.Commands": "7.0.0-rc1-final",
    "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
    "Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
    "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
    "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final",
    "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
    "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
    "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
    "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
    "Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
    "Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.FileProviderExtensions" : "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final"
  },

  "commands": {
    "web": "Microsoft.AspNet.Server.Kestrel",
    "ef": "EntityFramework.Commands"
  },

  "frameworks": {
    "dnx451": { },
    "dnxcore50": { }
  },

  "exclude": [
    "wwwroot",
    "node_modules"
  ],
  "publishExclude": [
    "**.user",
    "**.vspscc"
  ],
  "scripts": {
    "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ]
  }
}

Upvotes: 0

Views: 1819

Answers (3)

Stoycho Trenchev
Stoycho Trenchev

Reputation: 555

The problem with Bitdefender and Visual Studio 2015 can be resolved by simply uninstalling and installing of Bitdefender. Probably the issue was removed from the new distributions of the software.

Upvotes: 0

mack
mack

Reputation: 2965

Commenting out app.UseBrowserLink() in the startup.cs allowed me to use Bitdefender Endpoint Security and ASP.Net 5.

I found this work around on the asp.net github page.

https://github.com/aspnet/Tooling/issues/309

Upvotes: 2

MartinF
MartinF

Reputation: 29

I have the exact same issue, and I've found a reason for it: Bitdefender AV. Completely uninstalling Bitdefender (download an uninstaller from their site) resolved the problem for me. Why Bitdefender interferes with running an ASP.NET 5 application, I cannot understand. I've registered a support ticket with Bitdefender, but haven't received any reply yet.

Upvotes: 2

Related Questions