Error for custom dataContextType

Last post 12-20-2007 8:33 PM by davidebb. 3 replies.

Sort Posts:

  • Error for custom dataContextType

    12-20-2007, 4:54 PM
    • Member
      14 point Member
    • kemaltolga
    • Member since 05-10-2007, 12:30 AM
    • Santa Fe, NM
    • Posts 87
    <dynamicData dataContextType="Lib08.WATGDataContext" enableTemplates="true">

    <mappings queryStringKeyPrefix="" pattern="~/{table}/{viewName}.aspx">

    <add actions="list,details" viewName="ListDetails" templateFile="ListDetailsTemplate.aspx"/>

    <!--

    <add actions="list" viewName="List" templateFile="ListTemplate.aspx" />

    <add actions="details" viewName="Details" templateFile="DetailsTemplate.aspx" />

    -->

    <!--

    Special overriding cases

    <add actions="list,details" tables="Products,Categories" viewName="SpecialName" templateFile="ListTemplate.aspx"/>

    <add actions="list" tables="Products" templateFile="DetailsTemplate.aspx" path="~/customPath.aspx"/>

    <add actions="list" tables="Orders" viewName="MyListViewName"/>

    -->

    </mappings>

    </dynamicData>

    The above generates the following error...

    The current configuration system does not support user-scoped settings

     

    Application Developer
    tkoseoglu@live.com
  • Re: Error for custom dataContextType

    12-20-2007, 5:14 PM
    • Contributor
      5,791 point Contributor
    • davidebb
    • Member since 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 1,161
    • AspNetTeam

    Strange, I don't know where this error comes from.  Are you saying that this error only happens when you have a non-empty dataContextType?  i.e. if you set dataContextType="" and leave everything else the same, does it happen?

  • Re: Error for custom dataContextType

    12-20-2007, 8:27 PM
    • Member
      14 point Member
    • kemaltolga
    • Member since 05-10-2007, 12:30 AM
    • Santa Fe, NM
    • Posts 87

    I do...I don't have a "datacontext" in the actual website, but the website "sees" all the differnet datacontext types created in the class library. So, I left the "datacontexttype" empyt and I got an error, saying that multiple datacontext types were "seen" and as I understand, the "dynamic data website" templete only likes one at a time. So, I specify exactly which one to use and it still fails with the error messge described above...

     thanks

    --tolga

    Application Developer
    tkoseoglu@live.com
  • Re: Error for custom dataContextType

    12-20-2007, 8:33 PM
    • Contributor
      5,791 point Contributor
    • davidebb
    • Member since 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 1,161
    • AspNetTeam

    When you get that 'user-scoped' error, is it pointing to a specific line in the config file?  Also, if you choose View / Source in the browser, can you see if there is a stack trace in the HTML?  If so, please include it as it may contain clues.

    thanks!
    David

Page 1 of 1 (4 items)