Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8676969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:19:57+00:00 2026-06-12T20:19:57+00:00

I am working on a language translation program where I get information from offline.

  • 0

I am working on a language translation program where I get information from offline. I am using Unity game engine, which uses Assembly as its IDE. Below is my code so far.

class Dictionary
{
    public string Translate(string input, string languagePair, Encoding encoding)
    {
        string url = String.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1}", input, languagePair);

        string result = String.Empty;

        using (WebClient webClient = new WebClient())
        {
            webClient.Encoding = encoding;
            result = webClient.DownloadString(url);
        }

        HtmlDocument doc = new HtmlDocument();
        doc.LoadHtml(result);
        return doc.DocumentNode.SelectSingleNode("//textarea[@name='utrans']").InnerText;
    }
}

However, when compiling, I receive the error:

Assets/DictionarySp.cs(8,7): error CS0246: The type or namespace name `HtmlAgilityPack' could not be found. Are you missing a using directive or an assembly reference?

I began doing research and heard that HtmlAgilityPack was a third-party software, and that I had to reference the .dll. I downloaded VisualStudio2010, as well as NuGet. Inside of Visual Studio I clicked “Manage NuGet Packages” and installed the HtmlAgilityPack. Inside of Visual Studio the error went away, however when I tried to open the file in Assembly, I still receive the error that the namespace HtmlAgilityPack could not be found. I am using Unity game engine, so I have to take the file from the VisualStudio file and place it in a different folder. Is there some step that I am missing, or do I need to do something in assembly to reference the HtmlAgilityPack dll? Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:19:58+00:00Added an answer on June 12, 2026 at 8:19 pm

    After referencing the HtmlAgilityPakc.dll like Austin and Shakir said, I still could not get the error to work. I fixed this error by not only referencing the HtmlAgilityPack.dll, but also placing the HtmlAgilityPack.dll in the folder with my script. This got rid of the error. Thanks for all of your help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using django-transmeta (couldn't get anything else working better with django 1.2.5) which creates
I'm working on converting an old define()-based language/translation system to a more flexible one
I've been working with R language, I've created a histogram from a data file
I have started working on a project which requires Natural Language Processing. We have
I am trying to add language/translation support for my Wordpress plugin using POEdit software
I am currently working on a project which supports multi-language. I have created a
I have an application, which works with Resources for translation. This is working great.
I'm working on a multi-language website. I have a problem with the color of
I'm working on highlighting a small scripting language (that is not a derivative of
Working with a Visual Basic.NET console application that features a VERY BASIC natural language

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.