我有一些从外部项目导入的HTML帮助程序。如何在ASPX文件中引用它们?
目前我收到类似以下内容的错误:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper<LC.TLAdminMVC.DAL.BusinessObjects.CompanySingleViewModel>' does not contain a definition for 'Configurator' and no extension method 'Configurator' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<LC.TLAdminMVC.DAL.BusinessObjects.CompanySingleViewModel>' could be found (are you missing a using directive or an assembly reference?)
答案 0 :(得分:0)
为了更好地了解您的情况,您可以回答一个问题。
您是否已将辅助方法放在aspx文件中,或者它们是外部的?
如果他们是外部的:
如果他们是内部的:
尝试检查它们是否未嵌套在块内。
希望这有帮助,