Dotaz winform程序 在其他机器运行有错误

  • 2011年4月11日 3:32
     
     

    我本机(win7 64)没有任何问题 用的是 .net framework 3.5

    程序在其他机器(xp sp3)打包,安装 点击运行 在程序调用某个方法的时候报错

    在类型 "类名" 中方法 "方法名" 上加载属性"XmlSerializerFormatAttribute" 时出错,有关详细信息,请参阅InnerException

    类和方法是webservice自动生成的

全部回复

  • 2011年4月12日 20:28
    版主
     
     
    把异常抓下来,看看InnerException里面是什么

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
  • 2011年4月18日 8:13
    版主
     
     

    你好

    XmlSerializerFormatAttribute类是3.0以上版本才包含的,你可以检查下其它机器是否安装了3.0以上版本。


    Raymond Tang (Microsoft C# MVP)
    Denn Ich Gehoer nur mir
    微软中文论坛同城社区成都QQ群:74268428
    My Chinese Blog
    Chengdu,Sichuan Province,China
  • 2011年7月5日 5:11
     
     
    目标机器为3.5 sp1
  • 2011年12月20日 2:53
     
     
    悲剧了,我也遇到这样的问题了。
  • 2011年12月20日 2:53
     
     
    我也遇到同样的问题。。。
  • 2012年7月3日 10:01
     
     
    LZ.这问题解决了吗?悲剧的是我现在也遇到了...能不能告诉我怎么解决的。
  • 2012年7月4日 1:26
     
     
    当初 貌似是在目标机器上装了.net3.5 + sp1 + net 4. 之后 OK了. 具体的目标机器环境不清楚了... 毕竟很久了...