Word Automation and ASP.Net Standard.
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-msoffice' list.


Dody Gunawinata
Hi,

I am trying to utilize some feature of Microsoft Word through automation
from a web interface (in this case, generating Word document from an
input).

My question is regarding granting Code Access for the Word interop dll
access from ASP.Net.

I get an Access Denied error when I try to instantiate the component
from an ASP.Net page.

Word._Application word = new Word.Application();

Can anyone point me out some way out of this problem?

Dody Gunawinata
Lead Software Architect
AIESEC United States | http://www.aiesecus.org
Are You Experienced? | http://us.aieseconline.net
Phone: +1 (212) 757 3774 ext 230
Fax: +1 (212) 757 4062
Personal Weblog | http://dodyg.org
<http://us.aieseconline.net>
Reply to this message...
 
    
Scott Hutchinson
Try this. Start...Run...DCOMCNFG.EXE (Since you're launching Word, which is
a COM component, .NET Interop uses DCOM).

In DCOMCNFG, find the application named 'Microsoft Word document'. (If you
have Windows XP, I think you will find it in Console
Root...Component Services...Computers...My Computer...DCOM Config.
Otherwise, look on the "Application" tab.)

On the properties window for 'Microsoft Word document', select the Security
tab and add the ASPNET user to the Launch and Access permissions list.

If you are not familiar with DCOMCNFG, please read the following article.

Q268550 HOWTO: Use DCOMCNFG for a VB DCOM Client/Server Application,
http://support.microsoft.com/support/kb/articles/q268/5/50.asp

Scott Hutchinson
Click here to reveal e-mail address
(to contact me, remove all dots left of @)

"Dody Gunawinata" <Click here to reveal e-mail address> wrote in message
news:664016@ngfx-msoffice...
[Original message clipped]

Reply to this message...
 
    
Dody Gunawinata
Sweet! Thank you Scott! It works brilliantly now.

Dody Gunawinata
Are You Experienced? | http://us.aieseconline.net
Personal Weblog | http://dodyg.org
=20
-----Original Message-----
From: Scott Hutchinson [mailto:Click here to reveal e-mail address]=20
Sent: Monday, June 03, 2002 12:52 PM
To: ngfx-msoffice
Subject: [ngfx-msoffice] Re: Word Automation and ASP.Net Standard.

Try this. Start...Run...DCOMCNFG.EXE (Since you're launching Word, which
is
a COM component, .NET Interop uses DCOM).

In DCOMCNFG, find the application named 'Microsoft Word document'. (If
you
have Windows XP, I think you will find it in Console
Root...Component Services...Computers...My Computer...DCOM Config.
Otherwise, look on the "Application" tab.)

On the properties window for 'Microsoft Word document', select the
Security
tab and add the ASPNET user to the Launch and Access permissions list.

If you are not familiar with DCOMCNFG, please read the following
article.

Q268550 HOWTO: Use DCOMCNFG for a VB DCOM Client/Server Application,
http://support.microsoft.com/support/kb/articles/q268/5/50.asp

Scott Hutchinson
Click here to reveal e-mail address
(to contact me, remove all dots left of @)

"Dody Gunawinata" <Click here to reveal e-mail address> wrote in message
news:664016@ngfx-msoffice...
[Original message clipped]

n
t=3D
[Original message clipped]

n
[Original message clipped]

| http://www.aspfriends.com/aspfriends/ngfx-msoffice.asp =3D JOIN/QUIT
</BODY>
[Original message clipped]

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com