tips with visual studio 2005

1. 一般要发布的WINFORM程序要将所有DLL合并到EXE中,使用ILMERGE合并之后,再使用dotfuscator将EXE乱序,进行重命名(非标准版或专业版,只有重命名功能),如果程序中包含有interop.excel.dll且被重命名之后, 在程序中导入XLS文件时,可能会报如下错误:
System.Runtime.InteropServices.COMException (0x80020003): 找不到成员。 (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
, 因此不应该在dotfuscator中对interop.excel.dll进行转换, 另外,使用office xp pia可以导入XP/2003/2007中的XLS, 需要在工程中引用:interop.excel.dll, interop.office.dll, microsoft.vbe.interop.dll, 在发布的程序中包含这三个DLL即可,用户端不需要安装PIA.

2. 在安装visual studio 2005 sp1时需要先参考再安装: http://support.microsoft.com/kb/925336
另外在windows 2003 en servver sp1 版本中报的错是:"the installation for this product is not available, verify that the source is exist and that you can access it."  ,根据上面的文章设置之后重启即可解决.奇怪的是与上面URL中MS报的"1718"错,完全不沾边.

3.安装dotnetfx.exe版本2时,如果你安装的是英文版,则可以安装中文版本的langpack,这样提示的错误信息即为中文,如果你缺省已经是中文提示,而想查看英文信息(在google中查找帮助时比较有用),则可以在控制面板中将中文语言包删除即可.
原文地址:https://www.cnblogs.com/margiex/p/594226.html