I would like to be able to have a single directory that holds custom dll's (for updating purposes), rather than having a copy in each project directory that uses that dll.
On local computer .dll's are located in:
C:\Data\Controls\
On server .dll's are located in:
C:\Data\Controls\
I have referenced the dll from C:\Data\Controls\.
The error I get when trying to debug the application:
VB Code:
System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Email, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Source="PACS_Upload" StackTrace: at PACS_Upload.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190 at PACS_Upload.My.MyProject.MyForms.get_frmMain() at PACS_Upload.My.MyApplication.OnCreateMainForm() in C:\Work\VBNET\PACS_Upload\PACS_Upload\My Project\Application.Designer.vb:line 35 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at PACS_Upload.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Is there a way to not have a copy of the dll in my bin directory, and rather point to a specified location?




Reply With Quote