RemotingConfiguration.Configure problem

  • Thread starter Thread starter Mantorok
  • Start date Start date
M

Mantorok

Hi

Everytime my ASP.Net app starts it configures remoting using
RemotingConfiguration.Configure methods. However, after the app has run
once and then I try and run it again it throws an exception because the
config has already been read.

Why is the configuration is being held even when I finish the app and also
restart IIS?

Any ideas?
Thanks
Kev
 
Mantorok,

Where are you making the calls to the Configure method? I think it
would not be when the application starts, but maybe when the session starts,
or as a result of some other repeatable event in ASP.NET.

Also, why not configure it in the web.config file? This way, you are
assured it is setup only once.

Hope this helps.
 
Nicholas Paldino said:
Mantorok,

Where are you making the calls to the Configure method? I think it
would not be when the application starts, but maybe when the session
starts, or as a result of some other repeatable event in ASP.NET.

Application start at the moment...
Also, why not configure it in the web.config file? This way, you are
assured it is setup only once.

The configuration is in the Web.Config file, I was under the impression you
still had to call Configure though?

Kev
Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Mantorok said:
Hi

Everytime my ASP.Net app starts it configures remoting using
RemotingConfiguration.Configure methods. However, after the app has run
once and then I try and run it again it throws an exception because the
config has already been read.

Why is the configuration is being held even when I finish the app and
also restart IIS?

Any ideas?
Thanks
Kev
 
Back
Top