再努力一点点

没有烟抽的日子
posts - 35, comments - 4, trackbacks - 0, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

2011年2月23日

Error Time: ...
Machine Name: S20129
Request URL: http://www.site1.com/page1|||RequestType:GET|||UserHostAddress:...|||UrlReferrer:
Error Message:
Error Source: System.Web Error
StackTrace:
at System.Web.CachedPathData.GetConfigPathData(String configPath)
at System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp)
at System.Web.HttpContext.GetFilePathData() at System.Web.HttpContext.GetConfigurationPathData()
at System.Web.Configuration.RuntimeConfig.GetConfig(HttpContext context)
at System.Web.HttpContext.get_ImpersonationToken()
at System.Web.ClientImpersonationContext.Start(HttpContext context, Boolean throwOnError)
at System.Web.HttpApplication.ThreadContext.SetImpersonationContext()
at System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext)
at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error) ========================================

还原错误http://www.site1.com/page1.
以dot结尾会出现以上错误

posted @ 2011-02-23 15:55 ZhangPeng.Chen 阅读(41) 评论(0) 编辑

Error Time: ...
Machine Name: ...
Request URL: http://www.site1.com/page1|||RequestType:GET|||UserHostAddress:...|||UrlReferrer:
Error Message:
Error Source: System.Web
Error StackTrace:
at System.Web.Util.FileUtil.CheckSuspiciousPhysicalPath(String physicalPath)
at System.Web.HttpContext.ValidatePath()
at System.Web.HttpApplication.ValidatePathExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ========================================

今天查看Live上的Log文件,看看有哪些异常。
看到如下这个错误,异常发生在System.Web.Util.FileUtil.CheckSuspiciousPhysicalPath(String physicalPath)

System.Web.dll中有如下代码
internal static void CheckSuspiciousPhysicalPath(string physicalPath)
{
  if (((physicalPath != null) && (physicalPath.Length > 0))
    && (Path.GetFullPath(physicalPath) != physicalPath))
  {
    throw new HttpException(0x194, "");
  }
}

还原异常
http://www.site1.com/page1%20

posted @ 2011-02-23 15:16 ZhangPeng.Chen 阅读(53) 评论(0) 编辑