473,804 Members | 3,557 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 18 '05 #1
3 1559
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 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**@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 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
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...
5
243
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...
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
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
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.