1. 程式人生 > >ASP.NET探針,網站被莫名的掛馬

ASP.NET探針,網站被莫名的掛馬

tz.aspx

<%@ Page Language="C#" ContentType="text/html" responseEncoding="gb2312"  SmartNavigation="True" aspcompat="true" %>
<html>
<head>
<title>網站探針</title>
<META HTTP-EQUIV="Content-Language" CONTENT="zh-CN"> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a:link{ color: #000000; text-transform: #000000; text-decoration: none }
a:visited { color: #000000; text-transform: #000000; text-decoration: none }
a:active { color: #3333ff; font-style: normal; text-decoration: none }
a:hover { color: red; font-style: normal; text-decoration: underline; font-weight: normal}
font{font-size: 12px;}
td{font-size: 12px;}
body{font-size: 12px;}
.fontColor1 {color: #CC6600}
.fontBig1 {font-size: 14px}
.fonts {	COLOR: #3F8805
}
.backq {	BACKGROUND-COLOR: #eefee0
}
.backs {	COLOR: #ffffff; BACKGROUND-COLOR: #3f8805
}
.fonts1 {	COLOR: #3f8805
}
.backc {	BACKGROUND-COLOR: #3F8805;
	BORDER: medium none;
	COLOR: #ffffff;
	HEIGHT: 18px;
	font-size: 9pt
}
.backq1 {	BACKGROUND-COLOR: #EEFEE0
}
.input {	BORDER: #111111 1px solid;
	FONT-SIZE: 9pt;
	BACKGROUND-color: #F8FFF0
}
.backs1 {	BACKGROUND-COLOR: #3F8805;
	COLOR: #ffffff;
}
.run{color: red;}
-->
</style>
</head>
<body link="#FF6600" vlink="#FF6600" alink="#FF6600">
<form runat="server">
<table width="556" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center" class="fontBig1">
      <div align="center"><a href="http://www.smosoft.com" target="_blank"><strong>ASP.NET探針</strong></a></div>
    </div>
      <div align="left"><br>
          <br>
      </div>
      <div class="fontColor1">是否支援.NET平臺</div>
      <br>
出現以下情況即說明您的空間不支援ASPX檔案:<br>
1、訪問本檔案時提示下載。 <br>
2、訪問本檔案時看到類似@#&lt;&gt;等字元。
<p><FONT class=fonts1>伺服器的基本引數</FONT> </p>
<TABLE cellSpacing=0 cellPadding=0 width=500 bgColor=#3f8805 border=0>
  <TBODY>
    <TR>
      <TD>
        <TABLE cellSpacing=1 cellPadding=0 width=500 border=0>
          <TBODY>
            <TR bgColor=#eefee0 height=18>
              <TD width="135" align=left>&nbsp;伺服器名</TD>
              <TD width="312"><font size="2"> &nbsp;
                    <asp:label ID="name" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器IP</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="ip" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器域名</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="domain" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器埠</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="port" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器時間</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="ontime" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器語言</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="lan" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器CPU數量</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="cpuqty" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器CPU結構</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="cpumore" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;伺服器作業系統</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="system" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;DotNET引擎版本<font size="2">&nbsp;</font></TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="dotnet" runat="server" />    
              </font></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<p><FONT class=fonts1>伺服器的其它引數</FONT> </p>
<TABLE cellSpacing=0 cellPadding=0 width=500 bgColor=#3f8805 border=0>
  <TBODY>
    <TR>
      <TD>
        <TABLE cellSpacing=1 cellPadding=0 width=500 border=0>
          <TBODY>
            <TR bgColor=#eefee0 height=18>
              <TD width="135" align=left>&nbsp;當前執行使用者</TD>
              <TD width="312"><font size="2">&nbsp;
                    <asp:label ID="user" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;系統安裝目錄 </TD>
              <TD><font size="2"> &nbsp;
                    <asp:Label ID="sysdir" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;系統臨時目錄</TD>
              <TD><font size="2">&nbsp;
                    <asp:Label ID="systmp" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;IIS版本</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="IIS" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;SSL支援</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="SSL" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;CGI版本</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="CGI" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;指令碼超時時間</TD>
              <TD bgColor=#eefee0><font size="2">&nbsp;
                    <asp:label ID="timeout" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;系統執行時間</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="runtime" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;當前檔案目錄</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="path" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;當前檔案位置</TD>
              <TD><font size="2">&nbsp;
                    <asp:label ID="pathinfo" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;已使用記憶體</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="mem" runat="server" />    
              </font></TD>
            </TR>
            <TR bgColor=#eefee0 height=18>
              <TD align=left>&nbsp;主機所在域</TD>
              <TD><font size="2"> &nbsp;
                    <asp:label ID="atdomain" runat="server" />    
              </font></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<br>
<FONT class=fonts1>元件支援情況</FONT><BR>
* IIS自帶的常用元件
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#3f8805 cellSpacing=0 
cellPadding=0 width=500 border=1>
  <TBODY>
    <TR class=backs align=middle height=18>
      <TD width=325>組 件 名 稱</TD>
      <TD width=37 align="center">支援</TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.AdRotator<FONT color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
        <asp:label ID="adrot" runat="server" />        
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.BrowserType<FONT color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="brow" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.NextLink<FONT color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="next" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.Tools<FONT color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="tool" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.Status<FONT color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="stat" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.Counters<FONT color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="coun" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;IISSample.ContentRotator<FONT 
      color=#888888>&nbsp;</FONT></TD>
      <TD align=left>&nbsp;<font class=fonts1><b><font size="2">
        <asp:label ID="cont" runat="server" />        
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;IISSample.PageCounter<FONT 
    color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="pagec" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;MSWC.PermissionChecker<FONT 
      color=#888888>&nbsp;</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="perm" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;Scripting.FileSystemObject<FONT 
      color=#888888>&nbsp;(FSO 文字檔案讀寫)</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="fso" runat="server" />      
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;Adodb.Connection<FONT color=#888888>&nbsp;(ADO 資料物件)</FONT></TD>
      <TD align=left><font class=fonts1><b>&nbsp;<font color=red><b></b></font><font size="2">
      <asp:label ID="adodb" runat="server" />      
</font></b></font></TD>
      </TR>
  </TBODY>
</TABLE>
<BR>
* 常見的檔案上傳元件
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#3f8805 cellSpacing=0 
cellPadding=0 width=500 border=1>
  <TBODY>
    <TR class=backs align=middle height=18>
      <TD width=324>組 件 名 稱</TD>
      <TD width=40 align="center">支援</TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;SoftArtisans.FileUp<FONT 
      color=#888888>&nbsp;(SA-FileUp 檔案上傳)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2">
        </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
        <asp:label ID="saup" runat="server" />        
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;SoftArtisans.FileManager<FONT 
      color=#888888>&nbsp;(SoftArtisans 檔案管理)</FONT></TD>
      <TD align=left><font class=fonts1><b><font size="2">
         </font><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font></b></font></b></font><font size="2">
         <asp:label ID="arup" runat="server" />         
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;LyfUpload.UploadFile<FONT 
      color=#888888>&nbsp;(劉雲峰的檔案上傳元件)</FONT></TD>
      <TD align=left>&nbsp;<font class=fonts1><b><font size="2">
        <asp:label ID="lyup" runat="server" />        
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;Persits.Upload.1<FONT color=#888888>&nbsp;(ASPUpload 檔案上傳)</FONT></TD>
      <TD align=left><font class=fonts1><b><font size="2">
        </font><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font></b></font></b></font><font size="2">
        <asp:label ID="aspup" runat="server" />        
</font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;w3.upload<FONT color=#888888>&nbsp;(Dimac 檔案上傳)</FONT></TD>
      <TD align=left><font class=fonts1><b><font size="2">
        </font><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font></b></font></b></font><font size="2">
        <asp:label ID="w3up" runat="server" />        
</font></b></font></TD>
      </TR>
  </TBODY>
</TABLE>
<BR>
* 常見的郵件收發元件
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#3f8805 cellSpacing=0 
cellPadding=0 width=500 border=1>
  <TBODY>
    <TR class=backs align=middle height=18>
      <TD width=323>組 件 名 稱</TD>
      <TD width=40 align="center">支援</TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;JMail.SmtpMail<FONT color=#888888>&nbsp;(Dimac JMail 郵件收發) </FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="jmail" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;CDONTS.NewMail<FONT color=#888888>&nbsp;(虛擬 SMTP 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="cdon" runat="server" />      
</font></b></font></b></font>&nbsp;<font color=red>&nbsp;</font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;Persits.MailSender<FONT color=#888888>&nbsp;(ASPemail 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="pers" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;SMTPsvg.Mailer<FONT color=#888888>&nbsp;(ASPmail 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="smtp" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;DkQmail.Qmail<FONT color=#888888>&nbsp;(dkQmail 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="qmail" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;Geocel.Mailer<FONT color=#888888>&nbsp;(Geocel 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="mailer" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;IISmail.Iismail.1<FONT color=#888888>&nbsp;(IISmail 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="iismail" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;SmtpMail.SmtpMail.1<FONT 
      color=#888888>&nbsp;(SmtpMail 發信)</FONT></TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="smtpmail" runat="server" />      
</font></b></font></b></font></TD>
      </TR>
  </TBODY>
</TABLE>
<BR>
						* 常見的影象處理元件
						<TABLE style="BORDER-COLLAPSE: collapse" borderColor="#3f8805" cellSpacing="0" cellPadding="0"
							width="500" border="1">
							<TBODY>
								<TR class="backs" align="center" height="18">
									<TD width="372">組 件 名 稱</TD>
									<TD width="122" align="center">支援</TD>
								</TR>
								<TR class="backq" height="18">
									<TD align="left">&nbsp;SoftArtisans.ImageGen<FONT color="#888888">&nbsp;(SA 的影象讀寫元件)</FONT></TD>
									<TD align="left"><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
                                    <asp:label ID="saimg" runat="server" />                                    
</font></b></font></b></font></TD>
								</TR>
								<TR class="backq" height="18">
									<TD align="left">&nbsp;W3Image.Image<FONT color="#888888">&nbsp;(Dimac 的影象讀寫元件)</FONT></TD>
									<TD align="left"><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
                                    <asp:label ID="w3img" runat="server" />                                    
</font></b></font></b></font></TD>
								</TR>
							</TBODY>
						</TABLE>
<br>
* 其他元件支援情況檢測<br>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#3F8805" width="500">
    <tr height="18" class=backq1>
      <td height=30>輸入元件的ProgId或ClassId
		<asp:textbox ID="classname" Rows="1" runat="server" TextMode="SingleLine" />
        <asp:button ID="classsub" runat="server" Text="檢測" OnClick="sub"  />
      </td>
    </tr>
</table>
<div align="center"><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
  <asp:label ID="classinfo" runat="server" />
  </font></b></font></b></font>
</div>
<p class="fonts">伺服器效能測試</p>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#3f8805 cellSpacing=0 
cellPadding=0 width=500 border=1>
  <TBODY>
    <TR class=backs align=middle height=18>
      <TD width=298>測試專案</TD>
      <TD width=78 align="center">使用時間</TD>
      <TD width=76>&nbsp;</TD>
    </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;本頁執行時間:開啟本頁面的速度測試</TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="timerun" runat="server" />      
</font></b></font></b></font></TD>
      <TD align=left>&nbsp;<FONT color=red><a href="tz.aspx" class="run">重算</a></FONT></TD>
    </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;整數運算測試:進行100萬次加法運算</TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="timetol" runat="server" />      
</font></b></font></b></font></TD>
      <TD align=left>&nbsp;<FONT color=red><a href="tz.aspx" class="run">重算</a> </FONT></TD>
    </TR>
    <TR class=backq height=18>
      <TD align=left>&nbsp;浮點運算測試:進行100萬次開方運算</TD>
      <TD align=left><font color=red><b>&nbsp;<font class=fonts1><b><font size="2"> </font><font color=red><b><font class=fonts1><b><font size="2"></font></b></font></b></font><font size="2">
      <asp:label ID="timekai" runat="server" />      
</font></b></font></b></font></TD>
      <TD align=left><FONT color=red>&nbsp;<a href="tz.aspx">重算</a></FONT></TD>
    </TR>
  </TBODY>
</TABLE>
<p>&nbsp;</p>
</td>
  </tr>
</table>
</form>
</body>
</html>

<script language="C#" runat="server">
public void Page_Load(Object sender,EventArgs e)
{
	Response.Expires = 0;
	Response.CacheControl = "no-cache";
	if (!Page.IsPostBack)
	{
		 //取得頁面執行開始時間
         DateTime stime=DateTime.Now;
		 
		 int build, major, minor,revision;
		 build=Environment.Version.Build;
		 major=Environment.Version.Major;
		 minor=Environment.Version.Minor;
		 revision=Environment.Version.Revision;

		 name.Text=Server.MachineName;
		 ip.Text=Request.ServerVariables["LOCAL_ADDR"];
		 domain.Text=Request.ServerVariables["SERVER_NAME"];
		 port.Text=Request.ServerVariables["SERVER_PORT"];
		 ontime.Text=DateTime.Now.ToString();
		 lan.Text=Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"];
		 cpuqty.Text=System.Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS");
		 cpumore.Text=System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
		 system.Text=Environment.OSVersion.ToString();
		 dotnet.Text=".NET CLR  "+major +"."+ minor + "." + build+"."+revision;
		 
		 user.Text=Environment.UserName;
		 sysdir.Text=System.Environment.GetEnvironmentVariable("windir");
		 systmp.Text=System.Environment.GetEnvironmentVariable("TEMP");
		 mem.Text=(Environment.WorkingSet/1024/1024).ToString()+" MB";
		 atdomain.Text=System.Environment.GetEnvironmentVariable("USERDOMAIN");
		 
		 
		 SSL.Text=Request.ServerVariables["HTTPS"];
		 CGI.Text=Request.ServerVariables["GATEWAY_INTERFACE"];
		 IIS.Text=Request.ServerVariables["SERVER_SOFTWARE"];		 
		 timeout.Text=Server.ScriptTimeout.ToString();
		 runtime.Text=Math.Round((decimal)(Environment.TickCount/600/60))/100+" 小時";
		 path.Text=Request.ServerVariables["APPL_PHYSICAL_PATH"];
		 pathinfo.Text=Request.ServerVariables["PATH_TRANSLATED"];
		 

		 //元件支援驗證程式碼
    	 this.check("MSWC.AdRotator",adrot);
		 this.check("MSWC.BrowserType",brow);
		 this.check("MSWC.NextLink",next);
		 this.check("MSWC.Tools",tool);
		 this.check("AMSWC.Status",stat);
		 this.check("MSWC.Counters",coun);
		 this.check("IISSample.ContentRotator",cont);
		 this.check("IISSample.PageCounter",pagec);
		 this.check("MSWC.PermissionChecker",perm);
		 this.check("Scripting.FileSystemObject",fso);
		 this.check("ADODB.RecordSet",adodb);
		 
		 this.check("SoftArtisans.FileUp",saup);
		 this.check("SoftArtisans.FileManager",arup);
		 this.check("LyfUpload.UploadFile",lyup);
		 this.check("Persits.Upload",aspup);
		 this.check("W3.Upload",w3up);  
		   	 
		 this.check("JMail.SMTPMail",jmail);
		 this.check("CDONTS.NewMail",cdon);
		 this.check("Persits.MailSender",pers);
		 this.check("SMTPsvg.Mailer",smtp);
		 this.check("dkQmail.Qmail",qmail);
		 this.check("Geocel.Mailer",mailer);
		 this.check("iismail.iismail.1",iismail);
		 this.check("SmtpMail.SmtpMail.1",smtpmail);
		 
		 this.check("SoftArtisans.ImageGen",saimg);
		 this.check("W3Image.Image",w3img);

	 
		 //取得頁面執行結束時間
 		 DateTime etime=DateTime.Now; 
        //計算頁面執行時間
         timerun.Text=((etime-stime).TotalMilliseconds).ToString()+"毫秒";

		 //100萬次相加迴圈測試
		DateTime ontime1=DateTime.Now;
		int sum=0;
		for (int i=1;i<=10000000;i++){
		sum=sum+i;
		}
		DateTime endtime1=DateTime.Now;
		timetol.Text=((endtime1-ontime1).TotalMilliseconds).ToString()+"毫秒";

		//100萬次開平方測試
		DateTime ontime2=DateTime.Now;
		long k=2;
		for( int a=1; a < 1000000; a++ )
		{
			 k = k * k;
		}
		DateTime endtime2=DateTime.Now;
		timekai.Text=((endtime2-ontime2).TotalMilliseconds).ToString()+"毫秒";

		
	}
}
bool isobj(string obj){
    try {
        object meobj = Server.CreateObject(obj);
        return(true);
     }
     catch 
     {
        return(false);
     }
}

void check(string obj,Label sup)
	{
		string yes="<font class=fonts1><b>√</b></font>";
		string no="<font color=red><b>×</b></font>";
		try 
		{
			object claobj = Server.CreateObject(obj);
			sup.Text=yes;
		 }
		catch
		{
			sup.Text=no;
		}
	}

 //自定義元件查詢
 public void sub(Object Sender,EventArgs e)
 {
	string classobj=classname.Text;
	 if (isobj(classobj))
	 {
		classinfo.Text="檢測結果:支援元件"+classobj;
	 }
	 else 
	 {
		classinfo.Text="檢測結果:不支援元件"+classobj;
	 }
 }

</script>

是否支援.NET平臺


出現以下情況即說明您的空間不支援ASPX檔案:
1、訪問本檔案時提示下載。 
2、訪問本檔案時看到類似@#<>等字元。

伺服器的基本引數

 伺服器名   WIN-LM9O2T7VE98
 伺服器IP   122.114.220.123
 伺服器域名   www.xiaoxiongyoupin.com
 伺服器埠   80
 伺服器時間   2018-09-05 11:23:16
 伺服器語言   zh-CN,zh;q=0.9
 伺服器CPU數量   4
 伺服器CPU結構   x86
 伺服器作業系統   Microsoft Windows NT 10.0.14393.0
 DotNET引擎版本    .NET CLR 4.0.30319.42000

伺服器的其它引數

 當前執行使用者   HA426041
 系統安裝目錄   C:\Windows
 系統臨時目錄   C:\Windows\TEMP
 IIS版本   Microsoft-IIS/10.0
 SSL支援   off
 CGI版本   CGI/1.1
 指令碼超時時間   3600
 系統執行時間   558.75 小時
 當前檔案目錄   D:\wwwroot\HA426041\WEB\
 當前檔案位置   D:\wwwroot\HA426041\WEB\tz.aspx
 已使用記憶體   214 MB
 主機所在域   WORKGROUP

元件支援情況
* IIS自帶的常用元件
組 件 名 稱 支援
 MSWC.AdRotator   ×
 MSWC.BrowserType   
 MSWC.NextLink   ×
 MSWC.Tools   ×
 MSWC.Status   ×
 MSWC.Counters   ×
 IISSample.ContentRotator   ×
 IISSample.PageCounter   ×
 MSWC.PermissionChecker   ×
 Scripting.FileSystemObject (FSO 文字檔案讀寫)   
 Adodb.Connection (ADO 資料物件)   

* 常見的檔案上傳元件
組 件 名 稱 支援
 SoftArtisans.FileUp (SA-FileUp 檔案上傳)   
 SoftArtisans.FileManager (SoftArtisans 檔案管理)
 LyfUpload.UploadFile (劉雲峰的檔案上傳元件)   ×
 Persits.Upload.1 (ASPUpload 檔案上傳) ×
 w3.upload (Dimac 檔案上傳) ×

* 常見的郵件收發元件
組 件 名 稱 支援
 JMail.SmtpMail (Dimac JMail 郵件收發)   
 CDONTS.NewMail (虛擬 SMTP 發信)   ×  
 Persits.MailSender (ASPemail 發信)   ×
 SMTPsvg.Mailer (ASPmail 發信)   ×
 DkQmail.Qmail (dkQmail 發信)   ×
 Geocel.Mailer (Geocel 發信)   ×
 IISmail.Iismail.1 (IISmail 發信)   ×
 SmtpMail.SmtpMail.1 (SmtpMail 發信)   ×

* 常見的影象處理元件
組 件 名 稱 支援
 SoftArtisans.ImageGen (SA 的影象讀寫元件)   ×
 W3Image.Image (Dimac 的影象讀寫元件)   ×

* 其他元件支援情況檢測
輸入元件的ProgId或ClassId  

伺服器效能測試

測試專案 使用時間
 本頁執行時間:開啟本頁面的速度測試   171.8959毫秒  重算
 整數運算測試:進行100萬次加法運算   15.6468毫秒  重算
 浮點運算測試:進行100萬次開方運算   0毫秒  重算