學習小筆記 - IIS

IIS 的歷史見證

IIS 版本 OS 版本 說明
PWS Windows 95/98 Personal Web Service
IIS 3 Windows NT Workstation  
IIS 4 Windows NT Pro  
IIS 5 Windows 2000  
IIS 5.1 Windows XP  
IIS 6 Windows 2003  
IIS 7 Windows Vista  

學習小筆記 - Exception

Server/Client 架構下的程式,若要在 Server 中送出 異常 訊息,可以用

throw new Exception(“資訊異常通知!”);

學習小筆記

在動態表單的應用技巧上,常會遇到兩種表單資料傳遞的動作:GET、POST

GET 動作

  1. 會在網址列顯示出表單傳遞的內容。
  2. http://localhost/Contact.htm?name=perton&addr=taipei
    其中 ? 後的參數有兩個:name, addr
    參數的值分別是 perton, taipei
  3. 有字元數的限制

 

POST 動作

  1. 沒有字元數的限制
  2. 可以將圖像或其他檔案上傳到伺服器
  3. 網址列不會顯示出表單傳遞的內容

基於安全考量,建議使用 POST 方式傳送表單資料。

列印錯誤訊息:Service Unavailable

列印時,產生錯誤訊息:Service Unavailable

這是應該是 IIS 的 Application Pool 不正常所致,確定一下該功能是正常運行了。

不正常的情形:

image

正常的情形:

image

賦值時產生錯誤?

在賦值給 Container 中的控件時,系統產生如下錯誤,該如何排除問題?

image

  1. 確定 Container_Load 事件有被執行
  2. Container_Load 事件中,有 Container.DBMove 的指令
    (這指令是用以 啟動 Container_LoadBlock )

 

image

  1. 確定 Container_SaveRow 事件有被執行

EmailService 服務無法正常開啟

錯誤訊息,如下:

image

查詢 Event Log 得知,

Event Type:	Error
Event Source: Service1
Event Category: None
Event ID: 0
Date: 2010/07/27
Time: 09:40:13
User: N/A
Computer: L01-SRV-06
Description:
Failed to stop service. System.IO.IOException: The process cannot access the file 'C:\Program Files\LRERP\EmailServiceSetup\log\EmailServer\JobLog 2010-07-27.xml' because it is being used by another process.
at LRComponent.StandardLibaray.PublicFunction.WriteLog(LogType logType, String user, String module, String function, String message)
at EmailService.EmailService.OnStop()
at System.ServiceProcess.ServiceBase.DeferredStop()

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


因為在開啟服務的過程中,記錄檔 JobLog 2010-07-27.xml 被獨佔開啟,且內容也被破壞。

所以,要手動刪除該檔案。



再重新啟動 EmailService Service.

帳套錯誤?

在輸入 AP服務器 資料後,系統回報 帳套錯誤 訊息,為何會有這情形?
(已注意到 DBManager 的註冊工作,是正常了)

image

  1. 先確定 LRERP 虛擬目錄下的子文件夾,是不是也和 LRERP 的 圖示 一樣 !!
    (不是,則重新安裝 Lorom ApplicationServices Setup.msi )
  2. 確定下示圖中的步驟,是可以瀏覽到 Service 的內容。

image

image

(不是,還是需要重新安裝 Lorom ApplicationServices Setup.msi )