This is a migrated thread and some comments may be shown as answers.

FiddlerCore Abort() method in windows service

1 Answer 72 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Riccardo
Top achievements
Rank 1
Riccardo asked on 17 May 2016, 10:24 AM

Hello,

I'm using FiddlerCore library in a C# windows service. I am hooking for the RequestHeadersAvailable event and calling Session.Abort() inside it (after my checks). The problem is that the session is not aborted, whereas inside a simple c# winforms application (not a windows service then) it works as expected. I guess the problem is related to the windows current UserSession, but I don't know how to solve it.

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Riccardo
Top achievements
Rank 1
answered on 18 May 2016, 09:01 AM
Update: if I run the windows service as a user account, the Abort() method works. I'd like to find a way to create the proxy for the current logged on user though, but I can't figure out how to do it.
Tags
FiddlerCore
Asked by
Riccardo
Top achievements
Rank 1
Answers by
Riccardo
Top achievements
Rank 1
Share this question
or