Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/03/2006, 13:48
Yessy
 
Fecha de Ingreso: junio-2004
Mensajes: 19
Antigüedad: 19 años, 10 meses
Puntos: 0
problemas con un proxy

en mi aplicacion hecha en vb .net necesito obtener datos a traves de un componente, pero este componente va estar en otro servidor, por lo tanto que lo hago con un proxy, pero al referenciar de esta forma:

Dim a, b, suma As Integer
Dim oTrama As Object
oTrama = Server.CreateObject("Proyecto1.Trama")
a = 1
b = 2
suma = 0

suma = oTrama.sumas1(a, b)

al realizar la llamada al metodo (sumas1) me lanza este error:

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
__________________
Yessy ;-)