Permissions for Opening Office Documents with ASP.NET October 26 2005
I was having an issue when trying to open an M$Word document with ASP.NET through the Office and Word COM library references. The message would consistently be “Access is denied” eventhough the file and the directory had permissions for the ASPNET account.
What needed to be done was grant launch permissions to the webserver and ASP.Net accounts. This was done with the following:
1. Run DCOMCNFG
2. Component Services > Computers > My Computer > DCOM Config
3. Find Microsoft Word Document
4. Make sure the default permissions are applied
5. Right click on My Computer and select Properties > DCOM Security
6. Grant Launch and Access permissions for the accounts ASPNET,IUSR_{MACHINE_NAME}, IWAM_{MACHINE_NAME} under the “Edit Defaults” buttons.
Thats it!
Source: http://forums.aspfree.com/archive/t-14597/Open-Excel-w-asp-net-VB
- Posted in : General
- Author : site admin

Comments
Sorry comments are closed for this entry