It is most likely that you have user permission problem: by default, the
user account running the ASP.NET app (ASPNET, or Network Service) does not
have permission to run applications, such as Word, Excel... on the web
server. There is quite some posts on this issue and how to solve this.
Search MS KB or Google will give lots of links.
BTW, running desktop app, such as Excel. on the server side, is risky and
tricky and not recommended, especially if the ASP.NET app is open to public
or has a lot concurrent users. Soon coming VS2005 for MS Office Tool add new
means to get data pushed into Excel/Word without actually opening
*.xls/*.doc on the server. You may want to look into that approach.
"bic" <bi*@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com...
Norman,
Thanks for your attempt to help. My Windows app works but moved to
asp.net
the same code as follows
Dim objExcel As Object
objExcel = GetObject("P:\newbuild_data.xls")
I got bogged down. Why?
--
bic
"Norman Yuan" wrote:
It depends on what object you want to get and if it has been already
created
(GetObject() is inherited from VB by VB.NET, to get existing object
instance, not for instantiating a new object instance), and more
importantly, if the user account has the permission to run that app the
object instance stands for.
"bic" <bi*@discussions.microsoft.com> wrote in message
news:09**********************************@microsof t.com... > When porting my Windows app to asp.net I get an System.Exception:
> Cannot
> create ActiveX component. What function can I use instead? Thanks for
> your
> comments.
>
> --
> bic