Getting started

Nov 17, 2010 at 10:56 AM

I have downloaded the source code and got it to work.

When I incorporate the code into my own project, I get an error: "The remote server has returned and error: Not Found"


WebResponse resp = hwr.EndGetResponse(asynchronousResult);

To be honest, I have no idea how this is supposed to work in the first place, i.e. are we creating a web service for the conversion from png to pdf ? 

Nov 17, 2010 at 1:07 PM

Just to clarify, I did copy the files in clientbin under PrintToPDF.Web as well as the DLL itextsharp.dll,

should I change any settings ?

Dec 8, 2010 at 6:12 PM

I was receiving that "Not Found" error with the Generic HTTP Handler.  I found that checking the Application log in the EventViewer was actually giving me detailed error messages such as "Post size exceeded allowed limits."  I noticed that the smaller my window size, hence the smaller my PNG I'm sending to the server, would yield success.  Adding the the server web.config entry below fixed the issue for me when my browser window was full screen.


      <httpRuntime maxRequestLength="2147483647"/> <!-- THIS WAS NEEDED TO GET PAST "Not Found" ERRORS-->
Jan 24, 2015 at 7:37 PM
WebResponse resp = hwr.EndGetResponse(asynchronousResult);

i also getting this error
i inserted
  <httpRuntime maxRequestLength="2147483647"/>
in my webconfig

but problem is not solve and getting error inner exception is:
{System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
--- End of inner exception stack trace ---
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at PrintToPDF.MainPage.PrintGetResponse(IAsyncResult asynchronousResult)}

if you want to see my code than download link is

plse help me