Click here to Skip to main content
15,904,155 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Deployment question Pin
Heath Stewart17-Feb-07 6:10
protectorHeath Stewart17-Feb-07 6:10 
GeneralRe: Deployment question Pin
JoltWork21-Feb-07 2:24
JoltWork21-Feb-07 2:24 
GeneralRe: Deployment question Pin
Heath Stewart21-Feb-07 4:13
protectorHeath Stewart21-Feb-07 4:13 
GeneralRe: Deployment question Pin
JoltWork21-Feb-07 6:19
JoltWork21-Feb-07 6:19 
AnswerRe: Deployment question Pin
perlmunger21-Feb-07 7:01
perlmunger21-Feb-07 7:01 
QuestionTransaction on Dataset in ADO.net Pin
Neeraj_Maurya15-Feb-07 5:35
Neeraj_Maurya15-Feb-07 5:35 
AnswerRe: Transaction on Dataset in ADO.net Pin
Colin Angus Mackay15-Feb-07 6:03
Colin Angus Mackay15-Feb-07 6:03 
QuestionGeneric Signatures on remoting objects Pin
LukeHammond15-Feb-07 3:00
LukeHammond15-Feb-07 3:00 
I have successfully used binary remoting with an object containing generic signatures on its public methods on XP development machines.

I am trying to implement the client web site and the serving remoting site on a Windows 2003 server.
I am finding that methods without generics work fine, but ones with generics are failing.

There appears to be a problem with handling the declared class instance as T. Again, on an XP machine this works fine.

Here is an excerpt from my remoting web config.

"
<system.runtime.remoting>
<customerrors mode="Off">
<application>
<channels>
<channel ref="http">
<serverproviders>
<formatter ref="binary">


<service>
<wellknown mode="Singleton" type="MyApp.DataServices.DataService, MyApp.DataServices" objecturi="DataService.rem">




"

Here is an excerpt from the web client web config

"
<system.runtime.remoting>
<application>
<client>
<wellknown url="http://localhost:##/MyRemotingVirtualDirectory/dataservice.rem" type="MyApp.DataServices.Interfaces.IDataService, MyApp.DataServices.Interfaces">

<channels>
<channel ref="http" usedefaultcredentials="true">
<clientproviders>
<formatter ref="binary">






"


Here is the code that makes the remoting call

"

IDataService obj = RemotingServices.Connect(typeof(IDataService),
ConfigurationManager.AppSettings[WebConfigContants.REMOTINGSERVERURL]) as IDataService;


"



The exception I get back on the web site client is to the effect
"

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Remoting.RemotingException: The argument type 'MyDomain.MyDomainClass' cannot be converted into parameter type 'T'.
at System.Runtime.Remoting.Messaging.Message.SoapCoerceArg(Object value, Type pt, Hashtable keyToNamespaceTable)
at System.Runtime.Remoting.Messaging.MethodCall.SetObjectFromSoapData(SerializationInfo info)
at System.Runtime.Remoting.Messaging.MethodCall.SetObjectData(SerializationInfo info, StreamingContext context)
at System.Runtime.Remoting.Messaging.MethodCall.RootSetObjectData(SerializationInfo info, StreamingContext ctx)
at System.Runtime.Remoting.Messaging.SerializationMonkey..ctor(SerializationInfo info, StreamingContext ctx)
--- End of inner exception stack trace ---

Server stack trace:
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.RuntimeMethodHandle.SerializationInvoke(Object target, SignatureStruct declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Remoting.Channels.CoreChannel.DeserializeSoapRequestMessage(Stream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel securityLevel)
at System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
"

Any suggestions would be most welcomed.

Luke Hammond
QuestionRe: Generic Signatures on remoting objects Pin
LukeHammond15-Feb-07 3:03
LukeHammond15-Feb-07 3:03 
QuestionRe: Generic Signatures on remoting objects Pin
LukeHammond15-Feb-07 3:11
LukeHammond15-Feb-07 3:11 
QuestionHow to create synchronous socket? Pin
Banks K14-Feb-07 22:19
Banks K14-Feb-07 22:19 
Questiondraw the shapes on top of the controls... Pin
sathishtl00714-Feb-07 19:36
sathishtl00714-Feb-07 19:36 
AnswerRe: draw the shapes on top of the controls... Pin
Simon P Stevens17-Feb-07 2:42
Simon P Stevens17-Feb-07 2:42 
QuestionCalling C# method from a JavaScript program Pin
earlgraham14-Feb-07 12:14
earlgraham14-Feb-07 12:14 
AnswerRe: Calling C# method from a JavaScript program Pin
N a v a n e e t h14-Feb-07 18:05
N a v a n e e t h14-Feb-07 18:05 
AnswerRe: Calling C# method from a JavaScript program Pin
perlmunger21-Feb-07 7:08
perlmunger21-Feb-07 7:08 
GeneralRe: Calling C# method from a JavaScript program Pin
earlgraham22-Feb-07 11:10
earlgraham22-Feb-07 11:10 
QuestionPerfomance of application Pin
cocoonwls14-Feb-07 10:57
cocoonwls14-Feb-07 10:57 
AnswerRe: Perfomance of application Pin
Luc Pattyn14-Feb-07 11:09
sitebuilderLuc Pattyn14-Feb-07 11:09 
GeneralRe: Perfomance of application Pin
cocoonwls14-Feb-07 11:28
cocoonwls14-Feb-07 11:28 
GeneralRe: Perfomance of application Pin
Luc Pattyn14-Feb-07 11:40
sitebuilderLuc Pattyn14-Feb-07 11:40 
GeneralRe: Perfomance of application Pin
cocoonwls14-Feb-07 11:58
cocoonwls14-Feb-07 11:58 
GeneralRe: Perfomance of application Pin
Luc Pattyn14-Feb-07 12:06
sitebuilderLuc Pattyn14-Feb-07 12:06 
GeneralRe: Perfomance of application Pin
cocoonwls14-Feb-07 12:21
cocoonwls14-Feb-07 12:21 
GeneralRe: Perfomance of application Pin
Luc Pattyn14-Feb-07 12:37
sitebuilderLuc Pattyn14-Feb-07 12:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.