Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Error Accessing Com Objects or Interop Objects


Message #1 by Rahul Chugh <RChugh@s...> on Fri, 26 Apr 2002 11:06:53 -0400
Hi 

i am trying to access the word document from my asp.net 
and it gives me error saying access denied.

The exact Message was  : 


	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 have tried all the diagnostic steps like giving permission to the InterOpp Dll 's as well as to the WinWord.Exe.


And the same error repeats. I have also searched the newsgroup and did the same as above.
But still the error repeats. Does anybody knows hot to get around this problem.

An early reply would be highly appreciated.

Rahul



**********************************************************************
This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the
intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended
recipient or his or her employees or agents is strictly prohibited.  If you have received this communication in error, please
immediately notify us and delete the original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company. 
SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to
continue to receive quality regulated service from the utilities.
**********************************************************************

Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Fri, 26 Apr 2002 08:50:43 -0700
Rahul,

	How do you try to access the word document? It seems that ASPNET
does not have access to the actual file and not the Word COM object. So
you want to right-click on the winwordfile.doc that you are trying to
access or just give access rights to the entire directory.
	If you think it's a COM access problem, you want to run
"dcomcnfg" from your Start/Run command line and click on the Word COM's
property and see what the security permissions are.
	At last, you can just give ASPNET more administrative control,
by going to your machine.config file in the
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\CONFIG directory and change
the processModel's username attribute to "SYSTEM" which has much more
privilege.

Minh.

-----Original Message-----
From: Rahul Chugh [mailto:RChugh@s...] 
Sent: Friday, April 26, 2002 8:07 AM
To: ASP+
Subject: [aspx] Error Accessing Com Objects or Interop Objects


Hi 

i am trying to access the word document from my asp.net 
and it gives me error saying access denied.

The exact Message was  : 


	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 have tried all the diagnostic steps like giving permission to the
InterOpp Dll 's as well as to the WinWord.Exe.


And the same error repeats. I have also searched the newsgroup and did
the same as above.
But still the error repeats. Does anybody knows hot to get around this
problem.

An early reply would be highly appreciated.

Rahul



**********************************************************************
This e-mail contains privileged attorney-client communications and/or
confidential information, and is only for the use by the intended
recipient. Receipt by an unintended recipient does not constitute a
waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying
of this information by anyone other than the intended recipient or his
or her employees or agents is strictly prohibited.  If you have received
this communication in error, please immediately notify us and delete the
original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or
SoCalGas, the utilities owned by SET's parent company.  SET is not
regulated by the California Public Utilities Commission and you do not
have to buy SET's products and services to continue to receive quality
regulated service from the utilities.
**********************************************************************



Message #3 by Rahul Chugh <RChugh@s...> on Fri, 26 Apr 2002 16:49:55 -0400
Thanks Minh

I have tried every step you told in your mail.
But the problem still persist. It gives me an error right at the line where i instantiated a Word Object.
This was fine when we used to run the application on Beta 2 (VS.NET)
but day before yesterday I installed the Release Version and that when this started happening. I have gone
through a couple of newsgroup and they all have the same problem.

If something else comes up at your end do let me know.

Thanks
Rahul

-----Original Message-----
From: Minh T. Nguyen [mailto:nguyentriminh@y...]
Sent: Friday, April 26, 2002 11:51 AM
To: ASP+
Subject: [aspx] RE: Error Accessing Com Objects or Interop Objects


Rahul,

	How do you try to access the word document? It seems that ASPNET
does not have access to the actual file and not the Word COM object. So
you want to right-click on the winwordfile.doc that you are trying to
access or just give access rights to the entire directory.
	If you think it's a COM access problem, you want to run
"dcomcnfg" from your Start/Run command line and click on the Word COM's
property and see what the security permissions are.
	At last, you can just give ASPNET more administrative control,
by going to your machine.config file in the
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\CONFIG directory and change
the processModel's username attribute to "SYSTEM" which has much more
privilege.

Minh.

-----Original Message-----
From: Rahul Chugh [mailto:RChugh@s...] 
Sent: Friday, April 26, 2002 8:07 AM
To: ASP+
Subject: [aspx] Error Accessing Com Objects or Interop Objects


Hi 

i am trying to access the word document from my asp.net 
and it gives me error saying access denied.

The exact Message was  : 


	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 have tried all the diagnostic steps like giving permission to the
InterOpp Dll 's as well as to the WinWord.Exe.


And the same error repeats. I have also searched the newsgroup and did
the same as above.
But still the error repeats. Does anybody knows hot to get around this
problem.

An early reply would be highly appreciated.

Rahul



**********************************************************************
This e-mail contains privileged attorney-client communications and/or
confidential information, and is only for the use by the intended
recipient. Receipt by an unintended recipient does not constitute a
waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying
of this information by anyone other than the intended recipient or his
or her employees or agents is strictly prohibited.  If you have received
this communication in error, please immediately notify us and delete the
original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or
SoCalGas, the utilities owned by SET's parent company.  SET is not
regulated by the California Public Utilities Commission and you do not
have to buy SET's products and services to continue to receive quality
regulated service from the utilities.
**********************************************************************






**********************************************************************
This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the
intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended
recipient or his or her employees or agents is strictly prohibited.  If you have received this communication in error, please
immediately notify us and delete the original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company. 
SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to
continue to receive quality regulated service from the utilities.
**********************************************************************

Message #4 by "Minh T. Nguyen" <nguyentriminh@y...> on Mon, 29 Apr 2002 09:49:16 -0700
Rahul,

	Sorry, can't think of something else. Try instantiating it from
regular VB6 or classic ASP to see if this is a VS.NET problem per se.
But I can't think of anything else.

Later,
Minh.

-----Original Message-----
From: Rahul Chugh [mailto:RChugh@s...] 
Sent: Friday, April 26, 2002 1:50 PM
To: ASP+
Subject: [aspx] RE: Error Accessing Com Objects or Interop Objects


Thanks Minh

I have tried every step you told in your mail.
But the problem still persist. It gives me an error right at the line
where i instantiated a Word Object.
This was fine when we used to run the application on Beta 2 (VS.NET)
but day before yesterday I installed the Release Version and that when
this started happening. I have gone
through a couple of newsgroup and they all have the same problem.

If something else comes up at your end do let me know.

Thanks
Rahul

-----Original Message-----
From: Minh T. Nguyen [mailto:nguyentriminh@y...]
Sent: Friday, April 26, 2002 11:51 AM
To: ASP+
Subject: [aspx] RE: Error Accessing Com Objects or Interop Objects


Rahul,

	How do you try to access the word document? It seems that ASPNET
does not have access to the actual file and not the Word COM object. So
you want to right-click on the winwordfile.doc that you are trying to
access or just give access rights to the entire directory.
	If you think it's a COM access problem, you want to run
"dcomcnfg" from your Start/Run command line and click on the Word COM's
property and see what the security permissions are.
	At last, you can just give ASPNET more administrative control,
by going to your machine.config file in the
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\CONFIG directory and change
the processModel's username attribute to "SYSTEM" which has much more
privilege.

Minh.

-----Original Message-----
From: Rahul Chugh [mailto:RChugh@s...] 
Sent: Friday, April 26, 2002 8:07 AM
To: ASP+
Subject: [aspx] Error Accessing Com Objects or Interop Objects


Hi 

i am trying to access the word document from my asp.net 
and it gives me error saying access denied.

The exact Message was  : 


	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 have tried all the diagnostic steps like giving permission to the
InterOpp Dll 's as well as to the WinWord.Exe.


And the same error repeats. I have also searched the newsgroup and did
the same as above.
But still the error repeats. Does anybody knows hot to get around this
problem.

An early reply would be highly appreciated.

Rahul



**********************************************************************
This e-mail contains privileged attorney-client communications and/or
confidential information, and is only for the use by the intended
recipient. Receipt by an unintended recipient does not constitute a
waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying
of this information by anyone other than the intended recipient or his
or her employees or agents is strictly prohibited.  If you have received
this communication in error, please immediately notify us and delete the
original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or
SoCalGas, the utilities owned by SET's parent company.  SET is not
regulated by the California Public Utilities Commission and you do not
have to buy SET's products and services to continue to receive quality
regulated service from the utilities.
**********************************************************************






**********************************************************************
This e-mail contains privileged attorney-client communications and/or
confidential information, and is only for the use by the intended
recipient. Receipt by an unintended recipient does not constitute a
waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying
of this information by anyone other than the intended recipient or his
or her employees or agents is strictly prohibited.  If you have received
this communication in error, please immediately notify us and delete the
original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or
SoCalGas, the utilities owned by SET's parent company.  SET is not
regulated by the California Public Utilities Commission and you do not
have to buy SET's products and services to continue to receive quality
regulated service from the utilities.
**********************************************************************




  Return to Index