473,511 Members | 16,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM Interop Via Web

I have a basic web app that is using Word (I know, big no no) to fill out a
Word Template based on form input and save the resulting document to
SharePoint. When I'm running the application locally (logged onto Windows
Server) it works great. Remotely, it hangs when opening the Word application
instance. I assume I have some DCOM or other security issue. Any ideas on
where it may be?

Thanks!
Tyler Allbritton
Apr 10 '07 #1
3 1218
"Tyler Allbritton" <ta*********@newsgroups.nospamwrote in message
news:DA**********************************@microsof t.com...
I have a basic web app that is using Word (I know, big no no)
Hmm - just to be clear, you already *know* that what you're doing is a "big
no no", and now you're wondering why it doesn't work...?
I assume I have some DCOM or other security issue.
Who knows - it could be any number of things...

The simple fact is that server-side Office automation is not supported by
Microsoft because it's not designed to work this way:
http://support.microsoft.com/default...US;q257757#kb2

Use this instead: http://www.aspose.com/Products/Aspose.Words
Apr 10 '07 #2
Mark - Thanks for the comment.

If anyone is interested in an actual solution though, Word and other Office
apps need to run under normal user accounts as opposed to a built-in accounts
like LOCAL SERVICE. This is why it worked when I was logged in, but not
remotely. Microsoft outlines how to do this specifically for Office/COM here:
http://support.microsoft.com/default.aspx/kb/288367.

In my case I set the Idenity for Word to the new OfficeAutomationUser
account via DCOMCNFG. It works great!

"Mark Rae" wrote:
"Tyler Allbritton" <ta*********@newsgroups.nospamwrote in message
news:DA**********************************@microsof t.com...
I have a basic web app that is using Word (I know, big no no)

Hmm - just to be clear, you already *know* that what you're doing is a "big
no no", and now you're wondering why it doesn't work...?
I assume I have some DCOM or other security issue.

Who knows - it could be any number of things...

The simple fact is that server-side Office automation is not supported by
Microsoft because it's not designed to work this way:
http://support.microsoft.com/default...US;q257757#kb2

Use this instead: http://www.aspose.com/Products/Aspose.Words
Apr 10 '07 #3
"Tyler Allbritton" <ta*********@newsgroups.nospamwrote in message
news:0D**********************************@microsof t.com...
If anyone is interested in an actual solution though, Word and other
Office
apps need to run under normal user accounts as opposed to a built-in
accounts
like LOCAL SERVICE. This is why it worked when I was logged in, but not
remotely. Microsoft outlines how to do this specifically for Office/COM
here:
http://support.microsoft.com/default.aspx/kb/288367.
Sigh... Did you actually *read* that article...? Specifically, the bits
saying things like "We do not recommend or support...", "...risky and
unstable...", "stop responding (hang)", "...corrupt data...", "...crash the
calling process...", "...bring down your Web server...", "Office was not
designed, and is not safe, for unattended execution on a server. Developers
who use Office in this manner do so at their own risk."

Etc.
In my case I set the Idenity for Word to the new OfficeAutomationUser
account via DCOMCNFG. It works great!
Best of luck - you're really going to need it!
Apr 10 '07 #4

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

Similar topics

0
2337
by: roy | last post by:
I try to call com written in VB 6.0. When I use VS.net Studio to do the debuging, some time it works fine, some time I got the following message: Server Error in '/GISOnlineReservation'...
0
1544
by: roy | last post by:
I try to call com written in VB 6.0., some time it works fine, some time I got the following message: Server Error in '/GISOnlineReservation' Application....
0
2253
by: keefah | last post by:
Hi, I'm writing a C# web app that uses Outlook to send email. I use a reference to the Microsoft Outlook 11.0 Object Library, but it's giving me problems. I tracked down some stuff on the Net...
0
2761
by: lacour | last post by:
I can't seem to figure out the difference between adding a COM dll reference in VS2003 and by using TLBIMP. I have a COM dll that references another COM dll, and I want the syntax of my...
1
1984
by: Nadav | last post by:
Hi, Introduction *************** I have a system build of a collection of 'Native COM objects' and '.NET COM interop' objects, all of the COM objects are managed through a 'Native COM' layer,...
8
3397
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
7
10936
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
2
7266
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
1
2837
by: allbelonging | last post by:
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook Problem: I have my outlook 2003 configured with multiple mailbox on my local machine. I want to specify the mailbox...
0
2035
by: Tina | last post by:
I've gotten this before where it says there is a problem with Interop.MSDASC but I can't remember what causes this. This is a 1.1 app I'm trying to debug in vs2005. It was running yesterday just...
0
7245
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
7356
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,...
0
7427
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...
0
5671
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,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4741
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...
0
1577
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 ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
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...

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.