久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='bQbFF'></tfoot><legend id='bQbFF'><style id='bQbFF'><dir id='bQbFF'><q id='bQbFF'></q></dir></style></legend>

  1. <i id='bQbFF'><tr id='bQbFF'><dt id='bQbFF'><q id='bQbFF'><span id='bQbFF'><b id='bQbFF'><form id='bQbFF'><ins id='bQbFF'></ins><ul id='bQbFF'></ul><sub id='bQbFF'></sub></form><legend id='bQbFF'></legend><bdo id='bQbFF'><pre id='bQbFF'><center id='bQbFF'></center></pre></bdo></b><th id='bQbFF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bQbFF'><tfoot id='bQbFF'></tfoot><dl id='bQbFF'><fieldset id='bQbFF'></fieldset></dl></div>

    <small id='bQbFF'></small><noframes id='bQbFF'>

    • <bdo id='bQbFF'></bdo><ul id='bQbFF'></ul>
    1. IIS FTP 7.5 可擴展性(IFtpLogProvider 并將 FTP 故障記錄

      IIS FTP 7.5 Extensibility (IFtpLogProvider and logging FTP failures to the event log)(IIS FTP 7.5 可擴展性(IFtpLogProvider 并將 FTP 故障記錄到事件日志中))
        <bdo id='Q5dwC'></bdo><ul id='Q5dwC'></ul>

      • <tfoot id='Q5dwC'></tfoot>

        <small id='Q5dwC'></small><noframes id='Q5dwC'>

            <tbody id='Q5dwC'></tbody>

            <legend id='Q5dwC'><style id='Q5dwC'><dir id='Q5dwC'><q id='Q5dwC'></q></dir></style></legend>
              <i id='Q5dwC'><tr id='Q5dwC'><dt id='Q5dwC'><q id='Q5dwC'><span id='Q5dwC'><b id='Q5dwC'><form id='Q5dwC'><ins id='Q5dwC'></ins><ul id='Q5dwC'></ul><sub id='Q5dwC'></sub></form><legend id='Q5dwC'></legend><bdo id='Q5dwC'><pre id='Q5dwC'><center id='Q5dwC'></center></pre></bdo></b><th id='Q5dwC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Q5dwC'><tfoot id='Q5dwC'></tfoot><dl id='Q5dwC'><fieldset id='Q5dwC'></fieldset></dl></div>
              • 本文介紹了IIS FTP 7.5 可擴展性(IFtpLogProvider 并將 FTP 故障記錄到事件日志中)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                任何非常熟悉 IIS 中的 FTP 7.5 可擴展性的人都知道我可能做錯了什么嗎?

                Anyone pretty familiar with FTP 7.5 extensibility in IIS know what I might be doing wrong?

                我在實現(xiàn) IFtpLogProvider 以正常工作以進行自定義日志記錄時遇到嚴重問題.我要做的就是將超出靜態(tài)閾值的故障記錄到事件日志中,并且每隔一段時間進行一次垃圾收集.我試過使用通用字典和提供者,但沒有運氣,現(xiàn)在即使是這個簡單的代碼我也無法工作.提供者甚至沒有在下面的代碼存根中創(chuàng)建事件日志(或者如果我事先創(chuàng)建它,則使用它).所以現(xiàn)在我很困惑.

                I am having serious trouble getting an implementation of IFtpLogProvider to work correctly for custom logging. All I want to do is log failures beyond a static threshold to the event log, and have garbage collection every so often. I've tried working with a generic dictionary and the provider with no luck, and now even this simple bit of code I can't get working. The provider is not even creating the event log in the code stub below (or using it if I create it beforehand). So now I am deeply confused.

                在程序集從 VS 中簽名后,我按照說明注冊程序集,我可以確認它已添加到 GAC.通過注冊自定義提供程序選項將其添加到 IIS 7.5 似乎也很好.

                I follow the instructions to register the assembly after it is signed from within VS and I can confirm that it is added to the GAC. Adding it to IIS 7.5 via the Register Custom Providers option seems to be fine, too.

                我們將不勝感激任何有關具體建議的幫助,因為即使使用 Robert McMurray 的優(yōu)秀教程集,我仍然遇到這些問題.順便說一句,我正在使用托管代碼的接口在 2008 R2 機器上運行它.

                Any help with specific suggestions would be greatly appreciated, as even with the excellent set of tutorials by Robert McMurray I am still having these issues. I am running this on a 2008 R2 box, by the way, using the interface for managed code.

                下面的存根:

                using System;
                using System.Collections.Generic;
                using System.Collections.Specialized;
                using System.Configuration.Provider;
                using System.Data;
                using System.Data.SqlClient;
                using System.Diagnostics;
                using System.Diagnostics.Eventing;
                using System.Text;
                using Microsoft.Web.FtpServer;
                using System.IO;
                
                public class test: BaseProvider, IFtpLogProvider
                {
                
                    void IFtpLogProvider.Log(FtpLogEntry loggingParameters)
                    {
                        if (!EventLog.SourceExists("TEST"))
                        {
                            EventLog.CreateEventSource("TEST", "TEST");
                        }
                
                        // Just trying to get anything into this log, like a list of
                        // USER attempts or something
                        EventLog.WriteEntry("TEST", loggingParameters.Command);
                
                    }
                
                    // Mark an IP address for banning.
                    private void BanAddress(string ipAddress)
                    {
                        EventLog.WriteEntry("TEST", ipAddress, EventLogEntryType.Warning, 9010);
                    }
                }
                

                推薦答案

                我遇到了以下問題:

                1) 我在 IIS 中注冊此程序集時的類名不正確:

                1) I had an incorrect class name in my registration of this assembly in IIS:

                FtpLogging.FtpLogDemo,FtpLoggingDemo,version=1.0.0.0,Culture=neutral,PublicKeyToken=

                FtpLogging.FtpLogDemo,FtpLoggingDemo,version=1.0.0.0,Culture=neutral,PublicKeyToken=

                2) 在注冊程序集時,我沒有嚴格遵循 Robert 的建議.我選中了該復選框,這將其保留為身份驗證提供程序,而此代碼示例不是.我改為啟用基本身份驗證,禁用匿名身份驗證(在我的情況下),并取消選中教程中提到的框 - 清除提供程序列表中的 FtpLoggingDemo 復選框."

                2) I did not closely follow Robert's advice when registering the assembly. I left the checkbox checked, and this kept it as an authentication provider, which this code sample is not. I instead left basic auth enabled, disabled anonymous auth (in my case), and unchecked the box mentioned in the tutorial -- 'Clear the FtpLoggingDemo check box in the providers list.'

                3) 我沒有使用 AppCmd(或直接修改 applicationHost.config 中的相應部分)來更新 applicationHost.config 中的自定義提供程序部分

                3) I was not using AppCmd (or modifying the appropriate section in applicationHost.config directly) to update the custom providers section in applicationHost.config

                <customFeatures>
                    <providers>
                        <add name="FtpLoggingDemo" enabled="true" />
                    </providers>
                </customFeatures>
                

                做這三件事解決了這個問題.

                Doing these three things fixed the issue.

                這篇關于IIS FTP 7.5 可擴展性(IFtpLogProvider 并將 FTP 故障記錄到事件日志中)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯(lián)網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關文檔推薦

                What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                onClick event for Image in Unity(Unity中圖像的onClick事件)
                Running Total C#(運行總 C#)
                Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                Calling A Button OnClick from a function(從函數(shù)調用按鈕 OnClick)

                  <bdo id='OVxWx'></bdo><ul id='OVxWx'></ul>
                    1. <legend id='OVxWx'><style id='OVxWx'><dir id='OVxWx'><q id='OVxWx'></q></dir></style></legend>

                        <small id='OVxWx'></small><noframes id='OVxWx'>

                          <tbody id='OVxWx'></tbody>
                      1. <tfoot id='OVxWx'></tfoot>
                          <i id='OVxWx'><tr id='OVxWx'><dt id='OVxWx'><q id='OVxWx'><span id='OVxWx'><b id='OVxWx'><form id='OVxWx'><ins id='OVxWx'></ins><ul id='OVxWx'></ul><sub id='OVxWx'></sub></form><legend id='OVxWx'></legend><bdo id='OVxWx'><pre id='OVxWx'><center id='OVxWx'></center></pre></bdo></b><th id='OVxWx'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OVxWx'><tfoot id='OVxWx'></tfoot><dl id='OVxWx'><fieldset id='OVxWx'></fieldset></dl></div>
                          主站蜘蛛池模板: 欧美乱人伦视频 | 午夜天堂 | av手机在线| 日韩三级电影一区二区 | 欧美精品一二三 | 国内自拍偷拍一区 | 久久久久久久久久久久亚洲 | 日韩精品一区二 | 日本不卡高字幕在线2019 | 国产99久久精品 | 中国xxxx性xxxx产国 | 日本三级网| 国产精品欧美一区二区三区不卡 | 欧美一级欧美三级在线观看 | 久久亚洲一区二区 | 亚洲视频免费观看 | 久久久久久久久一区 | 午夜欧美一区二区三区在线播放 | 国产精品久久久久久久久久免费看 | 一区中文字幕 | 日韩在线视频一区二区三区 | 中文久久 | 综合激情久久 | 狠狠干网站 | 国内自拍真实伦在线观看 | 男人的天堂在线视频 | 一级爱爱片 | 久久久妇女国产精品影视 | 秋霞在线一区 | 91天堂网| 国产精品久久久久久久久久久久午夜片 | 国产免费人成xvideos视频 | 久久91精品久久久久久9鸭 | 精品1区 | 欧美日韩在线观看一区 | 亚洲免费在线 | 国产精品特级毛片一区二区三区 | 91九色视频| 日韩日韩日韩日韩日韩日韩日韩 | 日韩欧美一区二区三区免费观看 | 国产精品视频一区二区三区, |