I have an ASP.NET Web. I am trying to add a section to use the default profile provider in the config file. Here I am adding to the web.config in the system. Web node:
& lt; Profile Default Provider = "aspNetSqlProfileProvider" & gt; & Lt; Providers & gt; & Lt; Clear /> & Lt; Add name = "aspNetSqlProfileProvider" type = "System.Web.Profile.SqlProfileProvider, System.Web, version = 2.0.0.0, culture = neutral, public keychain = b03f5f7f11d50a3a" connectionStringName = "ApplicationServices" applicationName = "/" /> & Lt; / Providers & gt; & Lt; Properties & gt; & Lt; Group name = "User information" & gt; & Lt; Add name = "firstname" /> & Lt; Add name = "last name" /> & Lt; Add name = "birthday" type = "System.DateTime" /> & Lt; / Groups & gt; & Lt; / Properties & gt; & Lt; / Profile & gt;
I can successfully create a website, but once it's done I get a prompt that the web Config has been changed outside of the editor and I want to reload it. I'll click Yes, and the profile section disappears in the Web.config file, everything else is fine and is working correctly.
Where is the idea of troubleshooting this issue? Thanks!
It seems that you are editing the output config file in the root of the web site and that Build is overwritten with an unified configuration organized in ASP.NET project.
Comments
Post a Comment