Go to the Start-Run menu item.
Type in "DCOMCNFG" and hit enter.
This should load the "Component Services"
Expand "Component Services"
Expand "Computers"
Expand "My Computer"
Select the "DCOM Config" item
Select the "Microsoft Excel Application" item.
Right click and select Properties
Select the Security Tab and you should see the following:
Now change as following blue area in below picture:
Now add the below key:
(1) ASPNET object
(2) NETWOK SERVICES object
Local Launch : Allow
Remote Launch : [blank]
Local Activation : Allow
Remote Activation : [blank]
Click the OK button and test your web application again and it should work fine.
Note:This error occuurs due to below setting in IIS Server.
No comments:
Post a Comment