Ask a Question related to ASP.NET Security, Design and Development.
-
ghostnguyen #1
I can't start the Word object
Hi all,
In my aspx page, I initial the Word object like this:
- Microsoft.Office.Interop.Word.ApplicationClass app = new
ApplicationClass();
but the IIS response "Access is denied".
I appreciate any response.
ghostnguyen Guest
-
Error creating Word.Application object in ASP.NET
I have created a very simple ASP.NET page for testing purposes. I am trying to create a Word.Application object, populate a document with some text... -
CF MX6.1 will not auto start after server reboot.. but will start by hand...
I just moved all the stuff to a new dual Xeon Windows server 2003. Problem with CF MX 6.1 is that it will not start after a server reboot! I get... -
Editing Word documents in Perl (Openoffice Writer or MS Word)
Hello, I want to read and edit openoffice / staroffice writer documents. Does anyone know of any modules for that? Ideally, I would've liked a... -
how do i indent the start of a new paragraph on pasted test from word
I worked it out hold ctrl shift together then press space no need to reply thanks! -
in object, declare array values at start or in constructor?
Zurab Davitiani <agt@mindless.com> wrote in message news:<2e9Ka.1807 Whoa!!! Thanks for that. I did follow the link and read what it says. I have... -
Gabriel Lozano-Morán #2
Re: I can't start the Word object
That's because the IIS account does not have permissions to launch the Word
application.
On the server running IIS:
1. Start -> Run dcomcnfg.exe
2. Expand Component Services
3. Expand Computers
4. Expand My Computer
5. Expand DCOM config
6. Select Microsoft Word Document
7. Right-click and select properties
8. Click on the security tab
9. Under Launch and Activation permissions select Customize and click on
Edit
10. Add the following users ASPNET, IUSR_<machinename>, IWAM_<machinename>
and NETWORK SERVICE if IIS running on Win2K3
Gabriel Lozano-Morán
Software Engineer
Sogeti
Gabriel Lozano-Morán Guest
-
ghostnguyen #3
Re: I can't start the Word object
Thanks for your intruction.
I can initial WordApp object but I can't initial WordFile object. This's my
code:
Microsoft.Office.Interop.Word.ApplicationClass app = new ApplicationClass();
// Ok
Microsoft.Office.Interop.Word.Document doc = new DocumentClass(); //Fail
Exception Details: System.Runtime.InteropServices.COMException: Server
execution failed.
In addition, is it a good idea if I apply Word automation in Webpage?
"Gabriel Lozano-Morán" <gabriel.lozano@no-spam.com> wrote in message
news:eReLL2USFHA.3972@TK2MSFTNGP14.phx.gbl...> That's because the IIS account does not have permissions to launch the
> Word application.
>
> On the server running IIS:
>
> 1. Start -> Run dcomcnfg.exe
> 2. Expand Component Services
> 3. Expand Computers
> 4. Expand My Computer
> 5. Expand DCOM config
> 6. Select Microsoft Word Document
> 7. Right-click and select properties
> 8. Click on the security tab
> 9. Under Launch and Activation permissions select Customize and click on
> Edit
> 10. Add the following users ASPNET, IUSR_<machinename>, IWAM_<machinename>
> and NETWORK SERVICE if IIS running on Win2K3
>
> Gabriel Lozano-Morán
> Software Engineer
> Sogeti
>
ghostnguyen Guest
-
LOZANO-MORÁN, Gabriel #4
Re: I can't start the Word object
> Microsoft.Office.Interop.Word.Document doc = new DocumentClass(); //Fail
You need to perform the same steps as for the Microsoft Word Application but>
> Exception Details: System.Runtime.InteropServices.COMException: Server
> execution failed.
now for the Microsoft Word Document
That depends on the project you are working on and on what you are trying to> In addition, is it a good idea if I apply Word automation in Webpage?
>
establish. But I would consider putting these things in a seperate .NET
assembly. Doing so you don't need to give the IIS user accounts permissions
for Word application and you make your application more scalable.
Gabriel Lozano-Morán
LOZANO-MORÁN, Gabriel Guest
-
ghostnguyen #5
Re: I can't start the Word object
Hi
In DCOM Config, I see only the "Microsoft Word Document". There is no
"Microsoft Word Application".
My machine installed Office 2003.
As I understand your idea, I think if I create an assembly A that operates>> But I would consider putting these things in a seperate .NET assembly
with Office and my WebApp calls A. A still runs under "NET SERVICE" account
and gives the same problem.
Ghost Nguyen
"LOZANO-MORÁN, Gabriel" <gabriel.lozano@no-spam.com> wrote in message
news:unAJD2WSFHA.2348@TK2MSFTNGP09.phx.gbl...>>> Microsoft.Office.Interop.Word.Document doc = new DocumentClass(); //Fail
>>
>> Exception Details: System.Runtime.InteropServices.COMException: Server
>> execution failed.
> You need to perform the same steps as for the Microsoft Word Application
> but
> now for the Microsoft Word Document
>>>> In addition, is it a good idea if I apply Word automation in Webpage?
>>
> That depends on the project you are working on and on what you are trying
> to
> establish. But I would consider putting these things in a seperate .NET
> assembly. Doing so you don't need to give the IIS user accounts
> permissions
> for Word application and you make your application more scalable.
>
> Gabriel Lozano-Morán
>
>
ghostnguyen Guest
-
Gabriel Lozano-Morán #6
Re: I can't start the Word object
You could use impersonation in the seperate assembly
Gabriel Lozano-Morán
"ghostnguyen" <ghostnguyen@yahoo.com> wrote in message
news:es$ErEtSFHA.3140@TK2MSFTNGP14.phx.gbl...> Hi
>
> In DCOM Config, I see only the "Microsoft Word Document". There is no
> "Microsoft Word Application".
> My machine installed Office 2003.
>>>>> But I would consider putting these things in a seperate .NET assembly
> As I understand your idea, I think if I create an assembly A that operates
> with Office and my WebApp calls A. A still runs under "NET SERVICE"
> account and gives the same problem.
>
> Ghost Nguyen
>
>
> "LOZANO-MORÁN, Gabriel" <gabriel.lozano@no-spam.com> wrote in message
> news:unAJD2WSFHA.2348@TK2MSFTNGP09.phx.gbl...>>>>>> Microsoft.Office.Interop.Word.Document doc = new DocumentClass(); //Fail
>>>
>>> Exception Details: System.Runtime.InteropServices.COMException: Server
>>> execution failed.
>> You need to perform the same steps as for the Microsoft Word Application
>> but
>> now for the Microsoft Word Document
>>>>>>> In addition, is it a good idea if I apply Word automation in Webpage?
>>>
>> That depends on the project you are working on and on what you are trying
>> to
>> establish. But I would consider putting these things in a seperate .NET
>> assembly. Doing so you don't need to give the IIS user accounts
>> permissions
>> for Word application and you make your application more scalable.
>>
>> Gabriel Lozano-Morán
>>
>>
>
Gabriel Lozano-Morán Guest



Reply With Quote

