|
-
Mar 23rd, 2003, 05:22 AM
#1
Thread Starter
Lively Member
System.Runtime.Remoting.Channels.Tcp ???
Why?
Why when I try to compile this simple sample (hehe) MS VS tell me that the
System.Runtime.Remoting.Channels.Tcp
Namespace does noe exists???
Then I try to compile it with csc.exe by dos prompt and all work fine???
Why???
--- code ---
PHP Code:
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace RemotingSamples
{
public class Sample
{
public static int Main(string [] args)
{
TcpChannel chan = new TcpChannel(8085);
ChannelServices.RegisterChannel(chan);
RemotingConfiguration.RegisterWellKnownServiceType(Type.GetType("RemotingSamples.HelloServer,object"), "SayHello", WellKnownObjectMode.SingleCall);
System.Console.WriteLine("Hit <enter> to exit...");
System.Console.ReadLine();
return 0;
}
}
}
-
Mar 23rd, 2003, 06:28 PM
#2
Sleep mode
I would expect it new bug . It's number 1000
-
Mar 24th, 2003, 12:49 PM
#3
Have you added a reference to the dll?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 24th, 2003, 01:45 PM
#4
Thread Starter
Lively Member
Have you added a reference to the dll?
Thanks, that's the trick 
But I does not understand why I have to add it in VS and not in the csc command line...
-
Mar 24th, 2003, 03:18 PM
#5
The references thing is there for a reason I don't really understand.
The command line compiler doesn't care for it and always uses everything it can find.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 24th, 2003, 03:58 PM
#6
csc.exe probably by default references the common .NET libraries. i guess it was written that way.
-
Apr 18th, 2003, 04:52 PM
#7
Lively Member
Csc.exe uses a response file, it's like a compiler configuration file. Take a look at 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.rsp'. A reference to System.Runtime.Remoting.dll, which you were missing in VS, is automatically added when use csc from the commandline.
-
Apr 19th, 2003, 03:37 AM
#8
Thread Starter
Lively Member
Take a look at 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.rsp'. A reference to System.Runtime.Remoting.dll, which you were missing in VS, is automatically added when use csc from the commandline.
But... VS does not launch the csc.exe?
If yes, why VS need a different references list?
Thanx
-
Apr 21st, 2003, 05:32 AM
#9
Lively Member
No, VS doesn't run csc.exe.
-
Apr 21st, 2003, 12:46 PM
#10
yay gay
what does it use then? it wont use an own compiler do it?
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|