ASPCONFIG errors on build

Ian's Avatar

Ian

09 Aug, 2019 06:24 PM

Hi,

We're getting some odd behaviour during the build of a particular project in our solution.
Certain configuration, which is in some of the other projects (which build ok) fails to build in this particular one.

Depending on what's in the config we get one of the two errors below
ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

or

ASPCONFIG: The configBuilder 'Json' failed during Initialization.: Json file does not exist.

Perhaps this is ignorance on my part, but I'm surprised that the web.config file affects the build at all.

Any help you can provide would be most appreciated.

  1. 1 Posted by Ian on 09 Aug, 2019 06:26 PM

    Ian's Avatar

    Additionally, the project builds in Release and Debug on developers machines.

  2. Support Staff 2 Posted by Owen McDonnell on 09 Aug, 2019 10:36 PM

    Owen McDonnell's Avatar

    Can you link to the build and share your configuration in yaml format. Feel free to make the thread private or redact any think you feel is sensitive in your config.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac