请教各位 :我在网上下了个可以用的。NET的文章管理网站,所有环境都已经配置好了,后台也都成功登录了。还管理了文章。可是忽然下午就进不去了,一打开登陆页面就报下面的错误:
Server Error in '/' Application.
--------------------------------------------------------------------------------索引超出了数组界限。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IndexOutOfRangeException: 索引超出了数组界限。Source Error:
[No relevant source lines]Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_admin_login.aspx.cdcab7d2.a6txakem.0.cs Line: 0我是一个NET初学者,不怎么懂,看这个好象不是代码问题,报错的地方貌似是一个临时文件,我删掉了临时文件,结果也还是没用,错误就出现在了其他的临时文件中。请各位不吝赐教。
Server Error in '/' Application.
--------------------------------------------------------------------------------索引超出了数组界限。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IndexOutOfRangeException: 索引超出了数组界限。Source Error:
[No relevant source lines]Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_admin_login.aspx.cdcab7d2.a6txakem.0.cs Line: 0我是一个NET初学者,不怎么懂,看这个好象不是代码问题,报错的地方貌似是一个临时文件,我删掉了临时文件,结果也还是没用,错误就出现在了其他的临时文件中。请各位不吝赐教。
解决方案 »
- 新手学习 C#控制台程序_邮箱地址验证
- 有这样的问题:Update 无法找到 TableMapping['Table'] 或 DataTable“Table”。
- 简单问题,初学c# web开发
- DataGridview数据绑定有什么作用?
- sql语句问题 判断时间问题
- 全部积分球vpn拨号软件源码
- C#程序如何打开 word文档
- 请各位大虾帮帮忙,很急.在线等......
- 用过Infragistics NetAdvantage 2005 Volume 这个.NET控件既高手进来一下
- 单击按扭时如何同时响应服务端事件(C#事件)和客户端事件(JAVASCRIPT事件)?
- 春节散分(随便问下怎么拥有自己的网站 )
- 反射问题(提示未将对象设置到对象实例)
出错的代码如下#pragma checksum "c:\inetpub\wwwroot\admin_login.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2CFD7242725CB98986FDBE67E8BF34D4"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------namespace ASP {
#line 308 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Profile;
#line default
#line hidden
#line 303 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Text.RegularExpressions;
#line default
#line hidden
......admin_login.aspx代码如下:<%@ Page Language="C#" Inherits="IWMS.Admin.Login" EnableSessionState="true" Debug="true"%>
<html>
<head>
<!--#include file="inc/html_head.inc"-->
<!--#include file="inc/admin_head.inc"-->
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<form id="form1" runat="server"><div class="mframe">
<table width="300" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="tl"></td>
<td class="tm" >
<span class="tt"> iwms 管理登录</span>
</td>
<td class="tr"></td>
</tr>
</table>
<table width="300" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="ml"></td>
<td class="mm">
<table cellpadding="3" width="100%" align="center" >
<tr>
<td rowspan="4" width="100">
<img src="pic/admin_key.gif"/>
</td>
<td align="center">
<asp:Label width="100%" id=Label1 runat="server"/>
用户名:
<asp:TextBox Columns="10" MaxLength="50" id="Username" Class="inputbg" runat="server"/>
<asp:RequiredFieldValidator id="RequiredFieldValidator"
ControlToValidate="UserName"
ErrorMessage="*"
Display="Dynamic"
runat="server"/>
<asp:RegularExpressionValidator
runat="server"
ControlToValidate="Username"
ValidationExpression="[^']+"
ErrorMessage="*"
Display="Dynamic" />
</td></tr>
<tr><td align="center">
密 码:
<asp:TextBox id="Password" Columns="10" textmode="Password" MaxLength="50" CssClass="inputbg" runat="server"/>
<asp:RequiredFieldValidator id="RequiredFieldValidator1"
ControlToValidate="Password"
ErrorMessage="*"
Display="Dynamic"
runat="server"/>
<asp:RegularExpressionValidator
runat="server"
ControlToValidate="Password"
ValidationExpression="[^' ]+"
ErrorMessage="*"
Display="Dynamic" />
<script type="text/javascript">
document.getElementById("<%=Username.Text.Length==0 ? Username.ClientID : Password.ClientID%>").focus();
</script>
</td></tr>
<asp:PlaceHolder id="phVerify" runat="server">
<tr><td align="center">
验证码 <img align="absmiddle" src="admin_verifyimg.aspx" />
</td></tr>
<tr><td align="center">
验证码:
<asp:TextBox id="VerifyCode" Columns=10 MaxLenth=10 CssClass="inputbg" ToolTip="不分大小写" Style="ime-mode:disabled" runat="server"/>
<asp:RequiredFieldValidator
ControlToValidate="VerifyCode"
ErrorMessage="*"
Display="Dynamic"
runat="server"/>
</td></tr>
</asp:PlaceHolder>
<tr><td align="center" colspan="2">
<asp:Button id="Submit" text=" 登 录 " onclick="Submit_OnClick" runat="server"/>
<script type="text/javascript" src="inc/clientDate.js"></script>
</td>
</tr>
</table>
</td>
<td class="mr"></td>
</tr>
</table>
<table width="300" align="center" cellspacing="0" cellpadding="0" >
<tr>
<td class="bl"></td>
<td class="bm"> </td>
<td class="br"></td>
</tr>
</table>
</div>
</form>
</body>
</html>请各位指教哇