我在web.config里设置了
    <anonymousIdentification  enabled="true" />
    <profile>
      <properties>
        <add name="ShoppingCart" type="ShoppingCart" serializeAs="Binary"/>
        <add name="Name" allowAnonymous="true"/>
        <add name="LastSubmit" type="System.DateTime" allowAnonymous="true" />
        <group name="Address">
          <add name="City" allowAnonymous="true"/>
          <add name="PostalCode" allowAnonymous="true"/>
        </group>
      </properties>
    </profile>然后在做购物车时用到了这个,但执行时出现如下提示:
用户代码未处理 System.Configuration.ConfigurationErrorsException
  Message="未找到配置文件默认提供程序。 (e:\\My Documents\\Visual Studio 2005\\WebSites\\test\\web.config line 60)"
  Source="System.Web"
  BareMessage="未找到配置文件默认提供程序。"
  Filename="e:\\My Documents\\Visual Studio 2005\\WebSites\\test\\web.config"
  Line=60
  StackTrace:
       在 System.Web.Profile.ProfileBase.InitializeStatic()
       在 System.Web.Profile.ProfileBase.Create(String username, Boolean isAuthenticated)
       在 System.Web.HttpContext.get_Profile()
       在 test.get_Profile() 位置 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test\10329824\7cae53a\App_Web_avptx2ak.4.cs:行号 0
       在 test.BindShoppingCart() 位置 e:\My Documents\Visual Studio 2005\WebSites\test\test.aspx.cs:行号 31
       在 test.Page_Load(Object sender, EventArgs e) 位置 e:\My Documents\Visual Studio 2005\WebSites\test\test.aspx.cs:行号 18
       在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       在 System.Web.UI.Control.OnLoad(EventArgs e)
       在 System.Web.UI.Control.LoadRecursive()
       在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)怎么办?