The Artima Developer Community
Sponsored Link

.NET Buzz Forum
ASP.NET and RemotingConfiguration.Configure()

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Robert Hurlbut

Posts: 547
Nickname: rhurlbut
Registered: Mar, 2004

Robert Hurlbut is a Principal Consultant with Hurlbut Consulting
ASP.NET and RemotingConfiguration.Configure() Posted: May 22, 2004 12:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Robert Hurlbut.
Original Post: ASP.NET and RemotingConfiguration.Configure()
Feed Title: Robert Hurlbut's .Net Blog
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rhurlbut/Rss.aspx
Feed Description: Development with .Net, Rotor, Distributed Architectures, Security, Extreme Programming, and Databases
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Robert Hurlbut
Latest Posts From Robert Hurlbut's .Net Blog

Advertisement

Ingo mentions a solution I found this week for setting up ASP.NET as a .Net Remoting client (it is actually a bug fix):

If you use ASP.NET as a Remoting client, you should not use this code in your app.config:

protected void Application_Start(Object sender, EventArgs e)
{
   RemotingConfiguration.Configure(Server.MapPath("client.exe.config"));
}

Using Server.MapPath(), some requests might fail if the application is recycled and the first request is not for a file in the application's root directory but in a subdirectory (i.e. "http://yourhost/somedir/default.aspx" instead of "http://yourhost/default.aspx". Robert suggested to use the following (and of course, he's totally right):

protected void Application_Start(Object sender, EventArgs e)
{
   RemotingConfiguration.Configure(Request.PhysicalApplicationPath 
        + "client.exe.config");
}

Read: ASP.NET and RemotingConfiguration.Configure()

Topic: Dual Opteron in SFF Previous Topic   Next Topic Topic: Weird...first time my blog's been down, well, ever...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use