Could not load file or assembly 'PetersDatePac

2019-08-27 02:30发布

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?

2条回答
聊天终结者
2楼-- · 2019-08-27 03:01

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

查看更多
来,给爷笑一个
3楼-- · 2019-08-27 03:25

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?

查看更多
登录 后发表回答