473,756 Members | 5,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sys.Net.WebServ iceFailedExcept ion: The server method '' failed with

Hello...

Let's say we have a time consuming function, aaa inside a aspx page.

[WebMethod]
public static string aaa(int i)
{
Thread.Sleep(10 00);
return i.ToString();
}

Inside the aspx file:
<div>
<asp:ScriptMana ger ID="ScriptManag er1" runat="server"
EnablePageMetho ds="true">
</asp:ScriptManag er>
<span id="displayspan "></span>
<br />
<input type="button" value="click me" onclick="Stress ()"/>
<script language="javas cript" type="text/javascript">
function Stress()
{
for(var i = 0 ; i < 100 ; i++)
{
PageMethods.aaa (i, function(res, ctrl){
document.getEle mentById('displ ayspan').innerH TML
+=res.toString( ) + ' ';
});
}
}
</script>
</div>
The problem is that when I click on the button, I get an error:
"Sys.Net.WebSer viceFailedExcep tion: The server method '' failed with
the following error:" .... and no error description

Can someone tell me how to workaround this issue?

Thanks

P.S. In Firefox 2.0.0.16, Opera and Safari(Windows version) this code
works....
Aug 8 '08 #1
1 6362
In VS TS 2008 this exception isn't raised.... only in VS 2008
Professional
Aug 9 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5283
by: Jim | last post by:
Any idea what is causing this error? 006~ASP 0230~Server.Transfer Error~The call to Server.Transfer failed while loading the page. Just read about benefits of Server.Transfer over Response.Redirect, replaced, and getting the error. Suggestions?
3
544
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a web hosting company and when I try to run the site (which runs in our local IIS server), I get the following error: Server Error in '/New' Application. Compilation Error Description: An error occurred during the compilation of a resource...
2
7335
by: Ravi J | last post by:
I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new Word.ApplicationClass();' takes quit a bit of time, and eventually "Server Execution Failed" page appears. "Exception Details: System.Runtime.InteropServices.COMException: Server execution failed ... " The same call inside a WIndows Form succeeds. But for some reason, in ASP.NET it doesn't. Quick...
2
4678
by: Bassel Tabbara | last post by:
I wrote the following code: oApp = new Outlook.Application(); oApp = new Outlook.Application(); oNameSpace= oApp.GetNamespace("MAPI"); oNameSpace.Logon(null,null,true,true); //gets defaultfolder for my Outlook Outbox oOutboxFolder = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderOutbox); But it won't work and it is giving me the following error:
10
8715
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an asp.net page. If I press OK then I get a page with this message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser...
8
14102
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no exceptions - completes fine. Their web service url was added as a web reference to our project with no problem. The following was generated as part of the proxy class: /// <remarks/> public DueDateAvailabilityResponse...
0
2641
by: karlag92 | last post by:
Using C# .Net V 1.1.4322, I am attempting to call some web services that will ONLY be consumed by our Winforms client application. I have my web service security working from the browser by following instructions from good resources like this: http://www.windowsecurity.com/articles/Client-Certificate-Authenticat... I cannot successfully call the same web service from my C# application.
0
1613
by: Andynewforest | last post by:
I'm making a very simple webpage to view data in a Postgres tbale. Having not done this belore with ASP.NET I'm taking it slowly and overcoming most problems. However I cannot work out what is going on here: I get this message: SERVER ERROR 'PostgreSQL OLE DB Provider' failed with no error message available, result code: -2147221163(0x80040155). Description: An unhandled exception occurred during the execution of the current web...
0
930
by: muthukumaran08 | last post by:
I m calling webmethod (BindEPASCode) in aspx.cs page through Pagemethods in javascript. I am returning BindEPASCode as string if the return below 2500, it is populating properly, if it takes more 2700 i m getting 'Server method Bind State failed' error. Below is my code... function callwebmethodTopic() { var topic = document.getElementById(GetJSProperty('ddlTopic')).value; PageMethods.BindEPASCode(topic,...
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9886
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9857
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.