Results 1 to 1 of 1

Thread: [RESOLVED] ASP.NET as a Remote Client

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    4

    Resolved [RESOLVED] ASP.NET as a Remote Client

    [EDIT]
    Ok, I figured out what was wrong, the code and where I have it is correct, however I neglected to comment out/remove an explicit call to RemotingServices.Configure elsewhere in the code.
    [/EDIT]

    I have a question regarding client-side registration via the web.config file for a remoting project I am working on. I'm working in VS 2005, writing in VB of course.

    I have a server (console application) in which I do most of my registration via the app.config file. One exception is a database connection object which I publish specifically. The client to this server is an ASP.NET project.

    In the web.config file, I have all of my client-side registration for channels and remote objects. However, when reading through the links below, I need to do a bit more to make it work:

    http://www.thinktecture.com/Resource...NG_CLIENT.html

    http://support.microsoft.com/default...b;en-us;323490

    So, I've created the global.asax file, and added this code to the Application_Start() method:

    VB Code:
    1. Dim sPath = Server.MapPath("web.config")
    2.         System.Runtime.Remoting.RemotingConfiguration.Configure(sPath, False)

    Perhaps someone can clarify which .config file I am trying to locate here? Both pages seem to imply that on it's own, the web.config file won't be read for registration purposes unless I put some sort of code in Application_Start(), so what am I missing?

    Thanks.
    Last edited by jpa7227; Oct 17th, 2006 at 10:29 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width