My script runs well if the script is called from e:\xxx and the CsvDataReader.dll is in e:\xxx , but if i move the ps1 script and CsvDataReaderdll to e:\xxx\newpath then i'm getting this error:
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///E:\xxx\newpath\CsvDataReader.dll' or one of its dependencies. The system cannot find the file specified."
The file isn't blocked when i look in properties, and it was all of the same permissions as the file in the parent directory. Do i need to GAC this thing?
My script runs well if the script is called from e:\xxx and the CsvDataReader.dll is in e:\xxx , but if i move the ps1 script and CsvDataReaderdll to e:\xxx\newpath then i'm getting this error:
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///E:\xxx\newpath\CsvDataReader.dll' or one of its dependencies. The system cannot find the file specified."
The file isn't blocked when i look in properties, and it was all of the same permissions as the file in the parent directory. Do i need to GAC this thing?