Here in Portugal the governors decided to spend public money doing a site that, most of the time, doesn’t work. At least that is my opinion.
I only had spent in the site no more that 3-4 minutes and found some curious errors. I decide to share one of the error that I found.
Here is the screen shoots and how to reproduce one of the bug.
Image may be NSFW.
Clik here to view.
I select “Castelo Branco” and the I choose “Seleccionar todos os municipios deste distrito”, and what happens…
Image may be NSFW.
Clik here to view.
I love this error I can imagine users that are not programmers trying to understand this error message :) the message is sooooo expressive :).
This is where our governors spend our money…
But let’s check the error message just for seeing if it says something usefull. hooo and by the way I’ve formatted the message in the messagebox it’s more easy to read :)
Server Error in '/' Application.
The ConnectionString property has not been initialized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.
Source Error:
Line 11: CMD = New OdbcCommand Line 12: CMD.Connection = CN Line 13: CN.Open()
Line 14:
Line 15: If Request("mh") = "" OrElse Request("mh") = "1" Then
Source File: D:\Inetpub\wwwroot\DGEGPOSTOS2008\include\mapaPTDB.aspx Line: 13
Stack Trace:
[InvalidOperationException: The ConnectionString property has not been initialized.]
System.Data.Odbc.OdbcConnection.Open() +741
ASP.mapaPTCB_aspx.LeZonas() in D:\Inetpub\wwwroot\DGEGPOSTOS2008\include\mapaPTDB.aspx:13
ASP.mapaPTCB_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in D:\Inetpub\wwwroot\DGEGPOSTOS2008\include\mapaPTCB.aspx:5
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1926
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Interesting message especially the part that says OdbcCommand. What are they using as data bases… are they using MS Access as there data base or a CSV text file ????… that is a really nice question.
The other thing that I see is that there site is located in D:\Inetpub\wwwroot\DGEGPOSTOS2008\include hummm and the have a file called mapaPTDB.aspx that has a error on line 13 probably a missing a text file :)
Continuing with the error I see a message “The ConnectionString property has not been initialized.” hummm a public site sponsored by public money and some one forget to initialize correctly the connection string…
Continuing analyzing the error I see .NET Framework Version 1.1.4322.2032; ASP.NET Version 1.1.4322.2022… hummm analyzing these versions they also probably forget to apply Framework 1.1 SP1
I’m impressed how the governor invest my and others money.
Image may be NSFW.Clik here to view.