The remote server returned an error: (404) Not Found

Hi ,

I am using .Net Framework 2.0 and Aspose 2.2.
My application was working properly but before few days suddenly it is giving me an error on local as well as production server. the error is “The remote server returned an error: (404) Not Found”.

Please give me solution ASAP.

Thanks,


hi,


i am getting the same issue.
i am using the .NET Framework 2.0 and Aspose 2.2.
please give me some solution.

pmahit:
i am getting the same issue.
i am using the .NET Framework 2.0 and Aspose 2.2.
please give me some solution.
Hi Pravin,

Thanks for contacting support.

It appears that you are using a very old release of Aspose.Pdf for .NET as the current public release is v10.1.0. Please try using the latest release and in case you still face any issue, please share some sample application, so that we can try replicating the issue in our environment.

We are sorry for your inconvenience.

i am getting the same issue.
i am using the .Net Framwork 4.0 version
Here is my code

myWebReq = WebRequest.Create(url)
myWebReq.Accept = “application/xml”
myWebReq.ContentType = “application/xml”
myWebReq.Headers.Add(“Authorization”, “Basic " & _
Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(Common.GetNodeInnerText(Node, “username”) & “:” & _
Common.GetNodeInnerText(Node, “password”))))
myWebReq.Method = “POST”
myWebReq.KeepAlive = True
myWebReq.CookieContainer = New CookieContainer()
myWebReq.ProtocolVersion = HttpVersion.Version10
myWebReq.AllowAutoRedirect = False

Dim myStream As Stream = myWebReq.GetRequestStream()
myStream.Write(System.Text.Encoding.ASCII.GetBytes(xml), 0, xml.Length)
myStream.Close()

myWebResp = myWebReq.GetResponse()
If myWebResp.StatusCode = 201 Then
Dim temp As String = myWebResp.Headers(“Location”) '-- gets location of the new email id.
Dim lastIdx As Integer = temp.LastIndexOf(”/")
temp = temp.Substring(lastIdx + 1)
AddEmailInSystem = temp '-- leftover is the record ID for this email address.
Log.Write(Log.Level.Debug, StoreName, “AddEmailInSystem”, “Added email [” & EmailAddress & " with id [" & AddEmailInSystem & “]”)
End If
myWebResp.Close()

Hi Deepa,


Thanks for your inquiry. I am afraid we are unable to test your code. We will appreciate it if you please share an executable project to replicate the issue and please also confirm which Aspose.Pdf for .NET version are you using.

We are sorry for the inconvenience caused.

Best Regards,