hkitalk.net 香港交通資訊網

 找回密碼
 會員申請加入


(B0)香港巴士車務及車廂設備 (B1)香港巴士廣告消息/廣告車行踪 (B2)香港巴士討論 [熱門] [精華] (B3)巴士攝影作品貼圖區 [熱門] [精華] (B3i)即拍即貼 -手機相&翻拍Mon相 (B4)兩岸三地巴士討論 [精華] (B5)外地巴士討論 [精華]

Advertisement


(B6)旅遊巴士及過境巴士 [精華] (B7)巴士特別所見 (B11)巴士精華區 (B22)巴士迷吹水區   (V)私家車,商用車,政府及特種車輛 [精華]
(A6)相片及短片分享/攝影技術 (A10)香港地方討論 [精華] (A11)消費著數及飲食資訊 (A16)建築物機電裝置及設備 (A19)問路專區 (N)其他討論題目  
(F1)交通路線建議 (C2)航空 [精華] (C3)海上交通及船隻 [精華] (D1)公共交通有關商品 [精華]   (Y)hkitalk.net會員福利部 (Z)站務資源中心
(R1)香港鐵路 [精華] (R2)香港電車 [精華] (R3)港外鐵路 [精華]   (O1)omsi討論區 (O2)omsi下載區 (O3)omsi教學及求助區
(M1)小型巴士綜合討論 (M2)小型巴士多媒體分享區 (M3)香港小型巴士字軌表        
 

Advertisement

 

hkitalk.net 香港交通資訊網»論壇 舊文庫 生活資訊舊文庫 電腦及資訊科技與產品 asp.net 執行問題
開啟左側

asp.net 執行問題

[複製鏈接]
CardCaptor 發表於 2006-1-3 14:39 | 顯示全部樓層 |閱讀模式

                                    Advertisement



小弟寫了個.aspx檔案
是由html form讀取資料去這個檔案
再寫入去access的資料庫

但在執行時就整了段:

Server Error in '/Web' 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>


但小弟已經有一個web.config
內容如下:

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
        <appSettings/>
        <connectionStrings/>
        <system.web>
                <customErrors mode="Off"/>    <!--它叫小弟加上去就在這裡-->
                <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
                <compilation debug="true"/>
                <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
                <authentication mode="Windows"/>
                <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
        </system.web>
</configuration>

其實是怎麼的一回事?
謝!!
不定期舉辦各類代購活動, 詳情PM.
Dolphin 發表於 2006-1-3 22:23 | 顯示全部樓層
在自己 local IIS 在 VS.net debugger run 有無問題?
 樓主| CardCaptor 發表於 2006-1-3 22:39 | 顯示全部樓層
原帖由 Dolphin 於 2006-1-3 22:23 發表
在自己 local IIS 在 VS.net debugger run 有無問題?


無問題...
(因為開始了"DEBUG程序"...)
不定期舉辦各類代購活動, 詳情PM.
Dolphin 發表於 2006-1-3 23:21 | 顯示全部樓層

                                    Advertisement



在 IIS server 用 localhost 入去,睇唔睇到個 program 死乜?

不如試下係 appSettings add 個 key 落去個 web.config 再試下係個 program 度拎番出黎,睇下佢係咪用緊你個 web.config?
 樓主| CardCaptor 發表於 2006-1-4 00:29 | 顯示全部樓層
原帖由 Dolphin 於 2006-1-3 23:21 發表
在 IIS server 用 localhost 入去,睇唔睇到個 program 死乜?

不如試下係 appSettings add 個 key 落去個 web.config 再試下係個 program 度拎番出黎,睇下佢係咪用緊你個 web.config?


現在的情況:

之前那個抄回來都用不好
轉用呢個web.config:

<configuration>
  <system.web>
          <customErrors mode="Off"/>
          <compilation debug="true"/>
  </system.web>
</configuration>

就可以在localhost行都沒問題...
個問題實時解決了
再來的就靠自己debug了

謝閣下的回應~~
不定期舉辦各類代購活動, 詳情PM.
您需要登錄後才可以回帖 登錄 | 會員申請加入

本版積分規則

Advertisement

Advertisement

Advertisement

Advertisement

Advertisement

站規|清理本站Cookies|hkitalk.net 香港交通資訊網

GMT+8, 2024-4-27 16:21

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回復 返回頂部 返回列表