Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / January 2006

Tip: Looking for answers? Try searching our database.

Word automation in asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sher - 13 Dec 2005 19:50 GMT
Hello,

I have an asp.net applicaition which opens an uploaded word document, then
parses the document to extract some values. The upload process works but the
code is dying on the following line:

private Word.Application wordApp = new Word.Application();

I am using digest authentication in IIS 6 and this is running on windows
2003. Can someone tell me what I need to do to get this to work?
Dominick Baier [DevelopMentor] - 15 Dec 2005 17:27 GMT
Hello Sher,

the account running the web app (network service by default) needs access
to the Word COM object - use dcomcnfg.msc

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hello,
>
[quoted text clipped - 7 lines]
> windows 2003. Can someone tell me what I need to do to get this to
> work?
Sher - 16 Dec 2005 16:38 GMT
Hi Dominick,

Thank you for your assistance. That worked. However, I now have another
problem. I am getting the following error below. I think it has to do with
permissioning on the word temp directory. How do I find out what temp
directory is being used so I can give the user the proper permission?

*****************error message******************************
"System.Runtime.InteropServices.COMException (0x800A149D): Word could not
create the work file. Check the temp environment variable. at
Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object&
ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object&
PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object&
WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible,
Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog,
Object& XMLTransform) at getPPRRatings.getRatings() in
m:\upload\getpprratings.aspx.cs:line 61"

> Hello Sher,
>
[quoted text clipped - 16 lines]
> > windows 2003. Can someone tell me what I need to do to get this to
> > work?
Dominick Baier [DevelopMentor] - 16 Dec 2005 16:47 GMT
Hello Sher,

that's usually c:\windows\temp

grab a tool like filemon from www.sysinternals.com to be sure...

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi Dominick,
>
[quoted text clipped - 34 lines]
>>> windows 2003. Can someone tell me what I need to do to get this to
>>> work?
Sher - 20 Dec 2005 19:15 GMT
Dominick,
Thank you for your assistance. I did manage to get further, but now I am
getting the following error message. I woul appreciate any assistance you
could give. thanks, sher.

*******************error message**************************
System.Runtime.InteropServices.COMException (0x800A175D): Could not open
macro storage. at Word.Documents.Open(Object& FileName, Object&
ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object&
PasswordDocument, Object& PasswordTemplate, Object& Revert, Object&
WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object&
Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection,
Object& NoEncodingDialog, Object& XMLTransform) at getPPRRatings.getRatings()
in m:\upload\getpprratings.aspx.cs:line 61strxml =


> Hello Sher,
>
[quoted text clipped - 44 lines]
> >>> windows 2003. Can someone tell me what I need to do to get this to
> >>> work?
alex_f_il@hotmail.com - 21 Dec 2005 16:58 GMT
The Word application requires User Profile to be loaded.

The ASPNET account doesn't have any user profile...
Sher - 23 Dec 2005 17:35 GMT
Hi,

I am using Digest Authentication in IIS. As far as I know, this will use the
user's netowrk ID instead of the asp.net account. Am I missing something? How
can I fix this issue?

thanks,
Sher.

> The Word application requires User Profile to be loaded.
>
> The ASPNET account doesn't have any user profile...
Sher - 03 Jan 2006 15:54 GMT
Does anyone have an idea of where I could find c# syntax that allows me to
open and manipulate a word document using late binding?

> Hi,
>
[quoted text clipped - 8 lines]
> >
> > The ASPNET account doesn't have any user profile...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.