Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi everyone.

I have a problem trying to open an Office Application from my asp.net pages.

My code is:

 

Dim oWord As Word.Application

oWord = Server.CreateObject("Word.Application")

 

When i run it, the compliler displays this message:

 

Access is denied.

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.

 

Can anybody help me?

Thanks

  • Moderators
Posted

try this... (I'm quoting from your post by the way)

 

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.

Visit...Bassic Software
Posted

Which file?

 

Thanks for your help

I've alredy tried this in the entire folder where my pages are but i think that i have to change the properties in some other file.

Can you tell me what file?

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...