473,513 Members | 2,669 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...

"ThisDocument = WordApp.Documents.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 2805
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
Interoperability Assemblies) for Office if you want to distribute your
application to other machines and not an interoperability 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 "Referencing 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***@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.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...

"ThisDocument = WordApp.Documents.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
Interoperability Assemblies) for Office if you want to distribute your
application to other machines and not an interoperability 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 "Referencing 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***@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.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...

"ThisDocument = WordApp.Documents.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...
2
2220
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...
8
9980
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...
2
3785
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...
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...
8
2096
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
2052
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...
2
11965
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...
0
3026
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...
0
7257
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
7157
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...
0
7379
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,...
1
5084
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
4745
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
3232
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...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
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 ...
0
455
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.