Connecting Tech Pros Worldwide Forums | Help | Site Map

CreateObject("Word.Application") Problems

Greg Andora
Guest
 
Posts: n/a
#1: Jul 19 '05
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



John Blessing
Guest
 
Posts: n/a
#2: Jul 19 '05

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


Bob Barrows
Guest
 
Posts: n/a
#3: Jul 19 '05

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"


Bob Barrows
Guest
 
Posts: n/a
#4: Jul 19 '05

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"


Closed Thread


Similar ASP / Active Server Pages bytes