|
|
tom1901
regular
Reg'd: Tue
Posts: 238
Loc: Cheshire (Gods county) Not too...
|
|
Hi all, I have been trying to post an advert on a free selling site and after filling in the usual details I have tried to post the advert but then this error message keeps coming up, other people have posted adverts today but after several attempts I finally gave up. I have copied the message that came up can anyone please throw any light on the problem. Thanks Tom.
Object cannot be cast from DBNull to other types. 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.InvalidCastException: Object cannot be cast from DBNull to other types.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Object cannot be cast from DBNull to other types.] PAAUtilities.clsBookings.GetAdRef(String strCountryCode, String strConn, Boolean blnHorseMart, Boolean blnProperty) in C:\VSS1.1\WebApps\BritList\BritListSoln\PAAUtilities\clsBookings.vb:226 NOBA.GreenList.DataAccess.Posting.CreateAdRef() in C:\VSS1.1\WebApps\BritList\BritListSoln\GreenList\DataAccess\Posting.cs:154 NOBA.GreenList.DataAccess.Posting.Save() in C:\VSS1.1\WebApps\BritList\BritListSoln\GreenList\DataAccess\Posting.cs:517 NOBA.GreenList.Web.PostAd.uiStep2Next_Click(Object sender, EventArgs e) in c:\vss1.1\webapps\britlist\britlistsoln\noba.greenlist.web\postad.aspx.cs:1418 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292
|
|
The_Wanderer
regular
Reg'd: Mon
Posts: 424
|
|
I don't think this is an Internet Explorer problem tom1901
If I had to guess I'd say you have left a couple of fields blank on a form and that it doesn't like that. I'm basing that solely on assuming that DBnull means that the database is receiving a null string.
Have to say it doesn't look like the kind of stuff that should end up facing the system user, so if you have done everything right it may be their end.
I'm guessing you are looking at selling property in Horse Mart from that Stack Trace.
If you can't get that to work then maybe worth looking here too
http://www.horseandhound.co.uk/
Click on properties for sale, then enter the kind of ad you are looking for. The featured examples are Horses when I just tried this but when you click through it realises you selected properties.
|
tom1901
regular
Reg'd: Tue
Posts: 238
Loc: Cheshire (Gods county) Not too...
|
|
Thanks The -Wanderer for your reply, I was trying to sell some sports equipment but nothing to do with horses LOL. I have found another site so the problem is now sorted so to speak, but thanks for taking the time out to try and help. regards Tom
|
The_Wanderer
regular
Reg'd: Mon
Posts: 424
|
|
I read far too much into this bit of the extract
GetAdRef(String strCountryCode, String strConn, Boolean bln HorseMart , Boolean blnProperty)
Glad you are sorted.
|
|
0 registered and 8 anonymous users are browsing this forum.
Moderator: bricat, Dannygfc, Hello_There, AndrewC, andys, clairewoffenden, TheFatControlleR, John_McKenna, putasolutions, Joe_London, Noviciate, Mouse, BenCJ
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
Mark-up is enabled
|
Rating:
Topic views: 0
|
|
|
|
|