Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Timeout?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lord - 09 Nov 2004 11:47 GMT
Hi!, I´m at the moment begining with web services, and I have a problem:
I´ve already made a class which implementates a chess engine. Now it´s
in a dll, and i´ve proved with a standard c# proyect : it works fine.

Now, I put it in a webmethod:

[WebMethod]
public string HelloWorld()
{
    motor.MotorAjedrez game=new motor.MotorAjedrez(1);
    game.PiensaOrdenador();
    return "Hola a todos";
}

and when I try to see if it works fine with the internet explorer, it
newer shows the "hola a todos" message. Obviously, if I comment the
invocation of the method PiensaOrdenador(), it shows the message.
And the code game.PiensaOrdenador() in a c# proyect works fine.

The "error message" I get is : Server Aplication not available
(Aplicación de Servidor No Disponible).

After reading the event register system, it said:
aspnet_wp.exe  (PID: 3016) was recibled because it seems to be blocked.
 It didn´t send for the pengind application in the last 180 seconds

Has anyone any idea?.

Thanks
Martin Kulov - 09 Nov 2004 16:17 GMT
Hi Lord,

It seems that you have spent too much time in your constructor or method. Why do not you debug the method and seehow it is going?

Martin
Lord - 09 Nov 2004 16:44 GMT
Hi marting, thanks for the answer...
But I choose that the tree had depth of 1, so it spends 2 or 3 seconds
in the operation... At the moment I´m a bit crazy, and I´m even thinking
about recoding it in c# (at the moment is in managed C++).
Could it be the problem?. I´ve been reading but I haven´t found
anything... Do I need to configure something of the IIS?

Lord
> Hi Lord,
>
> It seems that you have spent too much time in your constructor or method. Why do not you debug the method and seehow it is going?
>
> Martin
Martin Kulov - 09 Nov 2004 21:50 GMT
Hi Lord,
Did you debug the service and see what happens? Place trace calls inside your code and try to diagnose the time spent in your code. You can also comment the method call and leave only the constructor to see what’s happening. I do not think that you have to configure IIS or implement it in C#. It would not make sense.

Martin
Dan Rogers - 16 Nov 2004 01:06 GMT
Hi Lord,

What's happening is likely to be that your initialization logic to your
stateful game engine is taking too long, and the service call is timing out
(e.g. the thread is being reclaimed).  Try to not introduce any stateful
logic on the server side - since there will be little you can do to
maintain that state in memory and still maintain adequate server/service
performance.

Another possible issue is that the game engine could require that it is
called from a single threaded appartment - which the web method body is
not.  This could cause the blocking behavior you are seeing.

If you cannot get the initialization logic down to less than a second when
called from a web service, you could try creating an STA (e.g. a COM+
component, written in Visual Basic) that then does your initialization.  If
this succeeds, then you can use this as a bridge from your web service
(which can call the exposed COM+ service).  If you need to do this, be sure
to set your application isolation in the IIS vroot to "high" - so that any
problems in your game engine do not cause the IIS server to crash.

Hope this helps,

Dan Rogers
Microsoft Corporation
--------------------
>Date: Tue, 09 Nov 2004 12:47:42 +0100
>From: Lord <lord@yolcom>
[quoted text clipped - 10 lines]
>Message-ID: <4190ae5f_2@filemon1.isp.telecable.es>
>X-Trace: filemon1.isp.telecable.es 1100000863 212.89.21.93 (9 Nov 2004
12:47:43 +0100)
>Organization: TeleCable, S.A.U.
>Lines: 29
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.zanker.org!news.cambrium.nl!216.196.110.149.
MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.
net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!newsfeed.telecable.es!not
-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26419
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 27 lines]
>
>Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.