利用profile实现匿名购物的功能:整个测试的DEMO在网站的形式下能测试成功,但是在web应用程序中,就测试不成功,在web应用程序中写了一个ProfileCommon类继承System.Web.Profile.ProfileBase,还是不成功,
  
报错Profile配置文件有问题:system.configuration.configurationErrorsException{"调用的目标发生了异常
<profile defaultProvider="ShoppingCartProvider" automaticSaveEnabled="false" enabled="true">
<providers>
<clear/>
报错的地方:<add name="ShoppingCartProvider" connectionStringName="SQLProfileConnString" applicationName="/" type="DTJ.Profile.FS_ShopProfileProvider"/>
<add name="WishListProvider" connectionStringName="SQLProfileConnString" applicationName="/" type="DTJ.Profile.FS_ShopProfileProvider"/>
</providers>
<properties>
<!--<add name="A" allowAnonymous="true" type="System.Int32"/>
            <add name="B" allowAnonymous="true"/>-->
<add name="ShoppingCart" type="DTJ.BLL.Cart" allowAnonymous="true" provider="ShoppingCartProvider"/>
<add name="WishList" type="DTJ.BLL.Cart" allowAnonymous="true" provider="WishListProvider"/>
</properties>
</profile>请高手指点