Foros del Web » Programación para mayores de 30 ;) » .NET »

Problema con remoting

Estas en el tema de Problema con remoting en el foro de .NET en Foros del Web. Hola gente. Resulta que el visual studio me largó un error que nunca había visto y pues, no se que será, llevo horas buscando por ...
  #1 (permalink)  
Antiguo 26/05/2011, 11:36
Avatar de CrazyGrungeMan  
Fecha de Ingreso: noviembre-2009
Ubicación: MVD
Mensajes: 18
Antigüedad: 14 años, 5 meses
Puntos: 1
Problema con remoting

Hola gente. Resulta que el visual studio me largó un error que nunca había visto y pues, no se que será, llevo horas buscando por internet sin suerte.
Se trata de 2 proyectos comunicados por remoting y bien chicos puesto que recién los empecé.


El error:
No se controló System.ApplicationException
Message="System.ArgumentNullException: No se deserializ?? ning??n mensaje antes de llamar a DispatchChannelSink.\r\nNombre del par??metro: requestMsg\r\n en System.Runtime.Remoting.Channels.DispatchChannelSi nk.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)\r\n en System.Runtime.Remoting.Channels.BinaryServerForma tterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)\r\n en System.Runtime.Remoting.Channels.Http.HttpServerTr ansportSink.ServiceRequest(Object state)\r\n en System.Runtime.Remoting.Channels.SocketHandler.Pro cessRequestNow()\r\n"
Source="RemotingCliente"
StackTrace:
en RemotingCliente.FachadaArticulo.altaArticulo(Artic ulo articulo) en C:\EscritorioLiveSoft\RemotingCliente\FachadaArtic ulo.cs:línea 38
en EscritorioLiveSoft.Form1.button1_Click(Object sender, EventArgs e) en C:\EscritorioLiveSoft\EscritorioLiveSoft\Form1.cs: línea 29
en System.Windows.Forms.Control.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ButtonBase.WndProc(Message& m)
en System.Windows.Forms.Button.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
en System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
en System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.Run(Form mainForm)
en EscritorioLiveSoft.Program.Main() en C:\EscritorioLiveSoft\EscritorioLiveSoft\Program.c s:línea 18
en System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
en Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
en System.Threading.ThreadHelper.ThreadStart_Context( Object state)
en System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()
InnerException:

El error me salta acá:
public int altaArticulo(EntidadesCompartidas.Articulo articulo)
{
try
{
IFachadaArticulo ifa = (IFachadaArticulo)Activator.GetObject(typeof(IFach adaArticulo), "http://localhost:1234/Articulo.soap");
return ifa.altaArticulo(articulo);
}
catch (Exception es)
{
throw new ApplicationException(es.Message);
}
}

La clase Articulo está serializada
namespace EntidadesCompartidas
{
[Serializable]
public class Articulo
{
private int codigo_ingreso;
private string nombre_dueño, descripcion;
private string[] fotos;
private string video;
private int[] avisos;

public Articulo() { }

public Articulo(int _cod, string _nom, string _des, string[] _fotos, string _video, int[] _avisos) {
codigo_ingreso = _cod; nombre_dueño = _nom; descripcion = _des;
fotos = _fotos; video = _video; avisos = _avisos;
}

public int Codigo_ingreso
{
get { return codigo_ingreso; }
set { codigo_ingreso = value; }
}

public string Descripcion
{
get { return descripcion; }
set { descripcion = value; }
}

public string Nombre_dueño
{
get { return nombre_dueño; }
set { nombre_dueño = value; }
}

public string [] Fotos
{
get { return fotos; }
set { fotos = value; }
}

public string Video
{
get { return video; }
set { video = value; }
}

public int[] Avisos
{
get { return avisos; }
set { avisos = value; }
}

}
}

Cualquier ayuda es bienvenida, gracias.

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:38.