在發布asp.net開發的website的時候,總會遇到各種各樣的問題,而這些問題在本機進行開發時候是不會出現的。下面幾個是常見的問題
1.sympton
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
- Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
- If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
- Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
solution:
可能是asp.net 的服務沒有沒有開啟。只需要開啟iis伺服器,選擇web services extension s-> allow asp.net *.*服務即可。
2 symption: Writing data to Access or specified files will be denied!向指定的檔案裡面寫入資料時候,會無法寫入。例如Access資料庫的更新等等。
reason:
iis如果採用anonymous登入方式的話,是使用了IUSER_<Machine_name>來進行的。而default的access acount是沒有對檔案進行write/update的許可權的。這時,我們需要將website相關acount都賦予wirte/update的permission即可。具體操作如下:
找到需要write/update所在檔案夾/檔案,點擊右健--〉security,然後將相應acount添加到其使用者租,並給與其write 許可權即可