יום רביעי 16 מרץ 2011 19:58
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.
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.
[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.
יום חמישי 17 מרץ 2011 08:02
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 ?
יום חמישי 17 מרץ 2011 20:55בעלים
You need to have the *WEB* keyword in the service title or description for it to show up on the portal.
יום רביעי 20 אפריל 2011 15:19Can 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.
יום שישי 22 אפריל 2011 01:52מנחה דיון
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