hi

I am getting a response "The remote server returned an error: (404) Not Found." when trying to get

http://cloud.ocrsdk.com/processTextField?region=434,890,365,100&language=English,German&exportFormat=pdftextandimages

var url = string.Format("http://cloud.ocrsdk.com/processTextField?region={0}&language={1}&exportFormat={2}", region, language, exportFormat);

protected static XDocument GetResponse(string url)
       {

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
            using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
            {
                using (Stream stream = response.GetResponseStream())
                {
                    return XDocument.Load(new XmlTextReader(stream));
                }
            }
       }

I am getting error at this line

using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())

plz suggest me what is wrong in this .

asked 21 Apr '14, 11:07

question's gravatar image

question
112

edited 04 May '14, 22:09

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦
790112


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59
×24
×2
×1

Asked: 21 Apr '14, 11:07

Seen: 1,950 times

Last updated: 04 May '14, 22:09

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal