U4-10037 - Issue with partial view macro file and packages in Umbraco (virtual directory)

Created by Usman 20 Jun 2017, 04:48:20 Updated by Sebastiaan Janssen 10 Jul 2017, 07:51:13

  1. I installed 7.6.3 via Nuget (VS2015) in an empty asp.net project.
  2. Built the application.
  3. Created a virtual directory under website root in IIS and pointed to application folder ; URL: mywebbsite.com/umbLearing .
  4. Changed the templating engine to webform.
  5. Set true in umbracoSettings.config
  6. Created a partial view macro file (test.cshtml) saved it.
  7. Edited Partial view macro file and tried to save it.

What did you expect to happen? Partial view macro file should save and path (locked description) of partial view macro file should be /Views/MacroPartials/test.cshtml.

What actually happened? Received an error from the server Failed to save data for code file /umbLearingViews/MacroPartials/test.cshtml

I observed that while editing partial view macro file, Umbraco appended extra folder to locked description. I also observed that packages are not working after install because packages unable to load resources because of incorrect path e.g. /App_plugin/umbLearing/Views/MacroPartials/

Other similar issues I found when use Umbraco in virtual directory: http://issues.umbraco.org/issue/U4-2156 http://issues.umbraco.org/issue/CON-406


Usman 22 Jun 2017, 01:51:58

@Shandem please look into the issue.

Usman 26 Jun 2017, 23:38:56

@Shandem and @sebastiaan please consider fixing this issue.

Priority: Normal

Type: Bug

State: Open


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.3

Due in version:


Story Points: