I'm coding a very basic C# Console application to try FiddleCore.
I start the application and then I navigate with the browser to http://www.telerik.com/forums and some output is printed on the console.
Here is the code:
01.
using
System;
02.
using
System.Collections.Generic;
03.
using
System.Linq;
04.
using
System.Text;
05.
using
System.Threading.Tasks;
06.
using
Fiddler;
07.
08.
namespace
TestFiddler
09.
{
10.
class
Program
11.
{
12.
static
void
Main(
string
[] args)
13.
{
14.
Console.WriteLine(
"Start..."
);
15.
FiddlerApplication.OnNotification +=
delegate
(
object
sender, NotificationEventArgs oNEA) { Console.WriteLine(
"** NotifyUser: "
+ oNEA.NotifyString); };
16.
FiddlerApplication.Log.OnLogString +=
delegate
(
object
sender, LogEventArgs oLEA) { Console.WriteLine(
"** LogString: "
+ oLEA.LogString); };
17.
FiddlerApplication.AfterSessionComplete +=
delegate
(Fiddler.Session oS)
18.
{
19.
Console.WriteLine(
"Finished session:\t"
+ oS.fullUrl);
20.
};
21.
22.
FiddlerApplication.Startup(8888, FiddlerCoreStartupFlags.Default);
23.
24.
Console.ReadKey();
25.
Console.WriteLine(
"Shutting down..."
);
26.
FiddlerApplication.Shutdown();
27.
Console.ReadKey();
28.
}
29.
}
30.
}
I have a problem with CertMaker but I don't understand why. I have already copied CertMaker.dll in the Debug folder but I'm obviously making a mistake somewhere.
Here are first few lines of output:
Start...
Finished session: http://www.telerik.com/forums
Finished session: http://a.company-target.com/pixel?type=js&id=1462564838&page=http%3A%2F%2Fwww.telerik.com%2Fforums
Finished session: http://2380340583.log.optimizely.com:443
Finished session: http://a.company-target.com/pixel?type=js&id=1462564801&page=http%3A%2F%2Fwww.telerik.com%2Fforums
** LogString: Failed to load CertMaker from 'c:\users\bobo\documents\visual studio 2012\Projects\TestFiddler\TestFiddler\bin\Debug\CertMaker.dll' due to 'Impossibile caricare il file o l'assembly 'FiddlerCore, Version=2.6.3.50306, Culture=neutral, PublicKeyToken=67cb91587178ac5a' o una delle relative dipendenze. La definizione di manifesto dell'assembly specificato non corrisponde al riferimento all'assembly. (Eccezione da HRESULT: 0x80131040)'.
** LogString: /Fiddler.CertMaker> Using ♦.?¶+?¶ for certificate generation; UseWildcards=True.
Finished session: http://s1325.t.eloqua.com/visitor/v200/svrGP?pps=70&siteid=1325
Any idea?