In my ASP.Net application I\'m generating a Excel file using MsExcel Object Libby (Com-InterOp) . The application worked fine in the VS dev. environment.
But when I
I made research on this problem, which I also had. I did that: http://forums.asp.net/t/1093228.aspx
I don't know how good solution it is but it works. :)
Type dcomcnfg in cmd
go to Component Services ->My Computer ->Com Security ->Lauch and Activate Permissions ->Edit Default ->Add...
Now add Network Service and allow all permisions to it.
Just create a new user on the machine with admin privilege and assign this user on the Identity Tab
of the COM service
as per the below image. It works perfectly.
Just set the Identity
to this User and enter the username and password of a user who has sufficient rights. In my case I entered a user of power user group.