2003上运行winform 访问webservice错误
网站连接错误System.InvalidOperationException: An error occurred while loading attribute 'XmlSerializerFormatAttribute' on method 'HelloWorld' in type 'ServiceSoap'. Please see InnerException for more details. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
--- End of inner exception stack trace ---
at System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, Boolean inherit)
at System.ServiceModel.Description.ServiceReflector.GetSingleAttribute[T](ICustomAttributeProvider attrProvider)
at System.ServiceModel.Description.ServiceReflector.GetSingleAttribute[T](ICustomAttributeProvider attrProvider, Type[] attrTypeGroup)
at
在其他机器上WIN7上都可以在win2003上运行程序就报错。我觉得IIS是没问题的 其他机子可以访问
[解决办法]
好像是从SoapMessage解析到Object的时候出错了。感觉跟系统无关。确定和其它机器上运行的winform时同一个版本?
[解决办法]
好像是从SoapMessage解析到Object的时候出错了。感觉跟系统无关。确定和其它机器上运行的winform时同一个版本?