472,980 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,980 software developers and data experts.

ASP.Net and powerpoint

We are having trouble automating Powerpoint 2003 from an asp.NET web
page. I know that MS officially discourages doing such a thing, but we
are trying nonetheless.

On only one of two servers, I get an Access Denied error when I attempt:

pptApp = new Powerpoint.Application

On the other server this works just fine. On this server (running xp
pro) Powerpoint opens in a process owned by the ASPNET user and is
happy. I had to give the aspnet administrator privileges--when I take
them away, it gives the error.

On the server that always gives the error (windows server 2003), it
doesn't seem to matter what privileges ASPNET has--the error occurs
regardless.

I have been banging my head on this for a while--I see other people have
run into this trouble for Word/Excel/Access and maybe have solved their
problems by the steps in the KB article HOWTO: Configure Office
Applications to Run Under a Specific User Account, but I tried to
duplicate those steps (though Powerpoint isn't mentioned in it) without
luck.

Why is one computer working and the other not? I imagine it's a matter
of configuration, but it's eluding me. I would appreciate very much any
help you might be able to offer.

Thanks,

-Casey
Nov 19 '05 #1
3 1909
On Windows Server 2003 computers ASP.NET doesn't run under the ASPNET
account by default.
Instead, it runs under the NETWORK SERVICE account.
Try giving this account administrator privileges, or configure ASP.NET to
run under another account that has administrator privileges.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"C Williams" <no****@thank.you> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
We are having trouble automating Powerpoint 2003 from an asp.NET web page.
I know that MS officially discourages doing such a thing, but we are
trying nonetheless.

On only one of two servers, I get an Access Denied error when I attempt:

pptApp = new Powerpoint.Application

On the other server this works just fine. On this server (running xp pro)
Powerpoint opens in a process owned by the ASPNET user and is happy. I
had to give the aspnet administrator privileges--when I take them away, it
gives the error.

On the server that always gives the error (windows server 2003), it
doesn't seem to matter what privileges ASPNET has--the error occurs
regardless.

I have been banging my head on this for a while--I see other people have
run into this trouble for Word/Excel/Access and maybe have solved their
problems by the steps in the KB article HOWTO: Configure Office
Applications to Run Under a Specific User Account, but I tried to
duplicate those steps (though Powerpoint isn't mentioned in it) without
luck.

Why is one computer working and the other not? I imagine it's a matter of
configuration, but it's eluding me. I would appreciate very much any help
you might be able to offer.

Thanks,

-Casey

Nov 19 '05 #2
The machine running Server 2003 does not have a NETWORK SERVICE account.
How do I find out under which account ASP.NET is running?

I am going to go attempt to find information about how to configure
ASP.NET to run from a given account, but if anyone has anything helpful
to say that might not be covered in available articles, I'd most
appreciate it.

Steve C. Orr [MVP, MCSD] wrote:
On Windows Server 2003 computers ASP.NET doesn't run under the ASPNET
account by default.
Instead, it runs under the NETWORK SERVICE account.
Try giving this account administrator privileges, or configure ASP.NET to
run under another account that has administrator privileges.

Nov 19 '05 #3
Go to Administrative Tools -> IIS Manager.
Expand the computer node in the tree view, then expand the application
pools node. Right click on the application pool for your app (probably
the default app pool), and select Properties, then go to the Identity
tab. This will display the account used to run the ASP.NET worker
process.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 17 May 2005 11:50:57 -0400, C Williams <no****@thank.you>
wrote:
The machine running Server 2003 does not have a NETWORK SERVICE account.
How do I find out under which account ASP.NET is running?

I am going to go attempt to find information about how to configure
ASP.NET to run from a given account, but if anyone has anything helpful
to say that might not be covered in available articles, I'd most
appreciate it.

Steve C. Orr [MVP, MCSD] wrote:
On Windows Server 2003 computers ASP.NET doesn't run under the ASPNET
account by default.
Instead, it runs under the NETWORK SERVICE account.
Try giving this account administrator privileges, or configure ASP.NET to
run under another account that has administrator privileges.


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ata | last post by:
Hello, I am trying to copy the contents of the output of SQL Reporting Services to a PowerPoint slide. For this, I am using SQL Reporting Services to obtain an IMAGE stream, which I paste to the...
6
by: C Williams | last post by:
Hi, I am writing some VB.NET code that compiles to a dll. There is some code within it that manipulates Powerpoint 2003. The dll I am writing is for smart tags, and I am having trouble...
2
by: WillRead | last post by:
I have a VB.Net application and a PowerPoint presentation explaining how each form in the application works, etc.. I would like to select and display the slide appropriate for each form by pressing...
4
by: Joseph | last post by:
I am trying to open a 3 powerpoint presentation simultaneously afte each other without interruption, the operator of the application doe not need to notice anything or interfere in the operation of...
0
by: Marc Eggenberger | last post by:
Hi there. I have an webapp (asp.net) which should use powerpoint to create a presentation and then send that presentation to the user. I'm using VS2003 and Office2003 (project req.). The...
8
by: Rut | last post by:
Does anyone know how to start powerpoint from vb.net without the ppt screen appearing. I want to keep it hidden? Using this code: Try pp = New PowerPoint.Application pp.Visible =...
0
by: bosky101 | last post by:
hi, im using VS 2005 ,and working on a windows applicaiton that opens powerpoint files. I ahve stumbled upon the folowing problems : 1. no pIA 's for office 2000 . what do i do ? 2. i managed...
6
by: BWPanda | last post by:
Hi everyone, I'm wanting to use VB.NET to display a powerpoint presentation, much the same way as the presenter that comes with PowerPoint (when used on multiple monitors). Basically, I want to...
1
by: chrizstone | last post by:
Hi Guys, What i want to do is: I want to create a Slide programmatically where a Table is on it! Here´s my Code: String strTemplate; strTemplate = template; String...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.