BusinessObjectName property not populating


Author
Message
Charles Thomas Blankenship...
Charles Thomas Blankenship
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K

Darn it … I had everything ready to roll … very familiar with web development with SF … BUT … after I converted to 4.5.2 (and I do not know if that is the problem or not) the SF control on the ASPX page does not enumerate with a list of Business Objects defined on the ApplicationBasePage.  So, I typed the information by hand (knowing it wouldn’t work) and received this message:

The given key was not presentin the directory with the stack trace pointing to the binding data to the web control in question, txtFirstName

The control is run of the mill SF textbox

<SFWeb:TextBox ID="txtFirstName" runat="server">

The application base page contains the appropriate business object definitions:

public ContactRegionsoContactRegions = new ContactRegions();

public SFSUsersBO oUsers = new SFSUsersBO();

public SFSPermissionsBOoPermissions = new SFSPermissionsBO();

public SFSRolesBO oRoles = new SFSRolesBO();

public SFSProjectsBOoSecurityProjects = new SFSProjectsBO();

public SFSPreferencesBOoPreferences = new SFSPreferencesBO();

public SFSRestrictionsBOoRestrictions = new SFSRestrictionsBO();

public SFSRestrictionItemsBOoRestrictionItems = new SFSRestrictionItemsBO();

public SFSUsersXRolesBOoUsersXRoles = new SFSUsersXRolesBO();

public SFSUsersXPermissionsBOoUsersXPermissions = new SFSUsersXPermissionsBO();

public PasswordResetoPasswordReset = new PasswordReset();

public SystemUsers oSystemUsers = new SystemUsers();

public EmailTemplatesoEmailTemplates = new EmailTemplates();

public EmailEngine oEmailEngine = new EmailEngine();

public CompanyConfigoCompanyConfig= new CompanyConfig();

public Lead oLead = new Lead();

public Addresses oAddresses = new Addresses();

As well as the proper ITypeResolver code referenced on the forum.

 I know I have to be missing something stupid but is was seven years ago or more since I created a rather intricate SF Web Form application.  I assume that all of the business objects defined in the ApplicationBasePage is the source of the BusinessObjectName property?

     #region [ ITypeResolver Implementation ]

 

    /// <summary>

    /// Must be used by the StrataFrame Application Framework to resolve a

    /// type within this ASP.NET project due to the fact that the Entry Assembly

    /// cannot be evaluated in an ASP.NET application.

    /// </summary>

    /// <param name="TypeName"></param>

    /// <returns></returns>

    /// <remarks></remarks>

    public System.Type ResolveType(string TypeName)

    {

        //-- Return the gettype for the given TypeName

        return System.Type.GetType(TypeName, false, true);

    }

 

    /// <summary>

    /// Required by the base class to allow the StrataFrame Application Framework

    /// to access the assemblies referenced by this project.

    /// </summary>

    /// <returns></returns>

    /// <remarks></remarks>

    public CompilationSection GetCompilationSection()

    {return (CompilationSection)WebConfigurationManager.GetSection("system.web/compilation");}

    #endregion



Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Edited 9 Years Ago by Charles Thomas Blankenship
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search