public void HandleRequest(string uri, HttpRequest request, HttpResponse response, HttpContext context) { byte[] responseBytes; //UTF8Encoding utf8 = new UTF8Encoding(); responseBytes = File.ReadAllBytes(@"Assets\sensor.html"); response.Headers[HttpHeaders.ContentType] = MimeType.FromExtension(@"Assets\sensor.html"); response.Content.Write(responseBytes, 0, responseBytes.Length); }