167
44
I have created a website in ASP.NET and have created a class and put it inside of the App_Code folder. However I cannot access this from my other pages. Does something need to be configured to allow this? I have made it work in previous projects, but not in this one, somehow.
namespace CLIck10.App_Code
{
public static class Glob
{
...
}
}
- 1I assume you're including the namespace in your web pages? – Alex Czarto Aug 3 '09 at 13:19
- 1Possible duplicate - stackoverflow.com/questions/409070/… – vapcguy Jun 15 '16 at 20:44
527
+100
Right click on the .cs
file in the App_Code
folder and check its properties.
Make sure the "Build Action" is set to "Compile".
- 10How can you set this as the default build action? or do I have to do that for every file in the App_Code folder? – Malachi Aug 3 '09 at 13:32
- 3
- 4
- 2for those that want more details you can find at: how-to-code-net.blogspot.ro/2014/04/… – Alexa Adrian Apr 11 '14 at 9:15
- 3Yay this solved 142 errors in my Visual Studio project, thanks so much for sharing this solution :-] – Michael G. Workman Feb 23 '16 at 19:23
'TroubleShooting' 카테고리의 다른 글
웹페이지가 브라우저 호환성을 갖추는 것은 옳은가? (0) | 2019.06.06 |
---|---|
[스크랩] 메모리 덤프 분석하기 (0) | 2018.05.18 |
[스크랩] 32비트 빌드에서 64비트 빌드로 프로젝트 변경하기 (0) | 2018.05.18 |
데이터베이스 '[DB명]'은(는) 해당 버전이 706이므로 열 수 없습니다. (0) | 2018.05.14 |
SQLite keeps the database locked even after the connection is closed (0) | 2018.05.06 |