473,387 Members | 1,597 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,387 software developers and data experts.

get error when I publish my web application to the server

Sun
Hi guys,

I have a problem which troubled me last two weeks. I create a web
applicatoin using VS2005 to generate the powerpoint presentation. All
works fine in my local machine but after I publish the application to
the server, I get the error: Error HRESULT E_FAIL has been returned
from a call to a COM component.
Configuration of my local machine:
WinXP; MS office2003; and I am using the com compenent:
Microsoft PowerPoint Object 11
Configuration of the server
Win server2003; MS office 2003.

and here is the code(csharp) I use:
PowerPoint.Application ppapp = new PowerPoint.Application();
ppapp.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue;
PowerPoint.Presentation pre = ppapp.Presentations.Open
(Server.MapPath(@"~\OfficeTemplate\MonthlyOperatio nData\Report.pot"),
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoTrue);
Can anyone give me some advise, thank you very much.
Nov 17 '08 #1
2 2232

"Sun" <Su******@gmail.comwrote in message
news:f6**********************************@c22g2000 prc.googlegroups.com...
Hi guys,

I have a problem which troubled me last two weeks. I create a web
applicatoin using VS2005 to generate the powerpoint presentation. All
works fine in my local machine but after I publish the application to
the server, I get the error: Error HRESULT E_FAIL has been returned
from a call to a COM component.
Configuration of my local machine:
WinXP; MS office2003; and I am using the com compenent:
Microsoft PowerPoint Object 11
Configuration of the server
Win server2003; MS office 2003.

and here is the code(csharp) I use:
PowerPoint.Application ppapp = new PowerPoint.Application();
ppapp.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue;
PowerPoint.Presentation pre = ppapp.Presentations.Open
(Server.MapPath(@"~\OfficeTemplate\MonthlyOperatio nData\Report.pot"),
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoTrue);
Can anyone give me some advise, thank you very much.
It sounds like you have a permission problem, if the solution works on your
local machine, but it doesn't work when it is deployed to the Win 2k3 Web
server.

The link may help you to get into the ballpark of a possible permission
issue solution.

<http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/05/01/error-hresult-e-fail-has-been-returned-from-a-call-to-a-com-component.aspx>
Nov 18 '08 #2
Sun
On Nov 18, 12:15*pm, "Mr. Arnold" <MR. Arn...@Arnold.comwrote:
"Sun" <Sun.h...@gmail.comwrote in message

news:f6**********************************@c22g2000 prc.googlegroups.com...


Hi guys,
* I have a problem which troubled me last two weeks. I create a web
applicatoin using VS2005 to generate the powerpoint presentation. All
works fine in my local machine but after I publish the application to
the server, I get the error: Error HRESULT E_FAIL has been returned
from a call to a COM component.
* Configuration *of my local machine:
* * *WinXP; MS office2003; and I am using the com compenent:
Microsoft PowerPoint Object 11
* Configuration of the server
* * * Win server2003; MS office 2003.
and here is the code(csharp) I use:
* * *PowerPoint.Application ppapp = new PowerPoint.Application();
* * * * * * * *ppapp.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue;
* * * * * * * *PowerPoint.Presentation pre = ppapp.Presentations.Open
(Server.MapPath(@"~\OfficeTemplate\MonthlyOperatio nData\Report.pot"),
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoTrue);
Can anyone give me some advise, thank you very much.

It sounds like you have a permission problem, if the solution works on your
local machine, but it doesn't work when it is deployed to the Win 2k3 Web
server.

The link may help you to get into the ballpark of a possible permission
issue solution.

<http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/05/01...>- Hide quoted text -

- Show quoted text -
Hi Arnold,

Thank you for your suggestion but the error is still there. I
really want to give up. The error occurs when run the Open method.
and this statement "PowerPoint.Application ppapp = new
PowerPoint.Application(); " runs well even in win 2k3 server. Thank
you.
Nov 19 '08 #3

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

Similar topics

0
by: Rhon Stewart via DotNetMonster.com | last post by:
Hi please visit this link : http://www.eggheadcafe.com/articles/pfc/selfupdater.asp I followed all the steps for listed on the link , when I execute the application it it gives me the following...
2
by: Regus | last post by:
When I publish my website on my host, i got this error. My web.config file does have the customError-tag on "remoteOnly", but still i get this error. Any idea what the problem is ? Server...
0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
1
by: Rich | last post by:
When I try to publish my app I am now getting the 401 error message. It used to work. Then someone changed something on the server. We are now trying to change stuff back on the server. I don't...
1
by: ad | last post by:
I use vs2005 to develop web application, then I deploy it to another server. But when I run the web application on this server, it result in an error: The file '/HealthWeb/Login.aspx' has not...
3
by: Don | last post by:
I have an ASP.NET 2.0 application (in VB) based on the Personal Site Starter kit that runs perfectly (no erros, no warnings, no exceptions) when run from Visual Studio 2005 Team Suite using the...
14
by: brett | last post by:
I have an ASP.NET 2.0 web application that runs fine on my local machine. However, once I upload it, I get this error: Parser Error Description: An error occurred during the parsing of a...
0
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I have not tried this before. I have been building an ASP.Net 2.0 app for some weeks now and up till now I have not had any problems publishing. I was given a Word doc to include in the app. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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,...
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...

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.