標籤:http io os 使用 ar for 檔案 div sp
centOS-6.5 + mono-3.6+jexus-3.6.1
使用ajax控制項時,在windows iis下沒有問題,linux 下報如下錯誤
行: 16
錯誤: Sys.WebForms.PageRequestManagerParserErrorException:
The message received from the server could not be parsed.
Common causes for this error are when the response is modified by calls to Response.Write(),
response filters, HttpModules, or server trace is enabled.
Details: Error parsing near ‘v>
</div>|6‘.
試著在page 上加 EnableEventValidation="false" ValidateRequest="false" 不起作用,在web.config加 <httpRuntime requestValidationMode="2.0"/> <pages validateRequest="false" > 問題依舊
後來開啟頁面源檔案發現有中文亂碼,查看web.config <globalization/>字元配置 為gb2312
修改為utf-8 : <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
再次調試問題解決。不過又出現一個問題就是頁面中文全是亂碼。
在page頁面添加 <meta charset="utf-8" /> 再次調試亂碼消失
mono下使用ajax控制項報Details: Error parsing near錯誤