473,396 Members | 1,784 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,396 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 18 '05 #1
3 1546
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 18 '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 18 '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 18 '05 #4

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

Similar topics

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...
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.