So i have a task, where i need to browser website using diff proxies, i created a exe file which uses Threadrunner to browse the website, i pass on parameter (read proxy) to the file and runs via proxy, so far so good, once i run the same Executable twice via diff app creating different app domains, with separate proxies per app domain.
for some reason both instances connect to single proxy.
here's my code. i run this in loop changing proxy each time
Code: C#
var setup = new AppDomainSetup();
setup.ApplicationBase = Path.GetDirectoryName(exePath);
string[] arguments = { proxy };
var ad = AppDomain.CreateDomain(string.Format("Domain #{0}", ix + 1), null, setup);
var t = new Thread(() => {
ad.ExecuteAssembly(exePath, arguments);
AppDomain.Unload(ad);
});
t.Start();