Windows Vista Forums

Remoting issue
  1. #1


    NeilOz Guest

    Remoting issue

    Hey Guys,

    I get this error running the last line of this code 'Exception calling
    "GetType" with "2" arguement(s): "could not load type
    'Gateway.Crp.Service.IMarketInfoService' from assembly
    'Sytem.Management.Automation, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35'."

    [System.Reflection.Assembly]::LoadWithPartialName("mscorlib")
    [System.Reflection.Assembly]::LoadFile("D:\_Gateway\dll\Gateway.Crp.dll")
    [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime.Remoting")



    $MarketGatewayURI = "tcp://172.16.1.112:8085/MarketInfoService"
    $Remoting = New-Object System.Runtime.Remoting.Channels.Tcp.TcpChannel
    [System.Runtime.Remoting.Channels.ChannelServices]::RegisterChannel($Remoting, 0);
    $QuoteRequest = New-Object Gateway.Crp.Structure.QuoteRequestDTO
    $QuoteResponse = New-Object Gateway.Crp.Structure.QuoteResponseDTO
    $MarketInfo = [Gateway.Crp.Service.IMarketInfoService]


    [System.Activator]::GetObject([System.Type]::GetType([Gateway.Crp.Service.IMarketInfoService], "tcp://172.16.1.112:8085/MarketInfoService"))


      My System SpecsSystem Spec

  2. #2


    Jon Guest

    Re: Remoting issue

    The closing brackets aren't positioned correctly. Should be this I would
    suspect...

    [System.Activator]::GetObject([System.Type]::GetType([Gateway.Crp.Service.IMarketInfoService]),
    "tcp://172.16.1.112:8085/MarketInfoService")

    --
    Jon


    "NeilOz" <NeilOz@xxxxxx> wrote in message
    news9D4F842-0A24-45E8-99C6-A60B49812F2E@xxxxxx

    > Hey Guys,
    >
    > I get this error running the last line of this code 'Exception calling
    > "GetType" with "2" arguement(s): "could not load type
    > 'Gateway.Crp.Service.IMarketInfoService' from assembly
    > 'Sytem.Management.Automation, Version=1.0.0.0, Culture=neutral,
    > PublicKeyToken=31bf3856ad364e35'."
    >
    > [System.Reflection.Assembly]::LoadWithPartialName("mscorlib")
    > [System.Reflection.Assembly]::LoadFile("D:\_Gateway\dll\Gateway.Crp.dll")
    > [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime.Remoting")
    >
    > $MarketGatewayURI = "tcp://172.16.1.112:8085/MarketInfoService"
    > $Remoting = New-Object System.Runtime.Remoting.Channels.Tcp.TcpChannel
    > [System.Runtime.Remoting.Channels.ChannelServices]::RegisterChannel($Remoting,
    > 0);
    > $QuoteRequest = New-Object Gateway.Crp.Structure.QuoteRequestDTO
    > $QuoteResponse = New-Object Gateway.Crp.Structure.QuoteResponseDTO
    > $MarketInfo = [Gateway.Crp.Service.IMarketInfoService]
    >
    >
    > [System.Activator]::GetObject([System.Type]::GetType([Gateway.Crp.Service.IMarketInfoService],
    > "tcp://172.16.1.112:8085/MarketInfoService"))
    >

      My System SpecsSystem Spec

  3. #3


    NeilOz Guest

    Re: Remoting issue

    Unforunately even with the brackets in the correct place I'm still getting
    the same error, but thank you!

    "Jon" wrote:

    > The closing brackets aren't positioned correctly. Should be this I would
    > suspect...
    >
    > [System.Activator]::GetObject([System.Type]::GetType([Gateway.Crp.Service.IMarketInfoService]),
    > "tcp://172.16.1.112:8085/MarketInfoService")
    >
    > --
    > Jon
    >
    >
    > "NeilOz" <NeilOz@xxxxxx> wrote in message
    > news9D4F842-0A24-45E8-99C6-A60B49812F2E@xxxxxx

    > > Hey Guys,
    > >
    > > I get this error running the last line of this code 'Exception calling
    > > "GetType" with "2" arguement(s): "could not load type
    > > 'Gateway.Crp.Service.IMarketInfoService' from assembly
    > > 'Sytem.Management.Automation, Version=1.0.0.0, Culture=neutral,
    > > PublicKeyToken=31bf3856ad364e35'."
    > >
    > > [System.Reflection.Assembly]::LoadWithPartialName("mscorlib")
    > > [System.Reflection.Assembly]::LoadFile("D:\_Gateway\dll\Gateway.Crp.dll")
    > > [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime.Remoting")
    > >
    > > $MarketGatewayURI = "tcp://172.16.1.112:8085/MarketInfoService"
    > > $Remoting = New-Object System.Runtime.Remoting.Channels.Tcp.TcpChannel
    > > [System.Runtime.Remoting.Channels.ChannelServices]::RegisterChannel($Remoting,
    > > 0);
    > > $QuoteRequest = New-Object Gateway.Crp.Structure.QuoteRequestDTO
    > > $QuoteResponse = New-Object Gateway.Crp.Structure.QuoteResponseDTO
    > > $MarketInfo = [Gateway.Crp.Service.IMarketInfoService]
    > >
    > >
    > > [System.Activator]::GetObject([System.Type]::GetType([Gateway.Crp.Service.IMarketInfoService],
    > > "tcp://172.16.1.112:8085/MarketInfoService"))
    > >
    >
    >

      My System SpecsSystem Spec

Remoting issue problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
remoting vs WCF Amol .NET General 1 02 Oct 2009
Remoting reema PowerShell 0 05 Dec 2008
Powershell 2.0 with remoting : ok what is Remoting ? IT Staff PowerShell 4 07 Dec 2007
Migrate from .NET Remoting to WCF (CAO & Remoting.Marshal) janko.klemensek Indigo 0 06 Dec 2007
Indigo (WCF) vs. Remoting =?Utf-8?B?SkxDYW5v?= Indigo 3 07 Aug 2006