I cant seem to create any shell related object while scripting asp.net web page with VB
Server.CreateObject("Wscript.Shell")
and
CreateObject("shell.application")
seems to return same error message. I believe I have done something wrong that I am not aware of. Can anybody please point where I am going wrong?
It gives the following error message
The component 'shell.application' cannot be created. Apartment threaded components can only be created on pages with an
<%@ Page aspcompat=true %>page directive.The component 'Wscript.Shell' cannot be created. Apartment threaded components can only be created on pages with an
<%@ Page aspcompat=true %>page directive.