473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem using class librarys

I was writing simple test program for using class libraries (OS: Windows 2003 Server). The problem I’ve got: runtime error:
-------------------------------------------
An unhandled exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll
Additional information: Remoting configuration failed with the exception System.IO.FileNotFoundException: File or assembly name System.Runtime.Remoting, or one of its dependencies, was not found.
File name: "System.Runtime.Remoting".
------------------------------------------
Configuration file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<System.Runtime.Remoting>
<application name="BasicRemotingClient">
<channels>
<channel
type="System.Runtime.Remoting.Channels.Http.HttpCh annel,System.Runtime.Remoting" />
</channels>
</application>
</System.Runtime.Remoting>
</configuration>

Client: (BasicRemotingClient.cs)
using System;
using System.Runtime.Remoting;
using BasicServer;

namespace BasicClient
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class BasicRemotingClient
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Type type=typeof(BasicRemotingServer);
String url="http://localhost/BasicServiceDemo/BasicRemotingServer.soap";
RemotingConfiguration.Configure(@"D:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\C#\BasicClient\BasicRemotingClient.exe.co nfig");
BasicRemotingServer brs=(BasicRemotingServer)Activator.GetObject(type, url);
Console.WriteLine(brs.getServerResponse());
}
}
}

Server: (BasicRemotingServer.cs)
using System;

namespace BasicServer
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class BasicRemotingServer: MarshalByRefObject
{
/// <summary>
/// The main entry point for the application.
/// </summary>
public string getServerResponse()
{
return "Greetings from the BasicRemotingServer component!";
}
}
}

The error occurs at Activator.GetObject(…) .

What is wrong and how to correct it?
Nov 16 '05 #1
0 1159

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Michael | last post by:
I'm trying to compile on VC++ and am having a linking error. I basically have a library for all my maths functions: 3DMaths.lib, and a library for my for my engine and also my game, but get the...
8
by: Nolan Martin | last post by:
Is it just me or are there no good librarys out there to access the keyboard or mouse? I have been looking around for a while now and can only find ones that are bundled with a bunch of other...
4
by: Timothy Smith | last post by:
i'm looking for ocr librarys with reasonably free licensing and the ablity to use python with them. c library's that i can call from python are acceptable. so far all i have run into is voodoo and...
5
by: Steven Wolf | last post by:
hi again, i have several namespacing problems in my big project. my current namespaces in my solution are: b2b.Server.Common b2b.Server.Business b2b.Server.Business.Mapping...
2
by: Jim Anderson | last post by:
I'm running Kubuntu a derivative of Debian Linux. I'm using Python 2.4 and tcl/tk 8.4. I'm running Tkinter programs and they were running about a month ago. When I tried them again yesterday, I...
1
by: Daniel | last post by:
what is best way to talk to https webpages within .net? any good librarys for talking to https websites?
38
by: JTL | last post by:
I have learnt java before and now begin to learn c++ what puzzle me is that seem that different SDKs(c++builder, vs.net, gcc..) has its own class library we know that in java there are only one...
2
by: John | last post by:
Hi everyone I need help with the Standard Template Librarys List class. All I am trying to do is push a Cat object onto it and the copying it back off of it into another cat object. It seems like...
2
by: boyindie86 | last post by:
Hi I have looked endlessly for a solution to my problem but I have found no solutions I have a problem where I am using ajax to basically pull values of words out a text file stored on a server...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.