473,388 Members | 1,427 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,388 software developers and data experts.

I am missing something but cant think what

I am using VS2005 and ASP.NET 2
I want to use IIS to host some .NET remoting.

I have a website I created called RemotingHost. I created another class
project called RemotingServer and in there a class called TestClass
(inherits Marshallbyrefobject for remoting). I then added the built
assembly to the bin folder on the RemotingHost website.
I created a web config file with system.runtime.remoting wellknown service
for the testclass as follows:

<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="RemotingServer.TestClass,
RemotingServer" objecturi="TestClass.rem"/>
</service>
</application>
</system.runtime.remoting>

I then created a windows client with a reference to the RemotingServer (just
for the metadata).
I created an app config file for the client too as follows:

<system.runtime.remoting>
<application>
<client>
<wellknown
type="RemotingServer.TestClass, RemotingServer"
url="http://localhost/RemotingTestHost/TestClass.rem"
/>
</client>
</application>
</system.runtime.remoting>

I call RemotingConfiguration.Configure but when i try to instantiate the
class i get an error saying it cannot find the service.

I have done similar thousands of times in .NET1.1 with no problems so what
am i missing on .NET2? The only thing i do differently is create the
TestClass in a seperate assembly (i used to create it in the website in 1.1
and reference from there but you cant do that in .NET2 unfortunately.

Anyone spot where i am going wrong? Any ideas on hosting a single class for
remoting in IIS in .NET2?

Thanks
Mark
Nov 19 '05 #1
0 913

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

Similar topics

3
by: John Kristensen | last post by:
Hi I'm having a little stupid problem when trying to change properties in a Textbox (or a label) using Event Procedures. Im doing a report and want to change the Control Source in a textbox,...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
4
by: Rob Meade | last post by:
Hi all, I'm trying to dynamically create the navigation for my web page - I have achieved this at work and whilst trying to reproduce the code this evening at home I'm obviously missing...
3
by: Jeff Buller | last post by:
I am new to vb.net here is my problem: In a windows form I am populating a dropdown list with the DropDownList1.Items.Add(SomeString) command. the list populates and looks good however when I...
2
by: ken | last post by:
We have a user that has reported the following error when starting up our client application that uses a web service on our back end: System.Configuration.ConfigurationException: Missing required...
2
by: Tom | last post by:
I've beat my head every way I can think of against this wall. Maybe someone here just knows the answer. I'm testing an upload class on my laptop WAMP server. When I run the test script,...
2
by: Mangler | last post by:
I am running a stored proc that aborts an insert if the result is "YES" Well all inserts are being aborted and i cant figure out why. Maybe I am missing a line or have something wrong? <CODE>...
12
by: tfelb | last post by:
Hi all! I bought the book "Programming in C" by Stephen G Kochan. I miss 2 answers at his website. (removestr and the substr function) How can I implement these functions? It would be wonderful...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.