System.NullReferenceException while posting topic reply.


InstantForum Question
Exception Message: Object reference not set to an instance of an object.
Exception Source: InstantASP.InstantForum
Exception Target Site: SelectMessageIcons.
Forum version 2010-5. 
Actual postback includes topic parentid, however the actual message contains single quotes, would this create the problem?
Or, am I just missing some message icons?

American Hakko Products, Inc.
IT Team Member
Mona Wells
InstantForum Question

Hi Mona,

Thank you for your post. I hope your well. Sorry to hear of the trouble. 

I believe you may be missing the XML file that defines the available message icons or that the XML file is not well formed.  

Could you navigate to your active skin directory (Skins/{YourSkinNAme}/). 

Within the root of each skin file you should find a "MessageIcons.xml" file. If you open this within NotePad you'll see something similar to...

<?xml version="1.0" encoding="UTF-8"?>
<!-- MessageIcon Definition File -->
<MessageIcons>
<MessageIcon FileName="General.gif">
  <MessageIconDescription>General Discussion</MessageIconDescription>
</MessageIcon>
<MessageIcon FileName="Question.gif">
  <MessageIconDescription>Question</MessageIconDescription>
</MessageIcon>
<MessageIcon FileName="Idea.gif">
  <MessageIconDescription>Idea</MessageIconDescription>
</MessageIcon>
<MessageIcon FileName="Problem.gif">
  <MessageIconDescription>Problem</MessageIconDescription>
</MessageIcon>
<MessageIcon FileName="Praise.gif">
  <MessageIconDescription>Praise</MessageIconDescription>
</MessageIcon>
</MessageIcons>


Ensure there is no extra white space before the first <xml> element. 

We do require message icons which is why you are seeing the error. We will however look at null reference checkes around this to avoid run time errors.  If you don't wish to use message icons you can hide the row that contains the message icons when posting new topics. If I can help with that just let me know. 

Please let me know if this helps Mona. If the problem continues please don't hesitate to respond. 


http://www.instantasp.co.uk/images/line.gif
Kindest Regards,

Ryan Healey



ryan@instantasp.co.uk
www.instantasp.co.uk
Blog | Community | Docs

http://www.instantasp.co.uk/core/assets/images/email/facebook.png http://www.instantasp.co.uk/core/assets/images/email/twitter.png http://www.instantasp.co.uk/core/assets/images/email/google.png http://www.instantasp.co.uk/core/assets/images/email/linkedin.png

Yes,  my current file contained elements that must have been from the old version. Thank You!

American Hakko Products, Inc.
IT Team Member
Mona Wells

Thanks for marking my response as the answer Mona. I'm pleased to hear this helped.

If I can assist further with anything of course please don't' hesitate to respond.

http://www.instantasp.co.uk/images/line.gif
Kindest Regards,

Ryan Healey



ryan@instantasp.co.uk
www.instantasp.co.uk
Blog | Community | Docs

http://www.instantasp.co.uk/core/assets/images/email/facebook.png http://www.instantasp.co.uk/core/assets/images/email/twitter.png http://www.instantasp.co.uk/core/assets/images/email/google.png http://www.instantasp.co.uk/core/assets/images/email/linkedin.png
GO

Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....







InstantASP Forums


Search