Sunday, January 17, 2010

Unable to set the orientation property

"Unable to set the orientation property of the PageSetup class". This error message is appeared in my VB6 code, which is used to set the orientation of an excel file to landscape.

This error message only appeared in 1 computer. Why did it happen only in 1 computer? Well...the computer didn't have a default printer. I just need to add a default printer, then the problem disappeared.

Source:
http://www.ureader.com/msg/103711516.aspx

Tuesday, January 5, 2010

Dot in directory name (IIS)

I have a directory name that contains dot (ex: http://localhost/test3.5). Just recently, I was not able to open that page from the browser.

How to fix it?
Firstly, I have to open UrlScan.ini file. In my computer, it's located in the C:\WINDOWS\system32\inetsrv\urlscan folder.

Then, I have to change this value from 0 to 1:
AllowDotInPath=1

I don't need to restart the IIS. Just refresh the browser..and it works!

Source: http://forums.iis.net/t/1150130.aspx