Hi, when I'm trying to run this little program I get this error after line Fiddler.FiddlerApplication.Startup(startupSettings);
{"Could not load file or assembly
'Telerik.NetworkConnections, Version=0.1.1.0, Culture=neutral, PublicKeyToken=67cb91587178ac5a'
.
System.IO.FileNotFoundException
my program code (console application, in main class I use Http_proxy.Start();
public
static
class
Http_proxy
{
public
static
void
Start()
{
FiddlerCoreStartupSettings startupSettings =
new
FiddlerCoreStartupSettingsBuilder()
.ListenOnPort(0)
.RegisterAsSystemProxy()
.DecryptSSL()
.Build();
Fiddler.FiddlerApplication.Startup(startupSettings);
FiddlerApplication.AfterSessionComplete += Http_proxy.AfterSessionComplete;
}
public
static
void
Stop()
{
if
(FiddlerApplication.IsStarted()) Fiddler.FiddlerApplication.Shutdown();
}
private
static
void
AfterSessionComplete(Session session)
{
session.bBufferResponse =
true
;
if
(session.fullUrl.Contains(
"nevermind"
))
{
string
b = session.GetRequestBodyAsString();
File.WriteAllText(@
"..\a.txt"
, b);
}
}
public
static
bool
InstallCertificate()
{
try
{
if
(!CertMaker.rootCertExists() && !CertMaker.createRootCert())
{
throw
new
Exception(
"Could not create Root Certificate!"
);
}
if
(!CertMaker.rootCertIsTrusted() && !CertMaker.trustRootCert())
{
throw
new
Exception(
"Could not find valid Root Certificate for Fiddler!"
);
}
return
true
;
}
catch
(Exception ex)
{
Console.Write(ex.ToString() +
" | "
+
"Certificate Installer Error!"
);
return
false
;
}
}
public
static
bool
UninstallCertificate()
{
if
(CertMaker.rootCertExists())
{
if
(!CertMaker.removeFiddlerGeneratedCerts(
true
))
return
false
;
}
return
true
;
}
}
}
Some time ago I created another small app using Fiddler.FiddlerApplication.Startup(8888, true, true); and everything worked fine, now I lost it and upgraded Visual Studio Community 2015 to Community 2019 and nothing want to work. Any suggestions?