Issues with EPiServer Profile properties in web.config

481 views Asked by At

I'm trying to add a Profile Property inside my web.config, which I want to be a List containing PageData.

EDIT : this is how it looks in web.config where the properties are declared:

<profile defaultProvider="DefaultProfileProvider">
  <properties>
    <add name="Address" type="System.String" />
    <add name="ZipCode" type="System.String" />
    <add name="Locality" type="System.String" />
    <add name="Email" type="System.String" />
    <add name="FirstName" type="System.String" />
    <add name="LastName" type="System.String" />
    <add name="Language" type="System.String" />
    <add name="Country" type="System.String" />
    <add name="Company" type="System.String" />
    <add name="Title" type="System.String" />
    <add name="CustomExplorerTreePanel" type="System.String" />
    <add name="FileManagerFavourites" type="System.Collections.Generic.List`1[System.String]" />
    <add name="EditTreeSettings" type="EPiServer.Personalization.GuiSettings, EPiServer" />
    <add name="ClientToolsActivationKey" type="System.String" />
    <add name="FrameworkName" type="System.String" />
    <add name="ShortcutData" type="System.Collections.Generic.List`1[EPiServer.Core.PageData]" />
  </properties>
  <providers>
    <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="EPiServerDB" applicationName="/" />
  </providers>
</profile>

As you can see I can have a List here without any problems, but I cannot use the PageData I want because it cannot be found.

This gets an error that says EPiServer.Core.PageData cannot be found, I'm not sure how this works in the web.config, but I tried adding it like this as well:

<add name="ShortcutData" type="System.Collections.Generic.List`1[EPiServer.Core.PageData]", EPiServer />

Where I thought "EPiServer" was the namespace/assembly/something that it would search through, but it couldn't find EPiServer and changed it automatically to something like this (not exactly though):

<add name="ShortcutData" type="System.Collections.Generic.List`1[EPiServer.Core.PageData]", mscorlib, name="System.Collections.Generic" publicKeyToken="407dd0808d44fbdc" culture="neutral" />

I don't even know if what I'm trying to achieve is possible, but if you know how to fix it, or do something similar I would greatly appreciate it! :) Also, I would really like to know what exactly the following "EpiServer" field does, is it the assembly as I thought?

Regards deSex

0

There are 0 answers