I have a web application which is importing DLLs from the bin folder.
const string dllpath = \"Utility.dll\"; [DllImport(dllpath)]
Now
try { RegistryKey regKey = Registry.LocalMachine; regKey = regKey.OpenSubKey(@"Software\Application\"); if (regKey != null) { return regKey.GetValue("KEY NAME").ToString(); } else { return null; } } catch (Exception ex) { return null; }