以前没问题,可是我重装了英文版就不行了,应该不是程序的问题!
Server Error in '/' Application. 
--------------------------------------------------------------------------------A potentially dangerous Request.Form value was detected from the client (mylist="今夜无眠<BR> 西安 思涛<BR> <BR>..."). 
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (mylist="今夜无眠<BR> 西安 思涛<BR> <BR>...").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: [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (mylist="今夜无眠<BR> 西安  思涛<BR> <BR>...").]
   System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +230
   System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +99
   System.Web.HttpRequest.get_Form() +121
   System.Web.UI.Page.GetCollectionBasedOnMethod() +70
   System.Web.UI.Page.DeterminePostBackMode() +47
   System.Web.UI.Page.ProcessRequestMain() +2075
   System.Web.UI.Page.ProcessRequest() +218
   System.Web.UI.Page.ProcessRequest(HttpContext context) +18
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

解决方案 »

  1.   

    你是framework1.1么?
    试着在web.config中加上
    <configuration>
       <system.web>
       <pages buffer="true"
                 enableSessionState="true"
                 autoEventWireup="true"
                 validateRequest="false"
                 smartNavigation="true"/>
     </system.web>
    </configuration>
      

  2.   

    Indicates that ASP.NET examines all input from the browser for potentially dangerous data. If true, request validation is performed by comparing all input data to a list of potentially dangerous values. If a match occurs, ASP.NET raises an HttpRequestValidationException exception.这应该是1.1版新增加的吧
      

  3.   

    前面机器崩溃了,最近新装的.net因该是最新版的。
    是因为新版本增加了安全性?
      

  4.   

    应该是这个原因
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfpagessection.asp