居住在APP_ code类是无法访问 [英] Classes residing in App_Code is not accessible
本文介绍了居住在APP_ code类是无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了一个ASP.NET网站,并创建了一个类,并把它放在APP_ code文件夹内。不过,我无法从我的其他页面访问此。东西是否需要配置允许这样做?我已在previous项目的工作,但不是在这其中,不知何故。
命名空间CLIck10.App_ code
{
公共静态类水珠
{
...
}
}
解决方案
右键单击在 APP_ code中的
文件夹,并检查其属性。 的.cs
文件
确保生成操作设置为编译。
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
{
...
}
}
解决方案
Right click on the .cs
file in the App_Code
folder and check its properties.
Make sure the "Build Action" is set to "Compile".
这篇关于居住在APP_ code类是无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文