467,879 Members | 1,259 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

"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
  • viewed: 6943
Share:
2 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bruce Schechter | last post: by
2 posts views Thread by Lubomir | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.