System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
是个什么方法啊?里面的参数分别代表什么意思?还有,我报的错是:
异常信息: 
    异常类型: ArgumentOutOfRangeException 
    异常消息: 长度不能小于 0。
参数名: length 请求路径: /WebResource.axd 怎么回事啊?帮帮忙啊?
列出几种可能性也好

解决方案 »

  1.   

    还有,最好给我解释下WebResource.axd这个文件到底是什么东东,,,有什么作用,,,?
      

  2.   

    利用WebResource.axd 可以通过一个URL来访问装配件的内置资源详情可以查看
    http://blog.csdn.net/heker2007/archive/2008/02/02/2078117.aspx
      

  3.   

    前面那个没看到过。前面那个没见过点击我 WebResource
      

  4.   

    Internal* 函数的异常都扔出来了, 微软真厉害
      

  5.   

    //返回从startIndex开始到结束的字符串
        public String Substring (int startIndex) {
            return this.Substring (startIndex, Length-startIndex);
        }    public String Substring (int startIndex, int length) {
            return InternalSubStringWithChecks(startIndex, length, false);
        }        //对参数进行检验
        internal String InternalSubStringWithChecks (int startIndex, int length, bool fAlwaysCopy) {    
            int thisLength = Length;       
            if (startIndex<0) {
                throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndex"));
            }
            if (startIndex > thisLength) {
                throw new ArgumentOutOfRangeException("startIndex", Environment.GetResourceString("ArgumentOutOfRange_StartIndexLargerThanLength"));
            }
            if (length<0) {
                throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_NegativeLength"));
            } 
            if (startIndex > thisLength-length) {
                throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_IndexLength"));
            }
            if( length == 0) {
                return String.Empty;
            }
            return InternalSubString(startIndex, length, fAlwaysCopy);
        }    //substring的内部实现,获取[startIndex, startIndex + length]之间的字串
        unsafe string InternalSubString(int startIndex, int length, bool fAlwaysCopy) {
            BCLDebug.Assert( startIndex >= 0 && startIndex <= this.Length, "StartIndex is out of range!");
            BCLDebug.Assert( length >= 0 && startIndex <= this.Length - length, "length is out of range!");                    if( startIndex == 0 && length == this.Length && !fAlwaysCopy)  {
                return this;
            }
            
            String result = FastAllocateString(length);        fixed(char* dest = &result.m_firstChar)
                fixed(char* src = &this.m_firstChar) {
                    wstrcpy(dest, src + startIndex, length);
                }        return result;
        }
     
      

  6.   

    事件类型: 警告
    事件来源: ASP.NET 2.0.50727.0
    事件种类: Web 事件 
    事件 ID: 1309
    日期: 2010-9-8
    事件: 16:29:20
    用户: N/A
    计算机: X7DCL
    描述:
    事件代码: 3005 
    事件消息: 发生了未处理的异常。 
    事件时间: 2010-9-8 16:29:20 
    事件时间(UTC): 2010-9-8 8:29:20 
    事件 ID: 71ddd2e61cba413598c82037a6f51d89 
    事件序列: 159 
    事件匹配项: 2 
    事件详细信息代码: 0 
     
    应用程序信息: 
        应用程序域: /LM/W3SVC/1553091905/Root-1-129284079308746250 
        信任级别: Full 
        应用程序虚拟路径: / 进程信息: 
        进程 ID: 157748 
        进程名: w3wp.exe 
        帐户名: NT AUTHORITY\NETWORK SERVICE 
     
    异常信息: 
        异常类型: ArgumentOutOfRangeException 
        异常消息: 长度不能小于 0。
    参数名: length
     
    请求信息: 请求 URL:
    请求路径: /WebResource.axd 
        用户主机地址: 182.88.110.208 
        用户:  
        是否已经过身份验证: False 
        身份验证类型:  
        线程帐户名: NT AUTHORITY\NETWORK SERVICE 
     
    线程信息: 
        线程 ID: 6 
        线程帐户名: NT AUTHORITY\NETWORK SERVICE 
        是否正在模拟: False 
        堆栈跟踪:    在 System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
       在 System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
       在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSyn
    这到底是怎么回事啊?望高手们指教,。,
      

  7.   

    如果请求 WebResource.axd 的时候找不到资源 或者出错,想让界面友好一点,自动跳转到其他页面, 应该在哪里处理啊?