473,387 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Access is denied - Win2003, IIS6, VB.NET, WORD COM object

Help please! I have the same problem which this post

http://groups.google.com/group/micro...4638c6d6ba3872

When I deploy our ASP.NET Application web form to Windows server 2003
I got access deny error. We are using the
Microsoft.Office.Interop.Word COM DLL. We need to read a template word
document in the server and open word then insert data from user typed

On click of a button the the word application com dll is getting
activated,
but when we do this on a Windows Server 2003 machine we are getting
the
following error.

Exception Details: System.UnauthorizedAccessException: Access is
denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in
Explorer,
choose "Properties" and select the Security tab. Click "Add" to add
the
appropriate user or group. Highlight the ASP.NET account, and check
the boxes
for the desired access.

The error in the system event log: Access denied attempting to launch
a DCOM Server. The server is:
{000C101C-0000-0000-C000-000000000046}
The user is NETWORK SERVICE/NT AUTHORITY, SID=S-1-5-20.
I have checked in regedit, this is word application

The defaultAppPool identity (IIS manager) is Network Service.

I have grant access from DCOMCNFG to DCOM Config
The COM DLL Microsoft.Word.Document has been given allow access
permission to these user account:
ASPNET(FULL control), Network service(FULL control), IIS_WPG, IWAM,
SYSTEM, everyone, administrators.

I also grant the same access and permissions to the folder where the
template located and C:\Program Files\Microsoft Office\Office10
(Network service and ASPNET has full control permission.

But I still got the same access deny error. Please help ASAP!!! Thank
you all,

Mar 27 '07 #1
6 5531
re:
The server is: {000C101C-0000-0000-C000-000000000046}
That is the MSI Server ( Windows Installer ).

You are probably being hit by the Office Installer running
when you attempt to run the Word COM dll through Interop.

Do the Office 10 programs you have installed, Word particularly, run OK ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"royan" <ro********@yahoo.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
Help please! I have the same problem which this post

http://groups.google.com/group/micro...4638c6d6ba3872

When I deploy our ASP.NET Application web form to Windows server 2003
I got access deny error. We are using the
Microsoft.Office.Interop.Word COM DLL. We need to read a template word
document in the server and open word then insert data from user typed

On click of a button the the word application com dll is getting
activated,
but when we do this on a Windows Server 2003 machine we are getting
the
following error.

Exception Details: System.UnauthorizedAccessException: Access is
denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in
Explorer,
choose "Properties" and select the Security tab. Click "Add" to add
the
appropriate user or group. Highlight the ASP.NET account, and check
the boxes
for the desired access.

The error in the system event log: Access denied attempting to launch
a DCOM Server. The server is:
{000C101C-0000-0000-C000-000000000046}
The user is NETWORK SERVICE/NT AUTHORITY, SID=S-1-5-20.
I have checked in regedit, this is word application

The defaultAppPool identity (IIS manager) is Network Service.

I have grant access from DCOMCNFG to DCOM Config
The COM DLL Microsoft.Word.Document has been given allow access
permission to these user account:
ASPNET(FULL control), Network service(FULL control), IIS_WPG, IWAM,
SYSTEM, everyone, administrators.

I also grant the same access and permissions to the folder where the
template located and C:\Program Files\Microsoft Office\Office10
(Network service and ASPNET has full control permission.

But I still got the same access deny error. Please help ASAP!!! Thank
you all,

Mar 27 '07 #2
I went to event log. Actually the server is Word application. Sorry
for the confusion.

If I added <identity impersonate="true" /to web.config, I can access
word without error, but normal users still can not access and get this
error:

Here is:

Access denied attempting to launch a DCOM Server. The server is:
{000C101C-0000-0000-C000-000000000046}
The user is NETWORK SERVICE/NT AUTHORITY, SID=S-1-5-20.

Please help!! Thank you for your reply.

Royan

Apr 2 '07 #3
I went to event log. Actually the server isWord application. Sorry for
the confusion.
Here is the application in system log
{000209FF-0000-0000-C000-000000000046}

I did install Word 10 and it looks OK with me. I don't have any
troubles to open Word or something else.

Apr 2 '07 #4
"royan" <ro********@yahoo.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
>I went to event log. Actually the server is Word application. Sorry
for the confusion.

If I added <identity impersonate="true" /to web.config, I can access
word without error, but normal users still can not access and get this
error:

Here is:

Access denied attempting to launch a DCOM Server. The server is:
{000C101C-0000-0000-C000-000000000046}
The user is NETWORK SERVICE/NT AUTHORITY, SID=S-1-5-20.
The problem here is that Microsoft Office is simply not designed to work
this way i.e. through server-side automation - the error you're currently
experiencing is merely one of many issues that you're likely to encounter if
you try to do this. Microsoft strongly advises against it to the extent that
they won't actually support any solution which uses it:
http://support.microsoft.com/default...US;q257757#kb2

This will solve all your problems:
http://www.aspose.com/Products/Aspos...s/Default.aspx
Apr 2 '07 #5
We don't have problem with Win2000. I need a quick simple solution for
Win2003.

Access denied attempting to launch a DCOM Server. The server is:
{000209FF-0000-0000-C000-000000000046}

If I took off this line off <identity impersonate="true" /from
web.config, I will get this error:
Access denied attempting to launch a DCOM Server. The server is:
{000C101C-0000-0000-C000-000000000046}
The user is NETWORK SERVICE/NT AUTHORITY, SID=S-1-5-20.

Thank you,
Royan
Apr 2 '07 #6
"royan" <ro********@yahoo.comwrote in message
news:11*********************@p15g2000hsd.googlegro ups.com...
We don't have problem with Win2000.
In which case, you're very, very lucky...
http://support.microsoft.com/default...US;q257757#kb2
I need a quick simple solution for Win2003.
http://www.aspose.com/Products/Aspos...s/Default.aspx
Apr 2 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jonas | last post by:
Hi! I've got some ASP-code that uses FileSystemObject to move user home directories on a DFS-root. When I run this code on the original Win2000/IIS5-server, it works fine. But when I try it on a...
2
by: Bill Nguyen | last post by:
I got this error emssage trying to run an ASP.NET application on my Win2003/IIS6.0 server: Exception Details: System.UnauthorizedAccessException: Access to the path...
3
by: buran | last post by:
Dear ASP.NET Programmers, I am trying to save a new created Word document, but getting the following the error. I granted the necessary rights to the ASPNET user, but I'm still getting this...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
1
by: Jody Gelowitz | last post by:
We are having an issue in that when trying to read a file that is on Server2 from Server1 (through our ASP.NET project), we receive the error: Access to the path "\\Server2\MyShare\MyFile.tif" is...
1
by: vamshika | last post by:
hi, I got a serious Problem. I get "Server does not exist or access denied" with 80004005 as the error code. the win2003 server uses all the latest components(like iis6,jet..etc) and is upto date....
1
by: cpajoe2001 | last post by:
I am having an issue and after searching around online for a day and half now and finding others with the same problem but yet no solution to my issue I am looking for help. What i have is ServerA...
0
by: royan | last post by:
Help please! I have the same problem which this post ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.