|
 |
aspx thread: Word Application in VB.Net-Access Denied
Message #1 by "nagesh" <nageswara.rao@t...> on Tue, 14 May 2002 19:31:12 +0530
|
|
Hi All,
I am trying to create a word application using ASP.Net. It is giving the
'Access is Denied' Error when i try to debug the application, it is giving
the error with the following line. But this is working perfectly fine in the
Windows application.
abcapp = New Word.Application()
The error is
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access is denied.
The ASP.NET process is not authorized to access the requested resource. For
security reasons the default ASP.NET process identity is
'{machinename}\ASPNET', which has limited privileges. Consider granting
access rights to the resource to the ASP.NET process identity.
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
"{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
Write box in the Allow column.
I gave the permissions to the entire directory for the ASPNET user. Still
the problem persists
looking forward for ur valuable suggestions.
Thanks in Advance,
Nagesh
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 14 May 2002 10:07:00 -0400
|
|
Nagesh,
Try finding the user name entry (or whatever it is) in
Machine.Config (find files, under \winnt). It should be something like
"MACHINE" or "LOCAL" or something like that. Change it to "SYSTEM", reboot,
and let us all know if it works.
Please note: granting the aspnet_wp.exe SYSTEM priviledges is a
potential security problem. Once you've determined if it works or not, fine
tune your NTFS permissions so aspnet_wp.exe (and associated processes) can
launch office applications and read/write to your source/destination
directories, and revert from the SYSTEM user.
HTH,
- Chuck
-----Original Message-----
From: nagesh [mailto:nageswara.rao@t...]
Sent: Tuesday, May 14, 2002 10:01 AM
To: ASP+
Subject: [aspx] Word Application in VB.Net-Access Denied
Hi All,
I am trying to create a word application using ASP.Net. It is giving the
'Access is Denied' Error when i try to debug the application, it is giving
the error with the following line. But this is working perfectly fine in the
Windows application.
abcapp = New Word.Application()
The error is
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access is denied.
The ASP.NET process is not authorized to access the requested resource. For
security reasons the default ASP.NET process identity is
'{machinename}\ASPNET', which has limited privileges. Consider granting
access rights to the resource to the ASP.NET process identity.
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
"{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
Write box in the Allow column.
I gave the permissions to the entire directory for the ASPNET user. Still
the problem persists
looking forward for ur valuable suggestions.
Thanks in Advance,
Nagesh
Message #3 by Neeta.Ambekar@l... on Tue, 14 May 2002 19:36:57 +0530
|
|
One thing which you try is that from System directory run DCOMCNFG.exe
then for word document add ASPNET user from property box .
Let me know if it works.
Message #4 by "nagesh" <nageswara.rao@t...> on Tue, 14 May 2002 20:42:44 +0530
|
|
hi Chuck
Thank you, It is working with your solution. I changed the
username="machine" (in the machine.config file) to SYSTEM and restarted the
machine. Not it is working.
Thanks to you all.
Best regards
Nagesh
----- Original Message -----
From: "Feduke Cntr Charles R" <FedukeCR@m...>
To: "ASP+" <aspx@p...>
Sent: Tuesday, May 14, 2002 7:37 PM
Subject: [aspx] RE: Word Application in VB.Net-Access Denied
> Nagesh,
>
> Try finding the user name entry (or whatever it is) in
> Machine.Config (find files, under \winnt). It should be something like
> "MACHINE" or "LOCAL" or something like that. Change it to "SYSTEM",
reboot,
> and let us all know if it works.
>
> Please note: granting the aspnet_wp.exe SYSTEM priviledges is a
> potential security problem. Once you've determined if it works or not,
fine
> tune your NTFS permissions so aspnet_wp.exe (and associated processes) can
> launch office applications and read/write to your source/destination
> directories, and revert from the SYSTEM user.
>
> HTH,
> - Chuck
>
> -----Original Message-----
> From: nagesh [mailto:nageswara.rao@t...]
> Sent: Tuesday, May 14, 2002 10:01 AM
> To: ASP+
> Subject: [aspx] Word Application in VB.Net-Access Denied
>
>
> Hi All,
> I am trying to create a word application using ASP.Net. It is giving
the
> 'Access is Denied' Error when i try to debug the application, it is giving
> the error with the following line. But this is working perfectly fine in
the
> Windows application.
> abcapp = New Word.Application()
> The error is
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.UnauthorizedAccessException: Access is denied.
>
> The ASP.NET process is not authorized to access the requested resource.
For
> security reasons the default ASP.NET process identity is
> '{machinename}\ASPNET', which has limited privileges. Consider granting
> access rights to the resource to the ASP.NET process identity.
>
> 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
> "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
> Write box in the Allow column.
>
> I gave the permissions to the entire directory for the ASPNET user. Still
> the problem persists
> looking forward for ur valuable suggestions.
>
> Thanks in Advance,
> Nagesh
>
>
>
>
>
Message #5 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 14 May 2002 11:19:13 -0400
|
|
Guys,
> Thank you, It is working with your solution. I changed the
> username="machine" (in the machine.config file) to SYSTEM and restarted
the
> machine.
What gets me is, what is the difference between "MACHINE" and
"SYSTEM"? Every time I answer a question like this, I feel like I'm telling
the person to replace all the occurances of the letter "e" in a document
with the letter "e". Isn't the machine the system, and vice versa?
- Chuck
-----Original Message-----
From: nagesh [mailto:nageswara.rao@t...]
Sent: Tuesday, May 14, 2002 11:13 AM
To: ASP+
Subject: [aspx] RE: Word Application in VB.Net-Access Denied
hi Chuck
Thank you, It is working with your solution. I changed the
username="machine" (in the machine.config file) to SYSTEM and restarted the
machine. Not it is working.
Thanks to you all.
Best regards
Nagesh
----- Original Message -----
From: "Feduke Cntr Charles R" <FedukeCR@m...>
To: "ASP+" <aspx@p...>
Sent: Tuesday, May 14, 2002 7:37 PM
Subject: [aspx] RE: Word Application in VB.Net-Access Denied
> Nagesh,
>
> Try finding the user name entry (or whatever it is) in
> Machine.Config (find files, under \winnt). It should be something like
> "MACHINE" or "LOCAL" or something like that. Change it to "SYSTEM",
reboot,
> and let us all know if it works.
>
> Please note: granting the aspnet_wp.exe SYSTEM priviledges is a
> potential security problem. Once you've determined if it works or not,
fine
> tune your NTFS permissions so aspnet_wp.exe (and associated processes) can
> launch office applications and read/write to your source/destination
> directories, and revert from the SYSTEM user.
>
> HTH,
> - Chuck
>
> -----Original Message-----
> From: nagesh [mailto:nageswara.rao@t...]
> Sent: Tuesday, May 14, 2002 10:01 AM
> To: ASP+
> Subject: [aspx] Word Application in VB.Net-Access Denied
>
>
> Hi All,
> I am trying to create a word application using ASP.Net. It is giving
the
> 'Access is Denied' Error when i try to debug the application, it is giving
> the error with the following line. But this is working perfectly fine in
the
> Windows application.
> abcapp = New Word.Application()
> The error is
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.UnauthorizedAccessException: Access is denied.
>
> The ASP.NET process is not authorized to access the requested resource.
For
> security reasons the default ASP.NET process identity is
> '{machinename}\ASPNET', which has limited privileges. Consider granting
> access rights to the resource to the ASP.NET process identity.
>
> 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
> "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
> Write box in the Allow column.
>
> I gave the permissions to the entire directory for the ASPNET user. Still
> the problem persists
> looking forward for ur valuable suggestions.
>
> Thanks in Advance,
> Nagesh
>
>
>
>
>
|
|
 |