ASP.Net Com-InterOp Excel Generation issue when hosting

后端 未结 9 1368
野性不改
野性不改 2021-01-04 10:08

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

相关标签:
9条回答
  • 2021-01-04 10:55

    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.

    0 讨论(0)
  • 2021-01-04 10:58

    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.

    screenshot

    0 讨论(0)
  • 2021-01-04 11:00

    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.

    0 讨论(0)
提交回复
热议问题