473,769 Members | 7,408 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 6364
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
5284
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
7338
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
4683
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
8716
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
14103
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
2642
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
1617
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
932
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
9589
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
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
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...
1
9996
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,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3963
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
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.