Last post Jan 22, 2008 12:33 PM by zowens
Jan 21, 2008 03:30 PM|Parley|LINK
It is obvious that someone is using my code to do something other than what it is designed for. I get multiple (over fifty) Unhandled exceptions that read:
An unhandled exception occurred in the lkwdfirstlions.org:
Message: Conversion from string "http://www.municipioxii.it/sunny"
to type 'Integer' is not valid.
at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
at DownloadEvent.ProcessRequest(HttpContext context) in c:\hosting\webhost4life\member\parley\Events_Download.ashx:line 23
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The code reads:
20 response.BufferOutput =
21 response.ContentType =
25 writeCalEntry(eventid, response.Output, viewurl.ToString)
Please help me close this hole.
Jan 21, 2008 03:49 PM|Curt_C|LINK
I get a number of the same issues every day in my logs (I'm not using that starter kit either).
Basically, as I understand it, it's an attempt to auto-post to your site. There is some script out there that's pegging your site trying to find ways to (most likely) post ads/spam to the site. They find sites that pass params through the URL and try to
As long as no content makes it into your site you are most likely fine...
Jan 22, 2008 12:33 PM|zowens|LINK
You have to have an ID as the EventID and not a string (if you were to use this code). It looks like you need some logic to just terminate the cast in line 23 if the query string is not an integer. For that you might need a method that determines if the string is A) not null and B) can be casted as an integer. How about you try this:
Public Shared Function IsInteger(ByVal sItem As String) As Boolean
If sItem Is Not Nothing Then
Dim notIntPattern As New Regex("[^0-9-]")
Dim intPattern As New Regex("^-[0-9]+$|^[0-9]+$")
Return Not notIntPattern.IsMatch(sItem) AndAlso intPattern.IsMatch(sItem)
Then you'll have to put in some If/Then logic to just handle if the response was out (use response.End() for the termination, else continue writing the event cal file)