473,729 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 Marshallbyrefob ject 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="RemotingS erver.TestClass ,
RemotingServer" objecturi="Test Class.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="RemotingS erver.TestClass , RemotingServer"
url="http://localhost/RemotingTestHos t/TestClass.rem"
/>
</client>
</application>
</system.runtime. remoting>

I call RemotingConfigu ration.Configur e 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 928

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

Similar topics

3
1908
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, depending of the result from a query, but the Control Source is not avalible in the listbox when typing: me.txttesting. <-- now a listbox is apering but I cant chose the Control Source property. The same is when trying to change the Caption in a...
102
5699
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 can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
4
1256
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 something, I just cant see what... Here's the error: Class 'System.Web.UI.WebControls.TableRow' cannot be indexed because it has no default property.
3
1004
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 attempt to read what the user has selected it always reads back the first item. I am attempting to read the answers in a button procedure with the command: cp = RTrim(DropDownList1.SelectedItem.Text) Any Idea's why I cant do this?
2
7602
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 Web Services section of the Web.config file. at System.Web.Services.Configuration.WebServicesConfiguration.get_Current() at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at...
2
2863
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, everything is fine. When I put together my own form and test uploading the same file, it fails because the $_FILES value is missing the trailing slash at the end of the temp dir name, so that the temp name looks like this: c:/wamp/tmpphp11.tmp
2
1317
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> ........... If (spDupresult) = "YES" Then MM_abortEdit = true
12
2320
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 if someone can help me out, because Stephen Kochan is not reachable. Thanks for any help
7
2831
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 seems to work fine, however I noticed that no web log entry is added when a successful download occurs (normally a 200 HTTP status code, however, if there is an authorization failure, it gets logged). I have a logging routine that logs a successful...
0
8925
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9288
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9206
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6026
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4797
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3240
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.