Server Error in '/' 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>这个是错误代码
是不是我的路径出问题了?
网银密钥路径是根据网站来的
    <add key="priKeyPath" value="http://www.uush.com.cn\key\MerPrK.key"/>
    <add key="pubKeyPath" value="http://www.uush.com.cn\key\PgPubk.key"/>
本地测试是没问题的,传到服务器上就出错了。
请各位指点下。谢谢

解决方案 »

  1.   

      <add key="priKeyPath" value="http://www.uush.com.cn/key/MerPrK.key"/>
      

  2.   

    把customErrors设为Off,区分大小写
    <customErrors mode="Off"/>
      

  3.   

    我也在迷茫这个问题呀。web.config配置  只有密钥配置,其他都正常的。不然我在本地就会出错了
      

  4.   

    本地你是发布在iis上测试还是只是在开发环境里测试?
      

  5.   

    错误原因:
    <add key="priKeyPath" value="http://www.uush.com.cn\key\MerPrK.key"/>
    <add key="pubKeyPath" value="http://www.uush.com.cn\key\PgPubk.key"/>
    网银接口,所需要的路径是绝对路径,是在在当前服务器下边的路径
    而不是网站路径。
    <add key="priKeyPath" value="D:\webnet2\YouYou\key\MerPrK.key"/>
    <add key="pubKeyPath" value="D:\webnet2\YouYou\key\PgPubk.key"/>