WINDOW2008+IIS7 date format issues for deployment sites

Source: Internet
Author: User

Recently deployed an ASP Web site, found that a feature of the site calendar on the original server when accessed by a specific date to the day of the bold red display, but deployed to my company's computer room on the win2008 server access when it does not have this effect.

So through the local deployment, using VS for debugging to see the value of the variable to find in the ASP code to get the current date format is yyyy/m/d, and then the code and the other by the concatenation of the date format yyyy-m-d comparison, which is obviously always false, That's why the calendar doesn't have a bold and red display for a particular date.

By finding a solution on the web, the problem is finally solved successfully by the following methods.

1. Run Registry Editor (REGEDIT)
2, enter into the hkey_users/. Default/control panel/international
3, modify the right sdate value is-
4. Modify the right sshortdate value to YYYY-MM-DD
5. Restart your computer

Attach the VS Debug ASP method:

1. Install IIS locally and deploy the ASP Web site. (Note that when installing ASP and ASP, the parent path is enabled when ASP is configured, if the ASP is 32-bit, the 32-bit program is enabled in the application pool setting).

2. Use your browser to access the ASP pages you want to debug.

3. Start vs as an administrator.

4, vs menu bar Select File = "open =" web site, select Local IIS, and then select the deployed ASP site.

5. VS Editor Open the ASP file you want to debug, set breakpoints, and select debug = on the VS menu bar to attach to the process.

6. Set the options in the first red box as shown, and then locate the process w3wp.exe

Note If the process is not found, then check the "Show all user Processes", "show processes in all sessions" above, and if not, refresh the browser's ASP page.

7, add good, refresh the browser ASP page, this time on VS will automatically break the breakpoint to your place.

WINDOW2008+IIS7 date format issues for deployment sites

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.