473,407 Members | 2,629 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,407 software developers and data experts.

Remoting crashes IIS

Hi

I'm busy developing a .NET remoting application. Tcp remoting with a binary formatter is used. The user can specify on the client configuration whether to connect to the hosted Singleton or SingleCall objects. The application consists out of the following:

- Shared assembly

This contains serializable classes that are shared between the server and client applications. This also includes interfaces for the server classes.

- Server assembly

This assembly implements the various interfaces from the Shared assembly and communicates directly with the database. Assembly is hosted in a Windows service.

- General assembly

This assembly contains proxy classes and serves as a link between the client applications and the server assembly. When an application starts, it creates an instance of the General class which in turn creates proxy classes to the server classes.

Each proxy class, on creation, calls the RegisterWellKnownServiceType for the respective server class. This keeps everything in one place. This assembly also provides the Login functionality for all applications.

- Client Applications

The client applications have no reference to the Server assembly. When the client application starts, an instance of the General class from the General assembly is created, which automatically prompts with the login screen and configure the remoting classes.

The client application can then just call a function on the correct proxy.

E.g. The Employee Management Module can call the My.MainObj.EmployeeProxy.Save(EmployeeObj). (MainObj is the General class and EmployeeObj is a serializable class from the Shared assembly)

Up to this point... Everything works great. The problem comes in with the web application which also uses the General assembly's proxy classes.

When I use the web for the first time, it works fine. If I however close Internet Explorer and try to access the site again (or try to access the site from another computer), I get the following error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 8: Public Sub New(ByVal Parent As General.GeneralClient)Line 9: _General = ParentLine 10: RemotingConfiguration.RegisterWellKnownServiceType ( _Line 11: GetType(ServerInterfaces.IEmployeeManagement), _Line 12: String.Format(_General.ServerUrl, My.Settings.IEmployeeManagement), _Line 13: My.Settings.RemoteAccessMode)

In the code above, ServerInterfaces.IEmployeeManagement is the interface from the Shared assembly. _General.ServerUrl is the full url to the object which is initialized when retrieving the settings for the client application (e.g. tcp://10.0.0.10:1921/{0}.rem). My.Settings.IEmployeeManagement is the name of the class being hosted (for Singleton, it will be "EmployeeManagement". SingleCall will be "EmployeeManagement_SC"). My.Settings.RemoteAccessMode will be either Singleton or SingleCall.

After this error, the IIS process or something actuallly crashes. If I refresh then, it works again.
Any ideas on how to solve this?

Thanks

Jan 15 '08 #1
0 1019

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

Similar topics

0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
0
by: Mike Treadway | last post by:
Here's a posting from someone else that describes my problem. The issue is happening on two Windows 2000 machines that have Veritas installed. That's the only obvious common thing I can see between...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
2
by: Ken Kolda | last post by:
We're using .NET remoting hosted under IIS but we're running into problems with the server shutting down the ASP.NET worker process unexpectedly. Since I know this can occur because of the settings...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
0
by: Rich | last post by:
I have a simple test case using a remote object. When I run with server and client on the same PC everything works fine. When I run the client on another PC, the remote object works, but when the...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.