2013-05-22 73 views
1

我正在开发ASP.NET VB项目。主机非常有限制,所以App_Code文件夹必须放在wwwroot文件夹下。文件夹中的ASP.NET App_Code

我现在的文件夹结构(在服务器上)看起来是这样的:

root 
    <-- Cant create folders or files here, host is restrictive. 
    wwwroot 
     App_Code 
      Class.VB 
     Styles 
      style.css 
     default.aspx 
     web.config 

这似乎是工作,如果Class.vb包含错误,我得到的网站上的编译错误,所以我知道它编译这个类。

但我无法在我的其他代码文件中使用该类。

例子:

Dim emailFilter As Validation = New Validation() 

我得到这个错误在VS2010:

Type 'Validation' is not defined 

如何使用App_Code文件夹中时,它的另一个文件夹里面?

回答