Thursday, June 28, 2012

Clear java applet cache

Just to note how I usually clear cache for jar file, when the file replaced with the new jar file but with the same name. 






debug classic asp error 500


After changing asp file's name, then error 500 occurs, here's how to solved the problem.

Try to check in windows eventvwr, there is an error like this:
Error: The Template Persistent Cache initialization failed for Application Pool 'ASP Classic' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..

Setting in your website to view detailed error:
1. Goto IIS,
2. >Default Web Site
3. >Your Virtual Directory/Website
4. Switch to Features View (if not in feature mode)
5. below IIS grouping, choose Error Pages, then double click
6. on right window, click Edit Feature Settings
7. pick Detailed errors (the second radio button)
8. click OK

Internet Explorer has a feature that blocks the true error message from being displayed. In order to display the true error message, follow the instructions below:
1.     Open Internet Explorer
2.     Go to "Tools" --> "Internet Options"
3.     Go to "Advanced" tab
4.     Uncheck "Show Friendly Error Message"
5.     Click "OK"
6.     Reload the page, you should now see a more detailed error message.
Source: http://support.discountasp.net/KB/a322/i-receive-http-500-internal-server-error-when-i-try.aspx

Then finally I found the root of the problem, it is in my asp code, I change the file name but forgot to change the name in <include> tag inside the code, lol.