473,804 Members | 3,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Unauthor izedAccessExcep tion: 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}\ASPNE T 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="tr ue"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAM E) 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.Appl icationClass() 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 1391
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.Kartikey an" <in*******@yaho o.com> wrote in message
news:6d******** *************** ***@posting.goo gle.com...
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.Unauthor izedAccessExcep tion: 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}\ASPNE T 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="tr ue"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAM E) 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.Appl icationClass() 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**@aspallian ce.com-NOSPAM> wrote in message
news:#r******** ******@tk2msftn gp13.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.Kartikey an" <in*******@yaho o.com> wrote in message
news:6d******** *************** ***@posting.goo gle.com...
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.Unauthor izedAccessExcep tion: 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}\ASPNE T 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="tr ue"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAM E) 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.Appl icationClass() 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
3976
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 (Another word Document) 3) Page Break 4) Repeat Step 2 for another file 5) Page Break 6) Save
1
1232
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 example, from a web site. What I need is a strategy for the best way to open up word/excel applications and manipulate them by adding/removing text, formatting, and doing mail merge types of transactions. Would ActiveX be the best strategy to...
5
1659
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 permissions (because of safety measures) to do things like open up MS word/excel programs, for example, from a web site. Usually an activex control must be installed first I think? What I need is a strategy for the best way to open up word/excel...
1
1446
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 access this page they are getting the message like "To use this Web page interactively, you must have Microsoft® Internet Explorer 4.01 or later and the Microsoft Office Web Components.See the Microsoft Office Web site for more information".
0
1218
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 everything works fine. On my production-PC where I have installed several Office versions (all in different folders) some graphs just NOT represent the values of the corresponding record...
3
1559
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 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
2
1509
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 (especially for MS Office). Has this change with VS2005? Does MSOffice Support ActiveX controls written in J#, C# and Javascript.net? Thanks, Siegfried
3
1561
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 is showing me that this is not installed for the current user .But I had installed from the Adminstrator and tried using with the same login.
1
1331
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 but msoffice open unknown codes .....please help me what can i do......thanks rgds... kawish
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9160
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.