When publishing the website developed by Asp.net, there will always be various problems that will not occur during local development. The following are common problems:
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:
It may be that the Asp.net service is not enabled. Open the IIS server and select Web Services extension S-> allow Asp.net.
2 symption: writing data to access or specified files will be denied! Data cannot be written to a specified file. For example, update the ACCESS database.
Reason:
If IIS uses the anonymous logon method, iuser _ <machine_name> is used. The default access acount does not have the write/update permission on the file. In this case, we need to assign the website-related acount to the wirte/update permission. The procedure is as follows:
Find the folder/file where write/update is needed, click the right key --> Security, add the corresponding acount to the user rent, and grant the write permission to the user.