473,320 Members | 2,029 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,320 software developers and data experts.

"Server execution failed" when trying to use COM

I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new Word.ApplicationClass();' takes quit a bit of time, and eventually "Server Execution Failed" page appears.

"Exception Details: System.Runtime.InteropServices.COMException: Server execution failed
...
[COMException (0x80080005): Server execution failed]"

The same call inside a WIndows Form succeeds. But for some reason, in ASP.NET it doesn't.

Quick search on the internet didn't reveal anything new. I would appriciate if anyone would throw some light on it.

TIA,
Ravi
Nov 18 '05 #1
2 7303
Ravi,

That's because a call like that is creating the word document on the server
not the client. When dealing with web applications you have to remember that
the code you are writing is being executed on the server. All that the
client receives is the html result of that code execution.

You can not open a word document on a client without first downloading an
ActiveX object or something similar to the client.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Ravi J" <Ravi J@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new
Word.ApplicationClass();' takes quit a bit of time, and eventually "Server
Execution Failed" page appears.
"Exception Details: System.Runtime.InteropServices.COMException: Server execution failed ..
[COMException (0x80080005): Server execution failed]"

The same call inside a WIndows Form succeeds. But for some reason, in ASP.NET it doesn't.
Quick search on the internet didn't reveal anything new. I would appriciate if anyone would throw some light on it.
TIA,
Ravi

Nov 18 '05 #2

The ASPNET account does not have a user profile, which Office programs
expect when they, for example, load a most recently used file list.

See http://support.microsoft.com/default...;EN-US;q257757
for more info...

--
Scott
http://www.OdeToCode.com

On Wed, 14 Jul 2004 14:36:02 -0700, Ravi J <Ravi
J@discussions.microsoft.com> wrote:
I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new Word.ApplicationClass();' takes quit a bit of time, and eventually "Server Execution Failed" page appears.

"Exception Details: System.Runtime.InteropServices.COMException: Server execution failed
..
[COMException (0x80080005): Server execution failed]"

The same call inside a WIndows Form succeeds. But for some reason, in ASP.NET it doesn't.

Quick search on the internet didn't reveal anything new. I would appriciate if anyone would throw some light on it.

TIA,
Ravi


Nov 18 '05 #3

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

Similar topics

0
by: Yi | last post by:
Hi, I am a scientist and new to .NET programming. On my PC, I am using Windows 2000 professional with IIS, SQL Server 2000 (standard, personal), Visual Basic .net (2003, standard). By following...
3
by: Bill Davidson | last post by:
All: I recently upgraded a VC++6 COM Server Exe project to VC++7.1 (w/ the latest PSDK). After a couple of minor hurdles, I got the project to compile and self-register. Unfortunately, when...
2
by: a | last post by:
I keep getting this message, "unable to get the project file from the web server" when I try to open a new project that I just copied. I created a virtual director with IIS 5 (VS2002). Trying to...
2
by: Luke | last post by:
Hi I have the following code which is an ASP questionnaire using an Access database. (I am using access as I have no choice!). Basically there is an html form which submits the form to the page...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
2
by: Lubomir | last post by:
Hi, I have a BoundColumn in a DataGrid: <asp:BoundColumn DataField="lastname" SortExpression="lastname" ReadOnly="True" HeaderText="Last Name"></asp:BoundColumn> Column is sorted. I am...
2
by: cmay | last post by:
I have a web application that I want to run using the "ASP.NET Development Server" when I am working locally. When I go to do this however, I don't see an option to set the Virtual Path. By...
0
by: Hawksey | last post by:
Hello, Has anyone else experienced a similar problem. We get an intermittent error trying to send mail using smtpmail. Our SmtpMail.SmtpServer is a different server to our web application...
2
by: javelin | last post by:
I'm studying "Visual Basic Developer's Guid to ASP & IIS", and I am following instructions an pp 72-75. I am creating a WebClass, and enter code as instructed, and it all is entered correctly. ...
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
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.