Error compiling with custom library

Pachuquin

Member
Licensed User
Longtime User
I'm developing an application for desktop only. I need to encode a URL string to post some data to a specified website.

I have created a simple library to do the job.

B4X:
using System.Web;
using System;

namespace pachUri
{
    public class pachUri
    {
        public String UrlEncode(String Url)
        { 
            
            return HttpUtility.UrlEncode(Url);
        }
    }
}

My basic4ppc code compiles perfect using the library if i doesn't include the library source code, but i get an error when i try to compile incluiding the library source code.

Error compiling program
Error CS0103: The name 'HttpUtility' does not exist in the current context

Thanks
 
Top