问题描述
在web.config中增加了profile配置节,但是程序运行报错,提示无法识别的配置节,在配置文件中要使用profile配置节有什么条件吗?求各位给你指点一下啊
解决方案
解决方案二:
<?xmlversion="1.0"?><configuration><!--CommonASP.NETconfiguration--><appSettings/><connectionStrings><addname="SQLProfileConnString"connectionString="DataSource=./SQLEXPRESS;AttachDbFilename=c:/t/AjaxProWebSite1/App_Data/ASPNETDB.mdf;IntegratedSecurity=True;UserInstance=True"/></connectionStrings><system.web><pages><controls><addnamespace="Microsoft.Web.UI"assembly="Microsoft.Web.Atlas"tagPrefix="atlas"/><addnamespace="Microsoft.Web.UI.Controls"assembly="Microsoft.Web.Atlas"tagPrefix="atlas"/></controls></pages><anonymousIdentificationenabled="true"/><roleManagerenabled="true"/><compilationdebug="true"><assemblies><addassembly="System.Design,Version=2.0.0.0,Culture=neutral,PublicKeyToken=B03F5F7F11D50A3A"/><addassembly="System.Windows.Forms,Version=2.0.0.0,Culture=neutral,PublicKeyToken=B77A5C561934E089"/></assemblies></compilation><authenticationmode="Forms"/><!--ProfileB--><profileautomaticSaveEnabled="true"defaultProvider="MyProfileProvide"><providers><addname="MyProfileProvide"connectionStringName="SQLProfileConnString"type="System.Web.Profile.SqlProfileProvider"/></providers><properties><addname="MyRec"type="MyDemo.MyRecs"allowAnonymous="true"provider="MyProfileProvide"/></properties></profile><!--ProfileE--><!--MembershipProviderforSqlServer--><!--MemberShipB--><membershipdefaultProvider="SQLMembershipProvider"><providers><addname="SQLMembershipProvider"type="System.Web.Security.SqlMembershipProvider"connectionStringName="SQLProfileConnString"enablePasswordRetrieval="false"enablePasswordReset="true"requiresQuestionAndAnswer="false"requiresUniqueEmail="false"passwordFormat="Hashed"/></providers></membership><!--MemberShipE--></system.web><!--HandlerconfigurationforAjax.NETProfessional--><locationpath="ajaxpro"><system.web><httpHandlers><addverb="*"path="*.ashx"type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/></httpHandlers></system.web></location></configuration>
解决方案三:
楼上的这是什么意思啊