2012-10-11 5 views
0

이 예제에서는 Sitefinity 5.1 및 RadGrid를 사용하고 있습니다. 내가 개발 서버 아침에 우리의 페이지 중 하나를 해결 한 나는 그것이 베어 본 페이지 (NO 스타일 등 더 스크립트)보다는 유행에 따라 디자인 (템플릿)와 페이지에서 다르게 작동 확인했다Sitefinity 클라이언트 (?)에서 잠재적으로 위험한 Request.Path 값이 감지되었습니다.

:

IE, 파이어 폭스와 크롬에서 작동
  1. 페이지는 크롬에서 작동하지만 IE와 파이어 폭스
  2. 베어 본 페이지 (템플릿없이, 헤더, 또는 다른 것)의 페이지에서 작업을 수행하지 않습니다

    코드 사용 코드 :

    Response.Redirect(String.Format("~/services/separation-by-code/managesbyc?id={0}", DateTime.Now.Ticks.ToString())); 
    

    내가 가기 전에 틱을 사용하여 페이지를 새로 고칩니다. >이 빈약 Sitefinity 페이지에서

    크롬을 작동 - 가 seabass.ptagis.org/services/separation-by-code/managesbyc?id=634854696522350585 :

    파이어 폭스 : 여기

    어떤 결과입니다 seabass.ptagis.org/services/ : - 다음 스타일 페이지 (CSS, Scritps 등)에

    크롬을 작동> seabass.ptagis.org/services/separation-by-code/managesbyc?id=634854701574768045 % 2fservices % 2 분류별 코드 % 2fmanagesbyc % 3fid % 3d634854699444302751 -> 아니요

    아래에 서버 오류가 표시됩니다.

    web.config httprequests = 2.0 및 page validations = false를 설정하는 모든 단계를 거쳤습니다. 그건 도움이되지 않았어.

    도움을 주시면 감사하겠습니다. 당신이 .NET 4.0을 사용하는 경우

    Server Error in '/' Application. A potentially dangerous Request.Path value was detected from the client (?). 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.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (?). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace: [HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (?).]
    System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +11494475
    System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +184 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

답변

1

것은, 당신은 내가 '의 Web.config를 통해

<system.web> 
    <httpRuntime requestPathInvalidCharacters="&lt;,&gt;,*,%,&amp;,:,\" /> 
</system.web> 

참고 물음표 (?)가 포함 된 URL을 허용 할 수 있어야한다 그냥 물음표 (?)를 제거하면 원래 기본 문자열은 다음과 같습니다.

<httpRuntime requestPathInvalidCharacters="&lt;,&gt;,*,%,&amp;,:,\,?" /> 
+0

httpRuntime에서도 requestValidationMode = "2.0"을 사용할 수 있습니다 –

관련 문제