Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Value cannot be null. Parameter name: TypeName
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Value cannot be null. Parameter name: TypeName Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Mar 08 7:39 PM
Has anyone seen this error after creating a new entity page/smart part, building, deploying then opening the new page in the SLX Customer Portal:
Value cannot be null. Parameter name: TypeName

It seems to be failing in the onload of the .aspx page when debugging, but stalls on the SLX login page. The new page must be navigated to from a link..

The page/smart part is based on a custom entity - extension off ticket. The page and smart part are based on the Ticket Entity. The failing smart part just has a few fields from the ticket extension - real basic.

There is a little more to this story, let me summarize that I deleted the smartpart and page at one point and started over. I moved the first smart part to VS and got the same error. I then went back and deleted everything, did a ctrl Build web platform, shut down the AA and started over. The second try I never moved the smartpart out of AA but am getting the same error..
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Value cannot be null. Parameter name: TypeName Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Mar 08 3:26 PM
Solved! sort of.. I had created my new aspx page by right clicking and choosing 'entity page'. I tried the New Form Wizard and all is well. Not sure what I missed - not much to miss in the creation process. This is on record with SLX tech support.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Value cannot be null. Parameter name: TypeName Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 4:05 AM
Steve - thanks for posting the resolution - just solved it for me also!
[Reply][Quote]
Brian Mooy
Posts: 25
 
Re: Value cannot be null. Parameter name: TypeName Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 May 08 8:51 AM
I ran into this problem over the weekend on a custom page I was working on.

If your custom page was of type Sage.Platform.WebPortal.EntityPage, you need to make sure this code was implemented in your .aspx.cs file in your deployed folder, in the OnPreInit function.

//Apply Page Properties
PropertyConfigurationCollection pageProperties = new PropertyConfigurationCollection();
pageProperties.Add("EntityTypeName", "Sage.Entity.Interfaces.IAccount,Sage.Entity.Interfaces", "");
pageProperties.ApplyProperties(this);

Obv. the second parameter to pageProperties.Add changes depending on your Entity Type. I snagged the code out of account.aspx.cs.

Hope this helps someone in the future.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Value cannot be null. Parameter name: TypeName Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 May 08 11:34 AM
You can set this is the AA without modifying the generated page (which is the way it is intended to be done anyway). For an entity page, you have to tell it which entity the page is for so it has context. You can do this by doing the following:

  1. Open the page in AA
  2. Go to the Advanced tab, you'll see the base Page Type is "Sage.Platform.WebPortal.EntityPage, Sage.Platform.WebPortal"
  3. Click the "Configure Base" button
  4. In the dialog that opens, locate the "Entity Type" property, and use the drop-down to select the *interface* for your entity. The result for the property will look like this "Sage.Entity.Interfaces.IAccount,Sage.Entity.Interfaces"


Make sense? Setting this property in the AA is what causes that code to be generated for the page.

-Ryan
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/22/2025 11:15:57 PM