Issue: FileNotFoundException
When I try to execute the Program, First I received the error 'CS0234'
CS0234 The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (Press F4 to check imported namespaces)
When I manage to change the location of the Additional refrences, then I am getting the below error,
FileNotFoundException: Die Datei oder Assembly "office, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Please can anyone help with solution for this issue.
Thanks.
CS0234 The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (Press F4 to check imported namespaces)
When I manage to change the location of the Additional refrences, then I am getting the below error,
FileNotFoundException: Die Datei oder Assembly "office, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Please can anyone help with solution for this issue.
Thanks.
Comments
https://www.linqpad.net/LINQPad6.aspx#beta
This includes special support for the Office Interop COM libraries. Just press F4 and click Add Office Interop. This will add the references and namespaces to make Office interop work.
Let me know how you get along.