Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:38 AM
Greg Andora
Guest
 
Posts: n/a
Default CreateObject("Word.Application") Problems

Hello,

I've had an ASP page that worked for at the minimum for a year and now it is acting very odd and I need some help to fix it. What my page does/did is creates a Word.Application object and a new document from a template. It then proceeds to fill in a bunch of the information on the word document using bookmarks and data from a database. Then it saves the document to a directory and sends the user off to go get the new document.

What is extremely odd about this is that on my two machines it is working fine, but on my firm's managed desktops, they get a error when word tries to create the application object. I don't quite understand how permissions in IE would come into play here since ASP code is run on the server right? Isn't the Word.Application object being created on my server and not the clients?

Does anybody have any suggestions on this?

Thanks a ton (in advanced),
Greg Andora


  #2  
Old July 19th, 2005, 11:38 AM
John Blessing
Guest
 
Posts: n/a
Default Re: CreateObject("Word.Application") Problems

"Greg Andora" <anonymous@discussions.microsoft.com> wrote in message
news:8B0D12B0-CA21-4D69-88BC-9D35E6BEEA82@microsoft.com...[color=blue]
> Hello,
>
> I've had an ASP page that worked for at the minimum for a year and now it[/color]
is acting very odd and I need some help to fix it. What my page does/did is
creates a Word.Application object and a new document from a template. It
then proceeds to fill in a bunch of the information on the word document
using bookmarks and data from a database. Then it saves the document to a
directory and sends the user off to go get the new document.[color=blue]
>
> What is extremely odd about this is that on my two machines it is working[/color]
fine, but on my firm's managed desktops, they get a error when word tries to
create the application object. I don't quite understand how permissions in
IE would come into play here since ASP code is run on the server right?
Isn't the Word.Application object being created on my server and not the
clients?[color=blue]
>
> Does anybody have any suggestions on this?
>
> Thanks a ton (in advanced),
> Greg Andora
>[/color]

Yes, it is being created on the server, but, (assuming you are using
anonymous authentication), it is being created by the IUSR_machinename user,
who will need execute privileges on MSWord and write privileges in the
folder you create the document.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook


  #3  
Old July 19th, 2005, 11:38 AM
Bob Barrows
Guest
 
Posts: n/a
Default Re: CreateObject("Word.Application") Problems

John Blessing wrote:[color=blue]
> "Greg Andora" <anonymous@discussions.microsoft.com> wrote in message
> news:8B0D12B0-CA21-4D69-88BC-9D35E6BEEA82@microsoft.com...[color=green]
>> Hello,
>>
>> I've had an ASP page that worked for at the minimum for a year and
>> now it[/color]
> is acting very odd and I need some help to fix it. What my page
> does/did is creates a Word.Application object and a new document from
> a template. It then proceeds to fill in a bunch of the information
> on the word document using bookmarks and data from a database. Then
> it saves the document to a directory and sends the user off to go get
> the new document.[color=green]
>>
>> What is extremely odd about this is that on my two machines it is
>> working[/color]
> fine, but on my firm's managed desktops, they get a error when word
> tries to create the application object. I don't quite understand how
> permissions in IE would come into play here since ASP code is run on
> the server right? Isn't the Word.Application object being created on
> my server and not the clients?[color=green]
>>
>> Does anybody have any suggestions on this?
>>
>> Thanks a ton (in advanced),
>> Greg Andora
>>[/color]
>
> Yes, it is being created on the server, but, (assuming you are using
> anonymous authentication), it is being created by the
> IUSR_machinename user, who will need execute privileges on MSWord and
> write privileges in the folder you create the document.[/color]

More information can be found here:
http://support.microsoft.com/default...b;en-us;257757

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #4  
Old July 19th, 2005, 11:38 AM
Bob Barrows
Guest
 
Posts: n/a
Default Re: CreateObject("Word.Application") Problems

John Blessing wrote:[color=blue]
> "Greg Andora" <anonymous@discussions.microsoft.com> wrote in message
> news:8B0D12B0-CA21-4D69-88BC-9D35E6BEEA82@microsoft.com...[color=green]
>> Hello,
>>
>> I've had an ASP page that worked for at the minimum for a year and
>> now it[/color]
> is acting very odd and I need some help to fix it. What my page
> does/did is creates a Word.Application object and a new document from
> a template. It then proceeds to fill in a bunch of the information
> on the word document using bookmarks and data from a database. Then
> it saves the document to a directory and sends the user off to go get
> the new document.[color=green]
>>
>> What is extremely odd about this is that on my two machines it is
>> working[/color]
> fine, but on my firm's managed desktops, they get a error when word
> tries to create the application object. I don't quite understand how
> permissions in IE would come into play here since ASP code is run on
> the server right? Isn't the Word.Application object being created on
> my server and not the clients?[color=green]
>>
>> Does anybody have any suggestions on this?
>>
>> Thanks a ton (in advanced),
>> Greg Andora
>>[/color]
>
> Yes, it is being created on the server, but, (assuming you are using
> anonymous authentication), it is being created by the
> IUSR_machinename user, who will need execute privileges on MSWord and
> write privileges in the folder you create the document.[/color]



--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles