Giter VIP home page Giter VIP logo

issue-aspnetcore-iisexp-rename-dir's Introduction

IISProblem

ASP.NET Core solution showing problem with IISExpress and renamed project directory

Steps to recreate solution (and problem)

  1. Open VS 2015 Community Edition
  2. Create new project and select ASP.NET Core Web Application (.NET Core) project type
  3. Name solution as e.g. BrainCrumbz.IISProblem, name project as e.g. BrainCrumbz.IISProblem.MyProject
  4. Select Empty web application type
  5. Save all. Do not run, nor build, so not to create hidden .vs\config\applicationhost.config yet
  6. Remove project
  7. Rename project folder to e.g. just MyProject
  8. Add back existing project from renamed folder
  9. Add explicit project name, title and version in project.json:
"name": "BrainCrumbz.IISProblem.MyProject",
"title": "BrainCrumbz.IISProblem.MyProject",
"version": "0.0.0",
  1. Make sure IIS Express profile is selected (the default)
  2. Run

Expected

  • VS stays running in debug mode. Browser shows Hello world text
  • Windows Event Viewer, Applications log, shows a warning by IIS Express. We're seeing that on working web applications as well, it seems related to Bitdefender (issue 309 and StackOverflow) and it seems not having effects on this issue

The directory specified for caching compressed content C:\Users@@@USERNAME@@@\AppData\Local\Temp\iisexpress\IIS Temporary Compressed Files\Clr4IntegratedAppPool is invalid. Static compression is being disabled

  • Following warning, there's an Information event by IIS Express AspNetCore Module with success message:

Process '10016' started successfully and is listening on port '11928'.

Actual

  • VS stops and leaves debug mode unexpectedly. Browser shows Server unreachable page
  • Windows Event Viewer, Applications log, shows same warning as before
  • Following warning, there's an Error event by IIS Express AspNetCore Module:

Failed to start process with commandline '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\ProjectSystem\VSIISExeLauncher.exe" -debug -p "C:\Program Files\dotnet\dotnet.exe" -a "D:\WS\NET\ASP.NET-Core\BrainCrumbz.IISProblem\src\MyProject\bin\Debug\netcoreapp1.0\MyProject.dll" -pidFile "C:\Users@@@USERNAME@@@\AppData\Local\Temp\tmpF450.tmp" -wd "D:\WS\NET\ASP.NET-Core\BrainCrumbz.IISProblem\src\MyProject"', ErrorCode = '0x80004005'.

Environment

  • Windows development machine
  • Visual Studio 2015 Community Edition Version 14.0.25424.00 Update 3
  • Microsoft .NET Core Tools (Preview 2) 14.1.20810.0
    • dotnet --version reports 1.0.0-preview2-003121
    • Also installed brand new one, DotNetCore.1.0.0-VS2015Tools.Preview2.0.1.exe, with no improvement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.