我在自己的电脑上编写完程序后,进行测试没有任何问题,但是当我把网站进行发布后传到服务器上再进行测试就出现以下问题:Server Error in '/PhoneList' Application.
--------------------------------------------------------------------------------Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --><configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --><configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
我真的很急呀,哪位高手帮忙解决一下~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

解决方案 »

  1.   

    一般在本机测试好 没问题上传到服务器出现问题一般都是你的空间没有设置成.net 2.0的    现在还有很多空间商默认是1.1
      

  2.   

    但是我在服务器上已经装.net framework 2.0了
      

  3.   

    建议先改成:<customErrors mode="Off"/> 。
    看看到底是什么错误。 再看看IIS是不是都已经设置好。
      

  4.   

    改后提示这个错误: Server Error in '/PhoneList' Application.
    --------------------------------------------------------------------------------Input string was not in a correct format. 
    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.FormatException: Input string was not in a correct format.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: 
    [FormatException: Input string was not in a correct format.]
       System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2752771
       System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +113
       System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info) +188
       System.Convert.ToDouble(String value) +68
       MonthList_qj.get_data() +8454
       MonthList_qj.Button2_Click1(Object sender, EventArgs e) +5
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 
      

  5.   

    <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8"/> 
    加上他
      

  6.   

    服务器错误' / PhoneList的应用。 
    -------------------------------------------------- ------------------------------ 输入字符串不正确的格式。 
    描述:未处理的例外发生在执行当前Web请求。请检查堆栈跟踪,了解更多有关该错误以及它起源于代码。 异常详细信息: System.FormatException :输入字符串不正确的格式。 来源错误: 未处理的例外是在生成执行当前Web请求。关于信息的来源和位置的例外可确定使用异常堆栈跟踪如下。 是一加载页面就报错还是执行某个程序时报的错。
      

  7.   

    <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8"/> 
    web.config里面加上不好用么
      

  8.   

    原因1: web.config 合格问题
    解决:  检查web.config 是否合格或完整原因2: asp.net版本问题.asp.net有asp.net 1.1和 asp.net2.0 两个版本.
    解决:  如果是2003的os,IIS里同时配置了1.1和2.0的应用的话,需要将1.1和2.0的应用分配到不同的应用程序池中(应用程序池可以随便建一个)!或者是.net framework配置错误!其它原因:解决:重新编译解决方案,或重新安装.net framework!
    http://blog.csdn.net/qinhl99/archive/2008/10/08/3033917.aspx