Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to store profile properties in XML file but i am facing Error "Could not load type 'System.Web.Profile.XmlProfileProvider'." and tell me the provider name for this

In Web.Config

XML
<providers>
</clear>
<add name="XmlProfileProvider"; type="System.Web.Profile.XmlProfileProvider"
                     applicationName="/" fileName="Profiles.xml" folder"~/App_Data/"/>
<providers>
<properties>
   
   <add name="Code" allowanonymous="true">
   <add name="Name" allowanonymous="true">
</properties>

C# code
C#
HttpContext.Current.Profile.SetPropertyValue("Code","0001");
Posted
v5

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900