473,545 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Spell Check ASP.NET Word 2003

Hi,

I have added a spell checker to my web application using the "Microsoft Word
Document" DCOM. Everything works great in my development environment. When
I move everything over to my production machine I get...

"Object reference not set to an instance of an object"

This is caused when the following Visual Basic line is executed...

"ThisDocume nt = WordApp.Documen ts.Add()"

I have everything working in my development environment. I have tried
several iterations of this spell check code and I have had it working
perfectly 3 differents time with relatively the same failed result on the
production server. The only thing I can narrow it down to is permissions in
IIS and DCOM. My development machine is running WinXP and IIS 5.0. My
production machine is Windows 2003 Server Standard edition. I have my dev
machine accessing the DCOM under the ASPNET account and the prod machine
accessing under the NETWORK SERVICE account. I can't seem to fiure it out.
Jul 21 '05 #1
2 2807
A good possibility is that you didn't reference the PIA for accessing the
Word component. For security reasons, you must use the PIA (Primary
Interoperabilit y Assemblies) for Office if you want to distribute your
application to other machines and not an interoperabilit y assembly generated
by VS.NET (or you must compile the application directly on the target
machine if you don't want to use the PIA).

See "Referencin g the Office XP PIAs" in:
http://msdn.microsoft.com/library/de...dc_oxppias.asp
to make sure that you have the correct reference.

Be warned that using Word directly on a server is probably a bad idea.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
"Shawn" <Sh***@discussi ons.microsoft.c om> wrote in message
news:CC******** *************** ***********@mic rosoft.com...
Hi,

I have added a spell checker to my web application using the "Microsoft
Word
Document" DCOM. Everything works great in my development environment.
When
I move everything over to my production machine I get...

"Object reference not set to an instance of an object"

This is caused when the following Visual Basic line is executed...

"ThisDocume nt = WordApp.Documen ts.Add()"

I have everything working in my development environment. I have tried
several iterations of this spell check code and I have had it working
perfectly 3 differents time with relatively the same failed result on the
production server. The only thing I can narrow it down to is permissions
in
IIS and DCOM. My development machine is running WinXP and IIS 5.0. My
production machine is Windows 2003 Server Standard edition. I have my dev
machine accessing the DCOM under the ASPNET account and the prod machine
accessing under the NETWORK SERVICE account. I can't seem to fiure it
out.

Jul 21 '05 #2
Thank you for the quick reponse.

I double checked the pia's installed on the server and everything seems
fine. I even re-installed them to make sure. I am simply using Word for the
spell checking functionality. It was already running Office 2003, so I
figured, why not. I still get the same error. Word is listied in the task
manager, but I can't do anything with it. It seems as if the application can
be started, but objects on the production machine cannot be created. weird.
Thanks again Sylvain!

"Sylvain Lafontaine" wrote:
A good possibility is that you didn't reference the PIA for accessing the
Word component. For security reasons, you must use the PIA (Primary
Interoperabilit y Assemblies) for Office if you want to distribute your
application to other machines and not an interoperabilit y assembly generated
by VS.NET (or you must compile the application directly on the target
machine if you don't want to use the PIA).

See "Referencin g the Office XP PIAs" in:
http://msdn.microsoft.com/library/de...dc_oxppias.asp
to make sure that you have the correct reference.

Be warned that using Word directly on a server is probably a bad idea.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
"Shawn" <Sh***@discussi ons.microsoft.c om> wrote in message
news:CC******** *************** ***********@mic rosoft.com...
Hi,

I have added a spell checker to my web application using the "Microsoft
Word
Document" DCOM. Everything works great in my development environment.
When
I move everything over to my production machine I get...

"Object reference not set to an instance of an object"

This is caused when the following Visual Basic line is executed...

"ThisDocume nt = WordApp.Documen ts.Add()"

I have everything working in my development environment. I have tried
several iterations of this spell check code and I have had it working
perfectly 3 differents time with relatively the same failed result on the
production server. The only thing I can narrow it down to is permissions
in
IIS and DCOM. My development machine is running WinXP and IIS 5.0. My
production machine is Windows 2003 Server Standard edition. I have my dev
machine accessing the DCOM under the ASPNET account and the prod machine
accessing under the NETWORK SERVICE account. I can't seem to fiure it
out.


Jul 21 '05 #3

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

Similar topics

6
1025
by: Tony Roost | last post by:
I have created a test VB.Net form that will use MS Word to check the spelling of text in an input box The test application runs without a problem and I quit the word application at the end of the spell check. However, the application is leaving a trail of winword.exe processes running on the system PC is running W2000 SP The code and...
2
2227
by: WM Chung | last post by:
Hi all, I need to include spell check utilities into my dotnet application. Is this a ready-to-use facility in dotnet ? Or do I need to use third party tool ? I use Visual Studio 2002. Thanks in advance. W.M. Chung
8
9991
by: Steve Jorgensen | last post by:
There's this app I wrote a long time ago for a client who uses it to administer the database content that drives their Web site. Last time I was in there' I notices a lot of embarassing typos in the data, and since this data is published on their Web site which is their primary interface to their customers, that's a bad thing. I was...
2
3789
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens provide text area where the user can insert big chunks of text and submit it all to the server paragraph by paragraph. The requirement is to do a...
4
333
by: Shawn | last post by:
Hi, I have added a spell checker to my web application using the "Microsoft Word Document" DCOM. Everything works great in my development environment. When I move everything over to my production machine I get... "Object reference not set to an instance of an object" This is caused when the following Visual Basic line is executed...
8
2101
by: Joe | last post by:
Hello All: Does anyone know of a spell checker that works with .NET? Any options will be welcome. TIA, -- Joe
1
2054
by: dinoo | last post by:
I would appreciate if some one can help me out. We are using Microsoft Word's spell check functionality in one of our web pages based on the requirement. We are using Microsoft PIA assemblies to interact with Word. The problem is we can not install Word on Web Server. I woud prefer not to go to any other third party components. Would it be...
2
11966
Ganon11
by: Ganon11 | last post by:
Hey all, So this was an assignment in my Data Structures and Algorithms class - we were supposed to make a C++ implementation of the spell checker described here. A Java version was also provided, which I pretty much stole line for line (translating as necessary, of course). I got the program working...most of the time. I'll post the code...
0
3030
by: progvar | last post by:
hi i am getting probleum in converting a spell check progrma made in vb 6.0 and Ms-office Word into OpenOffice Word when i made spell check program in Ms-Word and vb 6.0 it works fine but i use the following code to make spell check program on OpenOffice and vb 6.0 it shows error "OBJECT REQUIRED" on line Set vReturn = vSpeller.SPELL(sWord,...
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5984
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
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 we have to send another system
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.