.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification