Did I initialize the Milestone dll at the runtime.........

a few more words would be good :slight_smile:

I want to load Dll at run time like this…

string path = Directory.GetCurrentDirectory();

            string filePath = String.Concat(path, "[\\\\MileStoneDll](file://MileStoneDll)");

            DirectoryInfo d = new DirectoryInfo(filePath);

            FileInfo\[\] Files = d.GetFiles("\*.dll");

            foreach (FileInfo file in Files)

            {

              string DllsPath = System.IO.Path.Combine(filePath, [file.Name](https://file.Name));

              string initilizeDll = (@"" + DllsPath + "");

              var DLLValue = Assembly.LoadFrom(initilizeDll);                  

            }

but they give the exception

(" Could not load file or assembly ‘file:///[C:\Users\Synergy-2\Desktop\MSI-Final](file:C:/Users/Synergy-2/Desktop/MSI-Final) 5 25 2018\MSI\bin\x64\Debug\MileStoneDll\boost_chrono-vc120-mt-1_57.dll’ or one of its dependencies. The module was expected to contain an assembly manifest.")

OR some time they give the exception with certain Dll that

(“parametric value is not found”)

can you help me out

We do not have a DLL named ‘Milestone.dll’, where did you get that from?

I put all DLL in the folder and I get the Dll from that …

as you see my above comment I define the DLL name

(" Could not load file or assembly ‘file:///[C:\Users\Synergy-2\Desktop\MSI-Final 5](file:C:/Users/Synergy-2/Desktop/MSI-Final%C2%A05) 25 2018\MSI\bin\x64\Debug\MileStoneDll\boost_chrono-vc120-mt-1_57.dll’ or one of its dependencies. The module was expected to contain an assembly manifest. ")

You need to run the MDepends.exe app and see if you have mixed 32/64 bit DLLs or are missing other related DLLs.

My Question is simply that Did I initialize Milestone DLL at run time ?

I cant say, as I dont know what your Milestone DLL is doing. For using our .Net components, please check the documentation for the 5 areas to Initialize.

Take a look at this page: http://doc.developer.milestonesys.com/html/reference/architecture/net_library_initialization.html