| re: GetObject() func does not work in asp.net?
Norman,
Thanks very much for being great help. Since you've helped answering this
question, would you please help answering my Win app question reqarding the
same object? What would I have to do to completely close the objExcel I
execute the app? For I have problem opening the file once the obj had been
accessed until I restart Windows. Thanks.
--
bic
"Norman Yuan" wrote:
[color=blue]
> 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" <bic@discussions.microsoft.com> wrote in message
> news:0278824D-79F4-42C7-9AF0-19CB58583B85@microsoft.com...[color=green]
> > 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:
> >[color=darkred]
> >> 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" <bic@discussions.microsoft.com> wrote in message
> >> news:09EF8031-641B-47FA-84A6-D89E27635B98@microsoft.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
> >>
> >>
> >>[/color][/color]
>
>
>[/color] |