locked
Error when trying to create case RRS feed

  • Question

  • Hi

    We get the following error when trying to create a case from the portal, any ideas on that ?

    Server Error in '/' Application.


    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.NullReferenceException: Object reference not set to an instance of an object.

    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:

    [NullReferenceException: Object reference not set to an instance of an object.]
      Site.Pages.eService.CreateCase.CreateButton_Click(Object sender, EventArgs e) in C:\CRM\CustomerPortal\CustomerPortal\Web\Pages\eService\CreateCase.aspx.cs:28
      System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3690
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    Object reference not set to an instance of an object.

     


    CRM Master
    Wednesday, March 16, 2011 7:58 PM

Answers

  • Hi Jack,

    You need to have the *WEB* keyword in the service title or description for it to show up on the portal.

    - Palak

    • Proposed as answer by Jim Glass Jr Monday, March 28, 2011 7:52 PM
    • Marked as answer by Jack DS Monday, March 28, 2011 8:54 PM
    Thursday, March 17, 2011 8:55 PM

All replies

  • Hi

    I found a solution for this one, better error messages would be great :)

    It was the case default subject and priority that was in english and it had to be translated to danish, now that part works :)

    I have created a couple of services but they don't show up on the portal, is there anything special on this ?

    /Jack


    CRM Master
    Thursday, March 17, 2011 8:02 AM
  • Hi Jack,

    You need to have the *WEB* keyword in the service title or description for it to show up on the portal.

    - Palak

    • Proposed as answer by Jim Glass Jr Monday, March 28, 2011 7:52 PM
    • Marked as answer by Jack DS Monday, March 28, 2011 8:54 PM
    Thursday, March 17, 2011 8:55 PM
  • Can you please explain how you achieved -> "It was the case default subject and priority that was in english and it had to be translated to danish, now that part works :)"? Thanks in advance.
    Wednesday, April 20, 2011 3:19 PM
  • The portal solution will add a custom entity called Site Settings.  This is a generic holder for various settings that can be set in CRM without requiring code changes to the portal.  There are a few of these settings that are related to case management, and they all start with 'case/' in the site setting name.  These values are in english (they have been imported with the websitecopy utility from an English xml file), and obviously they won't match your non-english install.  I believe the case priotity and default subjects are the two settings that will cause you a little grief in a non-english installation.

    And yes, I agree that we should improve the code to test that we found the site setting, and that it matches a value and throw an appropriate exception if it doesn't.  It is something we can put on the bug list.


    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    Friday, April 22, 2011 1:52 AM
    Moderator