PC Review


Reply
Thread Tools Rate Thread

Automation urgent pls

 
 
=?Utf-8?B?QmFkaXM=?=
Guest
Posts: n/a
 
      30th Apr 2007
I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM class factory for component with
CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80070005". so I configured the server using dcomcnfg as described in this
link:
http://support.microsoft.com/kb/288368/
and know this error now is gone but I'm having this error:"Object reference
not set to an instance of an object." when it comes to the last line of this
code:
Object oName = "C:\\improvement.doc";
Word.Application wrdApp;
Word._Document wrdDoc;
wrdApp = new Word.Application();
wrdDoc = wrdApp.Documents.Add(ref oName, ref oFalse,
ref oMissing, ref oMissing);
wrdDoc.Select();

So, Why it's telling me that wrdDoc.Select(); "is not set to an instance of
an object." when it's accessed from a remote machine but not when running it
locally in debug mode!!?


 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      30th Apr 2007
"Badis" <(E-Mail Removed)> wrote in message
news:66B6AE98-902A-4E5C-BD8A-(E-Mail Removed)...
> I'm doing a server side automation(I know it's bad but..)


OK, let me get this straight - you are doing something which you already
know to be patently stupid, and now you are wondering why it doesn't
work...?

> So, Why it's telling me that wrdDoc.Select(); "is not set to an instance
> of
> an object." when it's accessed from a remote machine but not when running
> it
> locally in debug mode!!?


Sigh - because when you're running it all locally on the same machine, it's
not doing server-side automation - don't you get it...???

--
http://www.markrae.net

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation urgent help =?Utf-8?B?QmFkaXM=?= Microsoft ASP .NET 3 1st May 2007 09:24 AM
URGENT! Office 12 Automation. smotrov@alexey Microsoft Dot NET Framework 0 13th Dec 2005 04:11 PM
Automation Error ... Urgent help needed Alexander.Kom Microsoft Excel Programming 0 14th Jul 2005 10:58 AM
Email Automation using dotnet (URGENT!!!) Siddhartha Jain Microsoft Dot NET 1 16th Jun 2004 10:58 PM
Urgent. Excel automation error =?Utf-8?B?QmFzaWw=?= Microsoft Access VBA Modules 27 11th Feb 2004 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:46 PM.