网站IIS设置有问题,导致网站频繁启动关闭

问:最近 Global.aspx 文件的 Application_End 函数,频繁的被触发,以前是正常的,请查看一下IIS是不是设置有问题,我程序是正常的。

LOG

17:21:43 – INIT –
17:21:43 – – —-网站启动—-
17:21:53 – – —-网站关闭—-
17:22:41 – INIT –
17:22:41 – – —-网站启动—-
17:22:41 – – —-网站关闭—-
17:23:41 – – —-网站关闭—-
17:23:55 – INIT –
17:23:55 – – —-网站启动—-
17:24:41 – – —-网站关闭—-
17:26:38 – INIT –
17:26:38 – – —-网站启动—-<?xml version="1.0" encoding="UTF-8"?>

<!– 

    注意: 除了手动编辑此文件外,您还可以使用 

    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的

    “网站”->“Asp.Net 配置”选项。

    设置和注释的完整列表可以在

    machine.config.comments 中找到,该文件通常位于

      \\Windows\\Microsoft.Net\\Framework\\vx.x\\Config 中 

–>

<configuration>

  <appSettings>

    <add key="vs:EnableBrowserLink" value="false" />

  </appSettings>

  <connectionStrings />

  <system.web>

    <!–

            设置 compilation debug="true" 可将调试符号

            插入已编译的页面中。

            但由于这会影响性能,因此请仅在开发过程中将此值

            设置为 true。

        –>

    <customErrors mode="Off" />

    <compilation debug="true" defaultLanguage="c#" targetFramework="4.0" />

    <httpRuntime maxRequestLength="102400" requestPathInvalidCharacters="" requestValidationMode="2.0" />

    <!–

          通过 <authentication> 节可以配置

          安全身份验证模式,ASP.NET 

          使用该模式来识别来访用户身份。 

        –>

    <authentication mode="Windows" />

    <!–

           如果在执行请求的过程中出现未处理的错误,

           则通过 <customErrors> 节

           可以配置相应的处理步骤。具体而言,

           开发人员通过该节可配置要显示的 html 错误页,

           以代替错误堆栈跟踪。

           <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

             <error statusCode="403" redirect="NoAccess.htm" />

             <error statusCode="404" redirect="FileNotFound.htm" />

           </customErrors>

        –>

    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" validateRequest="false" />

  </system.web>

  <system.webServer>

    <directoryBrowse enabled="true" />

    <staticContent>

      <mimeMap fileExtension=".properties" mimeType="text/plain" />

    </staticContent>

  </system.webServer>

</configuration>

—- GLOBAL.ASAX—–

<%@ Application Language="VB"  %>

<%@ Import  Namespace="HWL2"  %>

<script runat="server">

    Public Shared Log As Wlog = Wlog.GetInstance(Wpath.BaseFullname("log\\global.{0}.log"), False)

 

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

        '在应用程序启动时运行的代码

        Log.Buffer("—-网站启动—-")

        Log.Buffer()

    End Sub

    

    Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)

        '在应用程序关闭时运行的代码

        Log.Buffer("—-网站关闭—-")

        Log.Buffer()

    End Sub

        

    

    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)

        '在出现未处理的错误时运行的代码

        Dim ga As ASP.global_asax = sender

        Log.Write(ga.Context.Error)

    End Sub

    Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)

        '在新会话启动时运行的代码

    End Sub

    Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)

        '在会话结束时运行的代码。 

        ' 注意: 只有在 Web.config 文件中的 sessionstate 模式设置为

        ' InProc 时,才会引发 Session_End 事件。如果会话模式 

        '设置为 StateServer 或 SQLServer,则不会引发该事件。

    End Sub

       

</script>

,网站IIS设置有问题,导致网站频繁启动关闭

答:您好,我司已做调整.net环境,请您继续观察下,非常感谢您长期对我司的支持!

问:你好,还是频繁的启动关闭。

答:您好,调整了下,请再观察,非常感谢您长期对我司的支持.由此给您带来的不便之处,敬请原谅!谢谢!

问:http://www.ylinflatables.com/view.aspx

现在动态页面都不能打开了。。开始还可以。。。请检查一下。。。。很急

问:试图加载格式不正确的程序。 (Exception from HRESULT: 0xB)

答:您好,已经调整程序池设置

09:33:11 –  – —-网站启动—-

我们观察了5分钟未关闭,请再测试观察下,非常感谢您长期对我司的支持!

问:谢谢,现在已经正常了。我们日志检测到很多非法访问,请问是你们测试了的吗,还是其他人想攻击我们的网站呢,日志如下:(/LOG/)目录下可查看到

10:32:33 – – The file '//FCKeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx' does not exist.
10:32:33 – – D:\\www\\ylinflatables\\www\\log\\global.2018.01.10.log –

System.Web.HttpException (0x: The file '//FCKeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx' does not exist.

– True
10:32:33 – – The file '/dcman/BaseManage/TemplatePath_Manage.aspx' does not exist.
10:32:33 – – D:\\www\\ylinflatables\\www\\log\\global.2018.01.10.log –

System.Web.HttpException (0x: The file '/dcman/BaseManage/TemplatePath_Manage.aspx' does not exist.

答:您好,这个不是我司访问的,从您提供的url看是后台的地址,可能是有人在扫描编辑器漏洞木马,非常感谢您长期对我司的支持!

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn
赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » 网站IIS设置有问题,导致网站频繁启动关闭

登录

找回密码

注册