问题
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