473,322 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

MSOffice and ASP.NET

Hello,

I have a ASP.NET Page which allows the user to upload a file.
What i have to do is
when the user uploads a PowerPointFile i have to convert in to html
and
save both ppt and html versions of it.

I have a working program of converting ppt to html on localmachine.
When I try to do it from the ASP.NET Page I get an error Access
Denied.

Regarding Access to the directory i am able to save the posted file
(ppt)to the
directory.only when i convert it to html and save i get the problem.

Here are the details.
----------------------------------------------------------------------------
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is
denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user
-----------------------------------------------------------------------------
In the source Error sections of ASP.NET error page i have the first
line of the
function where i am creating the PowerPoint.ApplicationClass() causing
the problem.
Is the problem due to desktop access to the powerpoint application.
How to fix the problem.
OR
Does the MSOffice components work only with the standalone
applications.

S.Kartikeyan
Nov 15 '05 #1
3 1376
There are probably 2 aspects to it.

1. You are trying to interop within ASP.NET and the security policy may
prohibit this.
2. The loading and conversion using powerpoint will probably require access
to other directories, and possibly generate some temporary files somewhere.
You may need to grant additional access to some directories (and I am not
sure which ones) for the aspnet user (Win2000) or NETWORK SERVICE (Win2003)
to make it work. Check powerpoint for some temp directories that are setup
within the program or see where it might be creating temporary files under
your known working user.
--
- Paul Glavich
"S.Kartikeyan" <in*******@yahoo.com> wrote in message
news:6d**************************@posting.google.c om...
Hello,

I have a ASP.NET Page which allows the user to upload a file.
What i have to do is
when the user uploads a PowerPointFile i have to convert in to html
and
save both ppt and html versions of it.

I have a working program of converting ppt to html on localmachine.
When I try to do it from the ASP.NET Page I get an error Access
Denied.

Regarding Access to the directory i am able to save the posted file
(ppt)to the
directory.only when i convert it to html and save i get the problem.

Here are the details.
-------------------------------------------------------------------------- -- Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is
denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user
-------------------------------------------------------------------------- --- In the source Error sections of ASP.NET error page i have the first
line of the
function where i am creating the PowerPoint.ApplicationClass() causing
the problem.
Is the problem due to desktop access to the powerpoint application.
How to fix the problem.
OR
Does the MSOffice components work only with the standalone
applications.

S.Kartikeyan

Nov 15 '05 #2
Also, it should be noted that unattended server side use of Microsoft Office
in this manner is not a supported scenario.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Paul Glavich" <gl**@aspalliance.com-NOSPAM> wrote in message
news:#r**************@tk2msftngp13.phx.gbl...
There are probably 2 aspects to it.

1. You are trying to interop within ASP.NET and the security policy may
prohibit this.
2. The loading and conversion using powerpoint will probably require access to other directories, and possibly generate some temporary files somewhere. You may need to grant additional access to some directories (and I am not
sure which ones) for the aspnet user (Win2000) or NETWORK SERVICE (Win2003) to make it work. Check powerpoint for some temp directories that are setup
within the program or see where it might be creating temporary files under
your known working user.
--
- Paul Glavich
"S.Kartikeyan" <in*******@yahoo.com> wrote in message
news:6d**************************@posting.google.c om...
Hello,

I have a ASP.NET Page which allows the user to upload a file.
What i have to do is
when the user uploads a PowerPointFile i have to convert in to html
and
save both ppt and html versions of it.

I have a working program of converting ppt to html on localmachine.
When I try to do it from the ASP.NET Page I get an error Access
Denied.

Regarding Access to the directory i am able to save the posted file
(ppt)to the
directory.only when i convert it to html and save i get the problem.

Here are the details.


--------------------------------------------------------------------------
--
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is
denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user


--------------------------------------------------------------------------
---
In the source Error sections of ASP.NET error page i have the first
line of the
function where i am creating the PowerPoint.ApplicationClass() causing
the problem.
Is the problem due to desktop access to the powerpoint application.
How to fix the problem.
OR
Does the MSOffice components work only with the standalone
applications.

S.Kartikeyan


Nov 15 '05 #3
How to change the Interop security policy so that it can be done.
I don't think it uses temporary files.
There are probably 2 aspects to it.
1. You are trying to interop within ASP.NET and the security policy may
prohibit this. --
- Paul Glavich

You mean it is impossible to do it.????????
Or
just the official documentation does not list the scenario,but the scenario is
possible

Also, it should be noted that unattended server side use of Microsoft Office
in this manner is not a supported scenario.
--Thanks, Eric Lawrence
Program Manager
Assistance and Worldwide Services

Nov 15 '05 #4

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

Similar topics

1
by: steven chong | last post by:
Hi everyone, Hope the MVPs for Office can help me out here. Programming the word object is new to me. Basically, what i need to do is... 1) Open a template word document. 2) Menu->Insert->File...
1
by: R Reyes | last post by:
Hi, what is the best way to manipulate MSOffice programs? i understand that regular web pages do not have the permissions (because of safety measures) to open up MS word/excel programs, for...
5
by: R Reyes | last post by:
Hi, no one answered so I thought reposting would get this some attention... What is the best way to manipulate MSOffice programs? I understand that regular web pages do not have certain...
1
by: srinivas | last post by:
Hi, I created an interactive html page by saving an excel file.What i need is, i created this file using office 2000.some of our clients are unable to access my page.when ever they attempt to...
0
by: Arno R | last post by:
Hi there, I have a MsGraph-chart in my report. I just want to display a graph for each record (just plain bars for a value each year, nothing fancy) On one PC where only Access 97 is installed...
3
by: S.Kartikeyan | last post by:
Hello, I have a ASP.NET Page which allows the user to upload a file. What i have to do is when the user uploads a PowerPointFile i have to convert in to html and save both ppt and html...
2
by: Siegfried Heintze | last post by:
In 2004 (approximately) MS Tech support explained that while there was limited support for native mode Active X controls in a few cases (like IE), ActiveX controls should be all native code...
3
by: Rsmastermind | last post by:
Dear all I am having the setup file of Msoffice-2007 but when I installed it had given an error that was shown in flash so I cant describe the error.Now when I am opening the Msoffice application it...
1
by: =?Utf-8?B?a2F3aXNo?= | last post by:
hi i have some problam in msoffice documents, problam is.... i m open ms word or ms excel file but it asking file conversion n i dont see my save document... my documents save in english language...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.