has always been using TFS for source control, the system is deployed by my native build post to the server, one day, when the publish operation, reported
The type or namespace name "Excel" does not exist in the namespace "Microsoft.Office.Interop". is missing the assembly reference "error, first Google and Baidu, then a bunch of balabalabala, what to reload office, what to change the registry, what to reference the DLL, and so on, and finally found out because the Web. config
<assemblies> section, to write to the GAC in office 2010, it's possible that someone in our team changed the Web. config, and I got it, and if anyone else has the problem, it's simple,
Add the following entries to the <assemblies> section
<add assembly= "Microsoft.Office.Interop.Excel, version=11.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "/>
<add assembly= "Microsoft.Office.Interop.Word, version=11.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "/>
Thank you
The type or namespace name "Excel" does not exist in the namespace "Microsoft.Office.Interop". is another solution for missing assembly references