自定义控件与使用该控件的文件应该怎样放置才对哪?该如何处理

自定义控件与使用该控件的文件应该怎样放置才对哪?
自定义控件与使用该控件的文件应该怎样放置才对

我定义的自定义控件,在同一目录下使用正常得很,可是一使用在另一个目录中的页面中,就出现了错误如下:

System.Web.HttpException:   外部组件发生异常。   --->   System.Web.HttpCompileException:   外部组件发生异常。
      at   System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults   results,   CodeDomProvider   codeProvider,   CodeCompileUnit   sourceData,   String   sourceFile,   String   sourceString)
      at   System.Web.Compilation.BaseCompiler.GetCompiledType()
      at   System.Web.Compilation.PageCompiler.CompilePageType(PageParser   pageParser)
      at   System.Web.UI.PageParser.CompileIntoType()
      at   System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()



------解决方案--------------------
跟目录没关系,原因另找。描述的不大清楚,不知道。
------解决方案--------------------
我在别的程序下面添加引用可以用啊