DPP
Guest
|
Posted:
Fri Nov 11, 2005 9:51 pm Post subject:
.NET TI object Proxy method call |
|
|
Hi,
It is working fine when i call the .NET TI proxy method from a windows
application. But i call the same method from a web service, I am getting the
following exception. This .NET TI object is deployed under IIS.
[System.ArgumentException] {"Object type cannot be converted to target
type." }
StackTrace "\nServer stack trace: \n at
System.Reflection.RuntimeFieldInfo.InternalSetValue(Object obj, Object val,
BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean
requiresAccessCheck, Boolean isBinderDefault)\r\n at
System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo
fi, Object target, Object value)\r\n at
System.Runtime.Serialization.FormatterServices.PopulateObjectMembers(Object
obj, MemberInfo[] members, Object[] data)\r\n at
System.Runtime.Serialization.Formatters.Soap.ReadObjectInfo.PopulateObjectMembers()\r\n
at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.ParseObjectEnd(ParseRecord
pr)\r\n at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.ParseMemberEnd(ParseRecord
pr)\r\n at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.Parse(ParseRecord
pr)\r\n at
System.Runtime.Serialization.Formatters.Soap.SoapHandler.EndElement(String
prefix, String name, String urn)\r\n at
System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()\r\n at
System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()\r\n at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler
handler, ISerParser serParser)\r\n at
System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler)\r\n at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeSoapRequestMessage(Stream
inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)\r\n at
System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)\n\nException rethrown at [0]: \n at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)\r\n at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,
Int32 type)\r\n at SupraTILibraryTCPIP.COBOLPrograms.GETAT2(CommonHeader&
Header, GETAT2_INPUT_AREA INPUT_AREA, GETAT2_OUTPUT_AREA& RETURN_AREA,
CommonMessage[]& Messages)\r\n at
SupraTILibraryTCPIP.COBOLPrograms.GETAT2(CommonHeader& Header,
GETAT2_INPUT_AREA INPUT_AREA, GETAT2_OUTPUT_AREA& RETURN_AREA,
CommonMessage[]& Messages)\r\n at
SupraTIWebService.SupraTIService.GetAvailabilities(String rexnordPartCode,
String locationCode) in
c:\\rexnord\\supratiwebservice\\supratiservice.asmx.cs:line 174" string
Any idea on the reason why it is coming for webservice and but not coming
from windows application? Thanks,
--
Thanks,
DPP |
|