string Error_info_detail=Server.UrlEncode(ex.Message.ToString());试试

解决方案 »

  1.   

    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.ArgumentException: Redirect URI cannot contain newline characters.
    报这种错误!
      

  2.   

    可能是错误信息字符很多,里面难免有不合那条语句的字符, 而且
    一般这个转向语句也不应该放这么长的参数的你最好是把错误信息放到session里面,然后到Error_page.aspx里面再提取那个session内容好了。
      

  3.   

    ALong_Yue兄,我刚才搞错了,你说的方法可行。谢了!
      

  4.   

    try debug .See you these code ,is not wrong.
      

  5.   

    使用url编码,否则遇到回车符等会出错