Dashboard with Job Attachment

3 years ago we created a dashboard where the user was able to click on a button to download attachments related to a given service call straight to a browser. This dashboard works great and we never had any issues with it. I need to create another dashboard very similar to it with basically the same functionality (Pick a Job Number // the different attachments related to this Job are shown // click on any of these attachments to download it to a browser). I copied and pasted the custom code we created back then for the download button and just modified the EpiGuID. When I try to run the dashboard, I get the following error message:

Application Error
Exception caught in: Ice.Lib.EpiClientLib
Error Detail

Message: --------compile errors------------
Error: CS0234 - line 20 (20) - The type or namespace name ‘Proxy’ does not exist in the namespace ‘Ice’ (are you missing an assembly reference?)

** Compile Failed. **

Program: Ice.Lib.EpiClientLib.dll
Method: CompileCustomScript

Client Stack Trace

at Ice.Lib.Customization.CustomScriptManager.CompileCustomScript(Boolean loading)

Any idea what is causing this and how I can fix it ?