无法加载文件或程序集“PetersDatePackage”
我最近接管了一个使用 Peter Blum 日期和时间 .NET 控件的应用程序。我将所有文件复制到我的 aspnet_client 目录中,当我构建应用程序时,出现以下错误:
无法加载文件或程序集 “PetersDatePackage”或其之一 依赖关系。系统找不到 指定的文件。
你知道我该如何解决这个错误吗?
I have recently taken over an application that uses the Peter Blum Date and Time .NET control. I copied all the files to my aspnet_client directory and when I build the application I get the following error:
Could not load file or assembly
'PetersDatePackage' or one of its
dependencies. The system cannot find
the file specified.
Do you know how I can resolve this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果没有更多详细信息,您似乎可能缺少对该包的引用。是否有 .dll,并将其放置在当前项目的 bin 文件夹中?
Without further details it seems like you may be missing a reference to the package. Was there a .dll and did you place it in your current project's bin folder?
基于 @ajadam 的注释中的评论...
只有当有问题的 dll 存在于您的计算机上与先前开发人员的计算机上相同的路径中时,DLL 刷新文件才会在您的计算机上工作。
您需要找到该 dll,并添加对它的引用。
我假设您已经找到了它,但为了以防万一,如果没有机会获得原始开发人员拥有的副本,这里有一个链接供您从服务器获取它...
http://www.peterblum.com/DES/DateAndTime.aspx
Building on the comment in @ajadam's note...
the DLL Refresh file will only work on your machine if the dll in question exists in the same path on your machine as it did on the previous developer's machine.
You'll need to go and find the dll, and add a reference to it.
I'm assuming you've already found it, but just in case, here's a link for you to get it from the server if there is no chance of getting the copy the original developer had...
http://www.peterblum.com/DES/DateAndTime.aspx