Exception from HRESULT: 0x800A03EC working with ASP.net and reporting in Excel, to publish my web site I found an exception that did not appear when compiling my project, only to publish the IIS 7.5 in Windows 7
euipo
Exception from HRESULT: 0x800A03EC
this exception could be controlled by an amendment to the access and modification Excel "enable primary routes excesses" in the IIS
the solution is:
DCOMCNFG.EXE
-Run and go to "Component Services> Computers> My Computer."
"Right click" My Computer "and click" Properties. "
-Open the "COM Security tab. Add your account for each of the buttons above ('Edit Limits ... "and" Edit Default ... "button under" access permission "and" Launch Permissions and enable "). Give your mind all the access options. Click 'Apply' and then 'OK'.
" While still in DCOMCNFG extend the link "My Computer" and open the folder "DCOM Config.
-Right click on "Microsoft Excel Application 'and select' Properties '.
" On the Security tab, select' Customize 'for' Launch and Activation Permissions "and" Configuration Permissions. Therefore, click 'Edit ... "button. Give your account access to everything.
-While still in the 'Properties' for' the application of Microsoft Excel to go to the 'identity' tab.
-Select the option "The interactive user" option.
-Click 'Apply' and then 'OK'.
-Restart your computer.
"Try the following ApplicationPoolIdentity DCOMCNFG and change.
Run command prompt as administrator.
-Go to C: \\ Windows \\ System32> inetsrv \\ and run "config appcmd tuning," asp-enableParentPaths: true
Alternatively could be used. SaveCopyAs (), but may not solve the problem and will require code changes.
DCOMCNFG
Windows 7:
This error occurs in "Excel Application = New Application ();" calls
This link details how to solve the problem for XP / Server 2003, but can be adapted to Windows 7: I have no
http://blog.crowe.co.nz/archive/2006/03/02/589.aspx / could not find a 'ASPNET account. " You have to check the application pool to find out what the application is running as.
To do this go to 'Computer Management Services and Applications> Internet Information Services> Application Pools "
Right click on the case AppPool and choose" Advanced Settings ". In" Process Model> Identity "can be found the account is running low. Mine was "ApplicationPoolIdentity" which also could not find so I changed it to "Network Service" as Windows Server 2003. Once
establishing Dcomcnfg.exe run. Go to Component Services> Computers> My Computer> DCOM Config.
Search and click "Microsoft Excel Application 'and select'. Select the" Security tab. Under "Launch and Activation Permissions" select "Custom" and click "Edit."
then click "Add ..." button.
Type the name of the account if, in this case "Network Service" and click Check Names. Then click 'OK'.
Back to "Commissioning and permissions page activation "to highlight the" Network Service account and check the "boxes Local Launch 'and' Local Activation 'check. Then click' OK '.
source taken from:
http://stackoverflow.com/questions/1981395/