ITextsharp Error: No connection could be made because the target machine actively refused it in ASP.Net

Last Reply on Oct 07, 2017 10:44 PM By Waghmare

Posted on Oct 04, 2017 11:41 PM

Hiii,

I am using ItextSharp to print form in my application but when i click on print button it gives me error  like below.

 

No connection could be made because the target machine actively refused it 127.0.0.1:52875

You are viewing reply posted by: Waghmare on Oct 07, 2017 10:44 PM.
Posted on Oct 07, 2017 10:44 PM

Hiii,

Thanx @dharmendr sir...

With help of your notes i have made below change in my itextsharp code.

string imageUrl = Server.MapPath("~/images/HM_Logo1.jpg");

And it works.