tag:help.appveyor.com,2012-11-13:/discussions/problems/24720-aspconfig-errors-on-buildAppVeyor: Discussion 2021-11-02T12:20:26Ztag:help.appveyor.com,2012-11-13:Comment/475147762019-08-09T18:24:16Z2021-11-02T12:20:26ZASPCONFIG errors on build<div><p>Hi,</p>
<p>We're getting some odd behaviour during the build of a particular project in our solution.<br>
Certain configuration, which is in some of the other projects (which build ok) fails to build in this particular one.</p>
<p>Depending on what's in the config we get one of the two errors below<br>
<code>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.</code></p>
<p>or</p>
<p><code>ASPCONFIG: The configBuilder 'Json' failed during Initialization.: Json file does not exist.</code></p>
<p>Perhaps this is ignorance on my part, but I'm surprised that the web.config file affects the build at all.</p>
<p>Any help you can provide would be most appreciated.</p></div>ian.hilltag:help.appveyor.com,2012-11-13:Comment/475147762019-08-09T18:26:37Z2021-11-02T12:20:26ZASPCONFIG errors on build<div><p>Additionally, the project builds in Release and Debug on developers machines.</p></div>ian.hilltag:help.appveyor.com,2012-11-13:Comment/475147762019-08-09T22:36:19Z2019-08-09T22:36:19ZASPCONFIG errors on build<div><p>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.</p></div>Owen McDonnell