using System.Runtime.Remoting.Channels.Http

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have c# express beta
I try to write the following using clause:

System.Runtime.Remoting.Channels.Http;

because I want to create a http channel.

HttpChannel aJobChannel = new HttpChannel(4000);

But the compiler doesn't want it...

The type or namespace name 'Http' does not exist in the namespace
'System.Runtime.Remoting.Channels' (are you missing an assembly reference?)

what I am doing wrong?
thanks!
 
marcelino,

You should use this at the top of your file instead:

using System.Runtime.Remoting.Channels.Http;

Hope this helps.
 
Sorry, I don't understand you...

Here is my programm:

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting.Channels.Http; <-- error here

namespace JobServer
{
class JobServer
{
static void Main(string[] args)
{
// registering a listening channel
HttpChannel aJobChannel = new HttpChannel(4000);
ChannelServices.RegisterChannel(aJobChannel);
}
.....
.....

Thanks!



Nicholas Paldino said:
marcelino,

You should use this at the top of your file instead:

using System.Runtime.Remoting.Channels.Http;

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

marcelino said:
Hi,

I have c# express beta
I try to write the following using clause:

System.Runtime.Remoting.Channels.Http;

because I want to create a http channel.

HttpChannel aJobChannel = new HttpChannel(4000);

But the compiler doesn't want it...

The type or namespace name 'Http' does not exist in the namespace
'System.Runtime.Remoting.Channels' (are you missing an assembly
reference?)

what I am doing wrong?
thanks!
 
Did you add a reference to System.Runtime.Remoting.dll? This should
solve your problem.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

marcelino said:
Sorry, I don't understand you...

Here is my programm:

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting.Channels.Http; <-- error here

namespace JobServer
{
class JobServer
{
static void Main(string[] args)
{
// registering a listening channel
HttpChannel aJobChannel = new HttpChannel(4000);
ChannelServices.RegisterChannel(aJobChannel);
}
....
....

Thanks!



Nicholas Paldino said:
marcelino,

You should use this at the top of your file instead:

using System.Runtime.Remoting.Channels.Http;

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

marcelino said:
Hi,

I have c# express beta
I try to write the following using clause:

System.Runtime.Remoting.Channels.Http;

because I want to create a http channel.

HttpChannel aJobChannel = new HttpChannel(4000);

But the compiler doesn't want it...

The type or namespace name 'Http' does not exist in the namespace
'System.Runtime.Remoting.Channels' (are you missing an assembly
reference?)

what I am doing wrong?
thanks!
 
oh..oh... :-/

now works...
Thanks!

Nicholas Paldino said:
Did you add a reference to System.Runtime.Remoting.dll? This should
solve your problem.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

marcelino said:
Sorry, I don't understand you...

Here is my programm:

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting.Channels.Http; <-- error here

namespace JobServer
{
class JobServer
{
static void Main(string[] args)
{
// registering a listening channel
HttpChannel aJobChannel = new HttpChannel(4000);
ChannelServices.RegisterChannel(aJobChannel);
}
....
....

Thanks!



Nicholas Paldino said:
marcelino,

You should use this at the top of your file instead:

using System.Runtime.Remoting.Channels.Http;

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,

I have c# express beta
I try to write the following using clause:

System.Runtime.Remoting.Channels.Http;

because I want to create a http channel.

HttpChannel aJobChannel = new HttpChannel(4000);

But the compiler doesn't want it...

The type or namespace name 'Http' does not exist in the namespace
'System.Runtime.Remoting.Channels' (are you missing an assembly
reference?)

what I am doing wrong?
thanks!
 
Back
Top