الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

Problem in WebService

مغلق
بدأه moh_ramadan في 17 يونيو 2007 · 2 رد · 570 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

Alsalamo 3alykom wara7mato Allah

We are working in a project that uses the WebService to be enabled to be accessed through the Web.

In this project we have two solution: 1- Forms Solution. 2- Main Solution.

The first one contains the forms that will be shown to the user, and it has its own WebService (let's name it 'GUI_WS') that retreives these forms' data.

And the other solution is for the main form that calls the forms in the first solution and it has also its own WebService (its name is 'Main_WS') which gets the data needed for this form (e.g. the data in the MainContextMenu).

My problem is here when we get the data through 'Main_WS', it is retreived successfully and shown in the main form. But when calling a form to be shown, its WebService (GUI_WS) doesn't work and an exception is thrown after 60 seconds. The exception is shown below:

The CLR has been unable to transition from COM context 0x36daf8 to COM context 0x36dc68 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

And a picture of the exception is attached.

And when we stop the retreiving of the main data, i.e. stopping the usage of 'Main_WS' and start calling a form that uses 'GUI_WS', no errors shown and the form retreives its data successfully.

How can I solve this problem as I need to use the both WebServices?

I need you help in my problem.

Thank you very much for you cooperation.

Mohammed Ramadan A. Mahmoud

Software Developer

EBS International

post-74982-1182064119_thumb.gif

CODING IS NOT A CRIME

#2
Did you dubug it ? Did you try to increase the time-out value ? I think it is a connection problem !

#Read

http://MoutazShams.blogspot.com

projects003.gif

أعتذر عن التغيب هذه الأيام نظرا للانشغال المريب

#3
Dear Mr. Mootaz,

Thank you very much for your reply and I am sorry for my late.

Well, I already debug it, but the process never goes to the other side (Server Side).  And I don't think the problem related to the timeout of the web service as it runs successfully when only one project accesses it at a time.  But when using more than project access the same web service, the above mentioned message is shown after exactly 60 seconds.

I am asking now if there are any other solutions for this BIG problem.

Thank you again very much for your cooperation.

Mohammed Ramadan A. Mahmoud

Software Developer
EBS International
www.propricer.com

CODING IS NOT A CRIME

هذا الموضوع مغلق.

مواضيع مشابهة