I am having a problem with my site. I have a Captcha that works fine on the local machine, It will give an image with the follwoing link -- http://localhost:55181/CaptchaImage.ashx?spec=bFx6sd9EvJBG4WyaA6Pb4G6BY3woawyU%2bYCU%2bjcFLRVJ7xULK%2fuuhy8D351tK0wg
But when I try and use it on the Server, discountasp.net I get the red X for a picture and this as the link for the picture http://www.site.com/MFFO/CaptchaImage.ashx?
On the webpage in dev. mode it says: Error Rendering Control - captchaAn unhandled exception has occurred.
The application relative virtual path '~/CaptchaImage.ashx' cannot be made absolute, because the path to the application is not known.
The codes is as below:
If it helps this is from the Club Starter Kit from http://www.codeplex.com
<add verb="*" path="*CaptchaImage.ashx" type="Subkismet.Captcha.CaptchaImageHandler, Subkismet"/>
ErrorMessage="The NO BOT code you entered is invalid."
'aspx page on button submit:(this should not matter as it works local as long as I have the right captcha)
rotected Sub AddComment_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles AddComment.Click
If Page.IsValid = True Then
Dim TheQueryString As Int32 = CInt(Request("id"))
Dim mem As MembershipUser = Membership.GetUser()
Dim gui As New Guid(mem.ProviderUserKey.ToString)
Dim name As String = ClubStarterKit.Web.Members.FirstAndLastName(gui)
Dim email As String = mem.Email.ToString()
BlogComments.Insert(TheQueryString, name, email, txtComment.Text)
txtComment.Text = ""