Could not load file or assembly 'PetersDatePackage'

天涯浪子 提交于 2020-01-16 14:29:48

问题


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?


回答1:


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




回答2:


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?



来源:https://stackoverflow.com/questions/1474197/could-not-load-file-or-assembly-petersdatepackage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!