Remoting is hanging from Custom to IIS Host swap

dotnet framework

    Next

  • 1. Cannot find the assembly... SerializationException in mscorlib.dll
    Hi, I'm trying to implement an example of remoting from MS Book but I'm getting this error..Before this I was getting a similar serialization error related to a delegate, I added a typeFilterLevel="Full" to my configuration file and now I have this error instead... any ideas? An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: Cannot find the assembly Client, Version=1.0.1805.16691, Culture=neutral, PublicKeyToken=null.
  • 2. a complete client-server implementation of marshal by value
    Can somebody refere me to a complete client-server implementation of marshal by value specifically the one that is hosted not by IIS but by your own host and uses configuration files both in client and server? Thanks for yuor help
  • 3. How .NET remoting works
    Hi, I want to know the internals of .NET remoting (Architecture, How it works, Flow etc..). Please give me few links regarding the same. -- Thanks, Prabu
  • 4. Events, using interface assembly and Activator.GetObject
    I want a Client to receive events from a server activated singleton object (Server). I am using an Interface Assembly. The Client (user) has to spezify at runtime the location (tcp-address) where to instantiate the Server. It would by nice to be able to instantiate several Clients concurrently, with each instance be connected to an other server. The client code is about this: // register tcp channel (with TypeFilterLevel.Full) .... // create proxy for remote object Server = (IServer)Activator.GetObject(typeof(IServer), stringURI); // calling an interface method works fine Server.GetServerInfo(strInfo); // now hook up to event Server.Event +=new myDelegate(myEventHandler); At this point an exception is raised "Cannot find the assembly Client...". What is the best choice in this case to register the client to listen to events from Server, considering above mentioned conditions? Thanks in advance, Fritz

Remoting is hanging from Custom to IIS Host swap

Postby ahmed » Mon, 04 Oct 2004 04:19:15 GMT

I had a perfectly working remoting host working out of a console
environment. As soon as it was finished i planned to move it over to
my Hosting service which required me to use IIS.
The host still works but seems to crash when more and more traffic
seems to accumulate, it worked perfectly on a custom HOST....what can
i do to see what is causing it or any suggestions or things to add in
code that might make my application more IIS friendly?

Ahmed

Re: Remoting is hanging from Custom to IIS Host swap

Postby Ken Kolda » Mon, 04 Oct 2004 08:10:36 GMT

I'm not sure you've given enough information to get any real help. The 
subject of the message says your problem is that something is{*filter*}. In 
your message you say the host "seems to crash". Please be much more specific 
about the symptoms you're seeing, e.g. when you say the server crashes, what 
do mean by that? If you get an exception please provide it's complete text. 
If there's no exception, is it just that the server doesn't return the 
expected results, is there some other indication that it has failed, ...?

Ken









Re: Remoting is hanging from Custom to IIS Host swap

Postby Ahmed Ben Messaoud » Mon, 04 Oct 2004 12:02:29 GMT

Well i get no exception, that is the weird part.
Any calls after a certain amount of time will just eventually timeout.
The thing is it works perfectly with a custom host though i just need it
to work with IIS because i am putting this on a my HOST and i cannot run
console apps on it.

Ahmed

*** Sent via Developersdex  http://www.**--****.com/  ***
Don't just participate in USENET...get rewarded for it!

Re: Remoting is hanging from Custom to IIS Host swap

Postby Ingo Rammer » Tue, 05 Oct 2004 23:59:20 GMT

There is unfortunately quite a number of possible causes. It could for 
example be a case of thread pool starvation: if your server side processing 
logic uses up all existing 25 threads per CPU in the threadpool (and doesn't 
release them again), no new requests will be served and the client's calls 
will time out.

Also: if your custom host previously used a Tcp channel, the timeout will 
always be infinite. Maybe your queries just take a longer time and you now 
run into the HttpChannels timeout. (Which you can increase by changing the 
timeout sink property after getting your proxy)

Another possibility is that your application exposes some completely 
non-Remoting-related issues which only turn up during higher loads. (i.e. do 
the timeouts happen under low load as well? How does your custom host react 
after the same amount of calls and/or at the same load level?)

Just some ideas, though,
-Ingo

thinktecture
 http://www.**--****.com/ 
In-depth support and consulting for software architects and developers









Re: Remoting is hanging from Custom to IIS Host swap

Postby Ahmed Ben Messaoud » Wed, 06 Oct 2004 14:25:07 GMT

that makes sence because i seem to be able to make no calls at all
except for the ones that have no DB connectivity within the calls.

How can i release these thread pools? i thought they would terminate
after the call.



*** Sent via Developersdex  http://www.**--****.com/  ***
Don't just participate in USENET...get rewarded for it!

Re: Remoting is hanging from Custom to IIS Host swap

Postby msnews.microsoft.com » Thu, 07 Oct 2004 20:07:25 GMT

Normally, you don't need to release them. This is only applicable whenever 
you use constructs similar to ThreadPool.QueueUserWorkItem() or other means 
which take threads out of the pool. If you are doing this, then you should 
make sure that the work which is queued is completed in reasonable time.

If you need to run longer background threads (something which you should 
normally avoid in IIS), then it might be better if you create a new 
Thread/ThreadStart.

However: this is only applicable if you want additional background 
processing. Otherwise this shouldn't affect you and I would go the route of 
comparing the performance/response time of your custom host under the same 
load as IIS. Normally, IIS will be *way* more stable and responsive.

-Ingo

thinktecture
 http://www.**--****.com/ 
In-depth support and consulting for software architects and developers








Similar Threads:

1.IIS Remoting Host and Proxy Servers

I'm getting a message (407) Proxy Authentication Required. when trying to invoke a method on a remote object that is hosted on a IIS site A.B.C on an intranet machine. Internal DNS has been sorted where i can browse to a test page on the site using IE with no problems. 
If i try to invoke a remote method i get the error above, if i disable the proxy in IE, the remote object method invockation is successfull, but this is not something i will be allowed do.
I am using configuration files as i do not want remoting to be explicit, that is the remoteable objects are designed to be stateless and can be configured if necessary using a configuration file. What i would like to know is can i configure the http channel being used to bypass the proxy.
Have seen code examples that can set a proxy using reflection but i would prefer to admin this through config files rather than code changes.

Any help would be appreciated
Pat

2.Remoting security with IIS and custom Forms authentication

Hi!

What are the options for securing remote objects, which are accessible
through IIS, when you have an application deployed on the same server,
which uses custom Forms authentication?

Scenario:
Server hosts app a, which is configured as: authentication:Forms,
authorization: deny users="?".

Now, for Remoting to work, I had to specify that the remoting URI
(RemotableObject.rem) requires no authorization, so IIS let the request
through. Since this object return reference to another object, IIS
(ASP.NET) creates a temporary link to this remote object, which of
course can not be known in advance and the request thus fails. The URI
is, for instance like this:
/ff1338e5_a46f_4577_af4c_726910d1a39f/9AqnyvYRtRnG8Ai_7Q+5KSYG_80.rem

Two questions:
1) how to configure IIS (ASP.NET application) to let the remoting
requests through
2) how to configure IIS (and remoting app) to be secure? (once the
requests will go through).

I guess that one can not mix windows authentication for remoting and
custom forms authentication for "regular asp.net" application.

And the two (asp.net app & remoting objects) have to be deployed within
the same application, since remoting object is used to expose some of
the asp.net application functionality.

Pointers appreciated.

Rgds,
  Miha

3.Remoting Server Host that also is a Remoting Client

4.Need a Custom Compressor for Remoting/IIS

Hi all,
I'm looking for a good compressor for Remoting on IIS. Any links / examples?

TIA

Sohail Iqbal



5.Clustering the .Net remoting IIS Host

6. access denied doing remoting with IIS host headers

7. Access denied to Server 2003 IIS remoting host

8. Remoting with IIS host issue



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 13 guest