![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| 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 Specs![]() |
| | #2 (permalink) |
| 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 news 9D4F842-0A24-45E8-99C6-A60B49812F2E@xxxxxxQuote: > 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 Specs![]() |
| | #3 (permalink) |
| 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: 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 > news 9D4F842-0A24-45E8-99C6-A60B49812F2E@xxxxxxQuote: > > 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 Specs![]() |
![]() |
| 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 | |||