tag:support.appharbor.com,2010-11-23:/discussions/problems/69296-error-bc30451-layout-is-not-declared-it-may-be-inaccessible-due-to-its-protection-levelAppHarbor: Discussion 2016-08-11T00:42:21Ztag:support.appharbor.com,2010-11-23:Comment/353335932014-11-19T20:38:43Z2014-11-19T20:38:43ZError BC30451: 'Layout' is not declared. It may be inaccessible due to its protection level.<div><p>PS. The site & error handling works on my PC.</p></div>TimMurphytag:support.appharbor.com,2010-11-23:Comment/353335932014-11-20T00:06:20Z2014-11-20T00:06:20ZError BC30451: 'Layout' is not declared. It may be inaccessible due to its protection level.<div><p>Hi,</p>
<p>It looks like you've solved this problem already? The error
currently shown seems to be unrelated to the error you
describe.</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/353335932014-11-20T01:38:27Z2014-11-20T01:38:27ZError BC30451: 'Layout' is not declared. It may be inaccessible due to its protection level.<div><p>Rune,</p>
<p>No the problem still exists. You must have looked when I was
trying<br>
something to fix the error.</p>
<p>I've installed the revision that is in production and the error
appears<br>
only the try site.</p>
<p>Production site is <a href=
"http://www.croquetscores.com">www.croquetscores.com</a>. Try site
is<br>
<a href=
"http://trycroquetscores.apphb.com/">http://trycroquetscores.apphb.com/</a>.</p>
<p>Tim</p></div>TimMurphytag:support.appharbor.com,2010-11-23:Comment/353335932014-11-21T09:47:16Z2014-11-21T09:48:54ZError BC30451: 'Layout' is not declared. It may be inaccessible due to its protection level.<div><p>Hi Tim,</p>
<p>I think the difference between the two apps might be related to
a change on the build servers - the old build server didn't include
MVC 5, so the dependency was always copied (and is included in the
build artifact). Since the October 14th security updates this has
changed, and MVC5 is now installed on build and web servers.</p>
<p>While this doesn't affect running applications you'll likely
have to configure this a bit now. For instance, you might have to
update to the latest MVC5 version and make sure to set the
<code>Copy Local</code> attribute to <code>true</code>. This will
make sure the dependency is copied to the output directory.</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/353335932014-11-21T09:49:51Z2014-11-21T09:49:51ZError BC30451: 'Layout' is not declared. It may be inaccessible due to its protection level.<div><p>You can find more information <a href=
"https://technet.microsoft.com/en-us/library/security/ms14-oct.aspx">
about the security update I mentioned here</a>. Actually it might
be easiest if you just install the same updates and patches locally
- that way you'll also see the same issue locally, and it might
help debug/resolve the issue.</p>
<p>Best,<br>
Rune</p></div>rune