none
IHttpHandler and witing to IIS Logs RRS feed

  • Obecná diskuse

  • I am trying to do :

    <%@ WebHandler Language="C#" Class="test1" %>
    
    using System;
    using System.Web;
    using System.Xml;
    using System.Net;
    using System.Xml.Linq;
    
    public class test1 : IHttpHandler
    {
           
        public void ProcessRequest(HttpContext context)
        {
    		if (context.Request.InputStream != null)
            {
                System.IO.StreamReader stream = new System.IO.StreamReader(context.Request.InputStream);
                string result = stream.ReadToEnd();
             context.response.AppendToLog(result);

    the result is not written to the log.

    should i change something?

    • Přesunutý CoolDadTx čtvrtek 7. května 2020 14:22 ASP.NET related
    čtvrtek 7. května 2020 10:20

Všechny reakce