Microsoft Office Excel cannot access the file Microsoft.Office.Interop.Excel

 Nguồn:https://stackoverflow.com/questions/7106381/microsoft-office-excel-cannot-access-the-file-c-inetpub-wwwroot-timesheet-app/7386967#7386967

0

I've been searching around and The following two solutions both worked for me.

  1. Change to interactive user

    Steps: Run dcomcnfg

    Go to Console Root \Component Services\Computers\My Computer\DCOM Config\Microsoft Excel Application

    Right click Microsoft Excel Application

    Select Properties

    Go to Identity tab

    Select The interactive user.

    In step 2, if you can't locate that path then try running mmc comexp.msc /32 instead of dcomcnfg.

  2. Create the directory C:\Windows\SysWOW64\config\systemprofile\Desktop

Comments

Popular posts from this blog

Data Import Best Practices in Power BI

ASP.NET MVC + AdminLTE

Build your first Azure Dara Factory Pipeline