Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Deleporter for cross process mocking

We are trying to use Steven Sandersons Deleporter tool for cross process mocking: http://blog.stevensanderson.com/2010/03/09/deleporter-cross-process-code-injection-for-aspnet/

We are experiencing problems getting this to work, the same problem a lot of people have reported in Sanderson's blog post comment section: "Only one usage of each socket address (protocol/network address/port) is normally permitted”

We have succesfully got Sandersons demo guestbook project to work. However we occasionally do get the "only one usage of each socket.." error. Recycling the app pool and doing an iisreset seems to fix this. However, once we get past the socket error we get this error: "No connection could be made because the target machine actively refused it 127.0.0.1:38473"

Have anyone successfully gotten Deleporter to work? This tool would really aid in our BDD development.

like image 509
dalecooper Avatar asked Oct 09 '22 09:10

dalecooper


2 Answers

The “Only one usage of each socket address…” error was fixed in Steve's April 16, 2010 GitHub Commit https://github.com/SteveSanderson/Deleporter/commit/f9b9f3070ec99ddf0d11bb818decadbd46c1bf70. I've found Deleporter very useful.

like image 79
Stuart Avatar answered Oct 16 '22 18:10

Stuart


I found that to get it working with IIS 7.5 I had to clone the git repository, rebuild the solution and use that DLL.

like image 1
Jimmy Bosse Avatar answered Oct 16 '22 19:10

Jimmy Bosse