473,765 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The status code returned from the server was: 500 while tring to display MessageBox

6 New Member
I am back in .net after a long break.. i am stuck with a problem ..

I have coded to display a message box using "System.Windows .Forms.MessageB ox.Show " to show up based on condition and this works fine in my local machine but when i publish the site and put the .dll out for testing i am getting an error saying

---------------------------
Microsoft Internet Explorer
---------------------------
Sys.WebForms.Pa geRequestManage rServerErrorExc eption: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
---------------------------
OK
---------------------------
Dec 17 '09
19 7614
Frinavale
9,735 Recognized Expert Moderator Expert
Are you seeing any JavaScript errors in the page?
Are you using Ajax (UpdatePanels)?

What browser are you using to debug your JavaScript? IE8 comes with some built in debugging tools that really help...if you are using FireFox then you should download a tool like FireBug to help you find and debug any JavaScript errors on the page. I'm constantly switching between IE8's debugging tools and FireBug because each one will catch errors specific to each browser (and sometimes one finds errors that the other can't even when it's not a browser specific problem)

-Frinny
Dec 21 '09 #11
PPrasanna
6 New Member
Thanks for your quick response.. I am not getting any Javascript error and there is no ajax being used in my application the only thing i suspect is because of the browser as i have IE 6.0
Dec 21 '09 #12
Frinavale
9,735 Recognized Expert Moderator Expert
Well, IE6 is pretty nasty but it should still know what to do with an alert().
As far as I know there are no JavaScript debugging tools available for IE6....So for now, to debug this, could you download and install FireFox...then download and install FireBug (which is a an add on for FireFox)?
Dec 21 '09 #13
Plater
7,872 Recognized Expert Expert
I suspect the trouble is this:
ClientScript.Re gisterStartupSc ript(this.GetTy pe(), "alert",tes t);
You named it alert, try naming it "myAlert"

I also do NOT recomend firebug, it used to be usefull and a huge memory leak. Now I think they fixed the memory leak but it almost worthles.
The javascript error console (ctrl+shift+j) contains pretty much everything you need.
Dec 21 '09 #14
Frinavale
9,735 Recognized Expert Moderator Expert
FireBug is constantly changing. There was a time when it had some memory leaks and other problems (which really annoyed me because the previous version to was fine) but most problems have been fixed....it does sometimes totally miss errors...but it's not completely useless!

I've never used ctrl+j...is this for IE? Does it work in IE6? Does it provide more details than "object expected" error descriptions?

-Frinny
Dec 21 '09 #15
Plater
7,872 Recognized Expert Expert
CTRL+SHIFT+J is for FF. Its what firebug leaches off of.
Dec 21 '09 #16
Frinavale
9,735 Recognized Expert Moderator Expert
When I hit Ctrl+J it opens my downloads manager/window.....?
Dec 21 '09 #17
Plater
7,872 Recognized Expert Expert
Ooops ctrl+shift+J
Dec 21 '09 #18
Frinavale
9,735 Recognized Expert Moderator Expert
Thanks Plater, that worked....not sure how this would help to actually debug JavaScript...bu t it does display the errors and warning messages for webpages. I'll have to check it out more.

**edit**
Ok this is pretty nice. It brings you to the lines where the error or the warning occurred.
Bytes has a ton of style warnings...for example someone misspelled "visited" as "visted" and haven't provided a valid hex value for the color style for the .codeLI class...I haven't done much debugging on bytes...


-Frinny
Dec 21 '09 #19
JamieHowarth0
533 Recognized Expert Contributor
Frinny,

<spoken like a true Microsoft puppet>
This is why you should never run a website on a piece of PHP software ;-)
</spoken like a true Microsoft puppet>

codegecko
Dec 22 '09 #20

Sign in to post your reply or Sign up for a free account.

Similar topics

9
2163
by: Brian Roberts | last post by:
I have a command line Python program that sometimes takes a bit (several minutes) to run. I want to provide an optional method for an impatient user (me!) to check the status of the program. The type and amount of status information doesn't fit nicely into a --verbose or logger -- either too little or too much information at different points. I think an optional web page would be convenient interface. The Python program would listen...
6
2842
by: Nick Horrocks | last post by:
I have set up a custom error page for 404 errors. However the HTTP status code returned is 302 followed by 200, this causes search engines not to remove old pages from their index. How can I get the correct status code to be returned? Thanks
2
1161
by: Sachin | last post by:
Scenario: Machine A: ASP.NET Web UI IIS 6.0 Windows Server 2003 Impersonation Account: domain\Acct1 Machine B: ASP.NET Web Service IIS 6.0
1
3454
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm going wrong. The program has been written to do the following tasks: - Select remote server - Select from two specific services
0
3940
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server - Select from two specific services - Check the status of the server
7
6527
by: Entwickler | last post by:
hello, i have the following problem. i want to write a code that enables the user to call functions from a unmanaged code .dll at running time . so i have to use the late binding . i tried the following code but it doesn't walk : Assembly assemblyInstance = Assembly.LoadFrom(@"C:\myData\UnmanagedCode.dll"); i don't know if somebody can help me . Regards,
5
10773
by: Prasad | last post by:
Hi all, I wanted to know whether my page is connecting to server or not using xmlHttp request. For that , I am using one condition in onreadystatechange function as.. function xxx() { if(xmlhttp.readyState==4) {
4
3802
by: Miha V | last post by:
Hi! We are using ASMX web service with WSE (we're using WS-Addressing) and IIS returns HTTP status code 200 even if XML is malformed (it can contain illegal characters in it). The request does not get through the stack to the application, but if I debug the application, I can see that exception is thrown somewhere "down there".
9
4121
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is in another class from the main class. So it couldn't access the Status Line or textbox. So what we did was set them up as properties: string IStatusDisplay.Status
0
9568
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
10156
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
10007
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
9951
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
6649
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();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
3531
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.