简体   繁体   English

如何解决“找不到DatePickerControl”错误?

[英]How to solve this error “DatePickerControl couldn't be found”?

I moved asp .NET project(web application) to another computer. 我将ASP .NET项目(Web应用程序)移至另一台计算机。 When I tried to build it, it showed this error 当我尝试构建它时,它显示了此错误

The type or namespace name 'DatePickerControl' could not be found in the global namespace (are you missing an assembly reference?) 在全局名称空间中找不到类型或名称空间名称“ DatePickerControl”(是否缺少程序集引用?)

the code 编码

<%@ Register Assembly="DatePickerControl" Namespace="DatePickerControl" TagPrefix="cc1" %>
<cc1:DatePicker ID="DPDateInInput" runat="server" AllowType="False" DateFormat="d/M/yyyy" StartWeekWithDay="Sunday" />

The DatePickerControl was added to the GAC (Global Assembly Cache) on the other environment. DatePickerControl已添加到其他环境的GAC(全局程序集缓存)中。 You need to link to it in options or add it to the GAC on this machine. 您需要在选项中链接到它或将其添加到此计算机上的GAC中。

It may also be that referenced assemblies in your project points to an invalid path, so check that too. 也可能是项目中引用的程序集指向无效路径,因此也请检查该路径。

To link it in options go to the options you can go to reference paths and add a path to the location of the dll. 要将其链接到选项中,请转至选项,您可以转到参考路径并向dll的位置添加路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM