原来在VS2005下写的.NET2.0工程,通过VS2008的升级功能将代码迁移到了.NET 3.5代码在本地DEBUG,RELEASE编译均没有问题
采用CLICK ONCE发布后发现无法正常安装,通过查看详细信息发现问题:
错误详细信息
执行此操作期间检测到下列错误。
* [2009-2-27 14:07:44] System.Deployment.Application.DeploymentDownloadException (未知子类型)
- 下载 http://xx.com.cn/soft/rsinoutclient/Application Files/Mder_1_0_0_0/Mder.XmlSerializers.dll.deploy 未成功。
从GOOGLE上查到外国网站有此类型解决方案,通过修改后问题解决,解决办法如下:
the fix for me was to go to the publish tab in the project
properties, click the Application Files button and set the
XmlSerializers.dll to "exclude" under Publish Status. My app still
works, so I guess it isn't needed in this case.
说白了就是在发布程序时将XMLSERIALIZERS的INCLUDE改为EXCLUDE,附图两张做比较
修改前:
修改后:
我的程序环境:
XP+VS2008 SP1