I'm not sure why it's not saving. It could be a permissions issue as you need write permissions on both the folder and file. Those permissions will depend upon the version of ASP.NET and IIS and how they are configured. For IIS6 you'll be running under the
[NETWORK SERVICE] account, so that's the account that needs write permissions; for IIS7 (Windows 7 & Server 2008) it'll depend upon the application pool: see http://learn.iis.net/page.aspx/624/application-pool-identities/.
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: access sub elements of membership provider
Feb 29, 2012 07:58 AM|LINK
It could be a casing issue. Make sure that the attribute name in the code matches exactly with the one in web.config.
sophia_asp
Member
521 Points
470 Posts
Re: access sub elements of membership provider
Feb 29, 2012 08:05 AM|LINK
yes it was, and when you were answering , in the mean time I was updating my previous post.
Kindly take a look at my previous post..
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: access sub elements of membership provider
Feb 29, 2012 08:24 AM|LINK
I'm not sure why it's not saving. It could be a permissions issue as you need write permissions on both the folder and file. Those permissions will depend upon the version of ASP.NET and IIS and how they are configured. For IIS6 you'll be running under the [NETWORK SERVICE] account, so that's the account that needs write permissions; for IIS7 (Windows 7 & Server 2008) it'll depend upon the application pool: see http://learn.iis.net/page.aspx/624/application-pool-identities/.
sophia_asp
Member
521 Points
470 Posts
Re: access sub elements of membership provider
Feb 29, 2012 08:37 AM|LINK
Hi, if it is permission issue, then why it is not giving any error at runtime while executing code?
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: access sub elements of membership provider
Feb 29, 2012 08:43 AM|LINK
I don't know why it's not giving an error. I'm just trying to give reasons why it might not be saving.