.NET TI object Proxy method call
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
.NET TI object Proxy method call

 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server
Author Message
DPP
Guest





Posted: Fri Nov 11, 2005 9:51 pm    Post subject: .NET TI object Proxy method call Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB