tag:support.appharbor.com,2010-11-23:/discussions/problems/65051-how-to-modify-appsetting-path-to-make-appharbor-happyAppHarbor: Discussion 2016-08-11T00:42:54Ztag:support.appharbor.com,2010-11-23:Comment/346902622014-09-23T23:02:56Z2014-09-23T23:02:56ZHow to modify appSetting path to make appharbor happy <div><p>Hi Vincent,</p>
<p>I took a look and it seems like there might be a few issues
here:</p>
<ul>
<li>The <code>MetaEdInputLocation</code> and
<code>XsdLocation</code> points to a GitHub repository in the code
you've pushed. This path is not publicly accessible, so it won't be
fetched when the tests are executed. I think this is what is
currently causing the issue.</li>
<li>The output location is not writable: It'll need to be scoped so
that it's written to the build directory. Alternatively you can
cache the files under the temporary user profile that is created
when the app is being built/tested.</li>
</ul>
<p>Are you using the files generated by these tests from the
application? I.e. does your application rely on the files generated
when it's actually deployed? I'm asking because whatever changes
are made to the artifact directory during tests are not applied to
the build artifact that is deployed - we take a snapshot just prior
to executing tests to ensure isolation from any test artifacts that
may be generated. So it's likely better to generate the files (if
required by the app) during the build step or alternatively during
application startup.</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/346902622014-09-25T16:49:39Z2014-09-25T16:49:39ZHow to modify appSetting path to make appharbor happy <div><p>Hello Rune,</p>
<p>Thank you for your prompt response.</p>
<p>The issue is this app setting:<br></p>
<p>Do not worry about the output file, I set it to false so it
won't output anything.<br>
What I am asking is how to modify MetaEdInputLocation and
XsdLocation,<br>
I know this is exactly where the problem is but I am not sure how
to modify it.</p>
<p>Could you just let me know how to modify it to make it work?</p></div>daybreakleetag:support.appharbor.com,2010-11-23:Comment/346902622014-09-26T01:08:37Z2014-09-26T01:08:37ZHow to modify appSetting path to make appharbor happy <div><p>OK got it, but when I looked at the code you pushed it just
seemed to differ from that - perhaps that the cause of confusion
here? Otherwise if you can point me to the <code>App.config</code>
file where this is defined it'd be very helpful.</p>
<p>You might want to include the input xsd file with your
repository, reference it from your project and set the <code>Build
action</code> property on the file reference to "Content". That way
you can reference the file using a relative path instead. AppHarbor
will generate a new temporary directory each time your app is
built, so you can't rely on absolute paths - using either
environment variables or relative paths are usually the way to go
about this.</p>
<p>Best,<br>
Rune</p></div>rune