Click here to Skip to main content
15,894,460 members
Articles / Web Development / IIS

.NET Remoting under IIS - ASP.NET Application as Client

Rate me:
Please Sign up or sign in to vote.
4.13/5 (20 votes)
2 Aug 2009CPOL5 min read 179.8K   1.2K   53  
Simplest method to host remote component under IIS with ASP.NET application as client
Imports System.Runtime.Remoting
Imports GoprintObj
Imports System.Drawing.Imaging
Imports System.Drawing
Imports System.Runtime.Remoting.Messaging
Imports System.Threading
Public Class WebForm1
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Public Delegate Function test() As Boolean

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim objRemote As IServer.IServer

        'Getting transperent proxy 
        'objRemote = Activator.GetObject(GetType(IServer.IServer), "http://localhost/server/server.soap")

        'Executing remote object function
        Response.Write(objRemote.getServerTime())
    
       
    End Sub

    Private Sub pageLoadTest()
        
    End Sub
    
End Class


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions