代码之家  ›  专栏  ›  技术社区  ›  Dave Swersky

Umbraco中的用户控件存在问题

  •  0
  • Dave Swersky  · 技术社区  · 17 年前

    我的usercontrol依赖于其他几个usercontrol。当我尝试在“main”usercontrol中浏览属性时,我得到以下错误。

    我已将所有.ascx文件复制到usercontrols文件夹,程序集位于bin目录中。是否可以在Umbraco中托管一个依赖于并包含其他用户控件的“复合”用户控件?

    System.Web.HttpParseException:文件“/ucLogin.ascx”不存在---&燃气轮机;System.Web.HttpParseException:文件“/ucLogin.ascx”不存在---&燃气轮机;System.Web.HttpException:文件“/ucLogin.ascx”不存在。在System.Web.UI.Util.CheckVirtualFileExists(VirtualPath VirtualPath)在System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile)在System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssertSystem.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext上下文、VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile)上的位于System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath VirtualPath VirtualPath,布尔allowNoCompile)的System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName,IDictionary指令)的System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath VirtualPath VirtualPath,布尔allowNoCompile)位于System.Web.UI.TemplateParser.ProcessDirective(String directiveName,IDictionary directive)处的System.Web.UI.TemplateParser.ParseStringInternal(字符串文本,编码文件编码)-内部异常堆栈跟踪的末尾-位于System.Web.UI.TemplateParser.ProcessException(异常ex)处的System.Web.UI.TemplateParser.ParseStringInternal(字符串文本,编码文件编码)位于System.Web.UI.TemplateParser.ParseString(字符串文本,VirtualPath,编码文件编码)----内部异常堆栈跟踪的结尾---位于System.Web.UI.TemplateParser.ParseString(字符串文本,VirtualPath,编码文件编码)位于System.Web.UI.TemplateParser.ParseReader(StreamReader reader,VirtualPath VirtualPath)在System.Web.UI.TemplateParser.ParseFile(字符串物理路径,VirtualPath VirtualPath)在System.Web.UI.TemplateParser.ParseInternal()在System.Web.UI.TemplateParser.Parse()在System.Web.UI.TemplateParser.Parse(ICollection referencedAssembly,VirtualPath)在System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()在System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider BuildProvider)在System.Web.Compilation.BuildProviders编译器.ProcessBuildProviders()处在System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath VirtualPath)在System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile)在System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssertSystem.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext上下文、VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile)上的(HttpContext上下文、VirtualPath VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile)位于umbraco.developer.assemblyBrowser.Page_Load(对象发送方,事件参数e)的System.Web.UI.TemplateControl.LoadControl(字符串VirtualPath)中的(VirtualPath VirtualPath)

    1 回复  |  直到 17 年前
        1
  •  2
  •   Richard Soeteman    17 年前

    usercontrol通过根路径引用其他控件。能否将/ucLogin.ascx的引用更改为ucLogin.ascx,然后看看会发生什么。

    希望它能帮助你,

    理查德