Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

App fails to start if the name in project.json is different than the folder name #198

Closed
victorhurdugaci opened this issue May 16, 2014 · 7 comments
Assignees
Milestone

Comments

@victorhurdugaci
Copy link
Contributor

Pretty easy to repro with MusicStore and IIS (full).

  1. Pack music store
  2. Copy the content of the MusicStore folder to C:\inetpub\wwwroot
  3. Copy the packages folder to C:\inetpub

Access the website.

Expected: everything works
Actual: the website loads forever.

If you open process monitor you can see the following failure:

3:23:02.1104333 PM  w3wp.exe    2000    CreateFile  C:\inetpub\MusicStore\project.json  PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

It seems that it expects that the folder name in which project.json is to match the name in project.json.

If you delete that property from the json file or change it to "wwwroot" everything works.

@davidfowl is this by design? In any case, we need to do something to report this back to the user, it is very hard to find the root cause because all the user sees is a forever loading webpage.

@davidfowl
Copy link
Member

This isn't by design, it's a real bug but the hang is just an issue with Helios + Kruntime interaction.

@davidfowl davidfowl added this to the CTP2 milestone May 24, 2014
@davidfowl davidfowl self-assigned this May 24, 2014
@davidfowl
Copy link
Member

I'm thinking of removing the name property. It's very much a PITA currently and things don't work well if you change it

@davidfowl
Copy link
Member

/cc @DamianEdwards

@DamianEdwards
Copy link
Member

Ya, is there actually a scenario where it makes sense?

@davidfowl
Copy link
Member

If you can't rename the folder for some reason but I'm not sure that matters

@Eilon
Copy link
Member

Eilon commented Jun 18, 2014

Sounds like a vNext feature...

@Eilon
Copy link
Member

Eilon commented Jun 18, 2014

Or vNever.

davidfowl added a commit that referenced this issue Jun 18, 2014
- It's always inferred from the folder name.
#198
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants