Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Remoting issue

Reply
 
Old 01-08-2008   #1 (permalink)
NeilOz


 
 

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
Old 01-09-2008   #2 (permalink)
Jon


 
 

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
Quote:

> 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
Old 01-09-2008   #3 (permalink)
NeilOz


 
 

Re: Remoting issue

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

"Jon" wrote:
Quote:

> 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
Quote:

> > 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
Reply

Thread Tools


Similar Threads
Thread Forum
Remoting PowerShell
Re: .Net Remoting Server .NET General
Powershell 2.0 with remoting : ok what is Remoting ? PowerShell
Powershell 2.0 and remoting PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46