Error during Publishing Web Site

G

Guest

Guys,

I'm using VS 2005 to develop this Web Application and have made use of Form
authentication of ASP.Net Membership/Role module.

My application is running fine in development mode, but in certain time I'll
get following errors during compilation:
'RemoveUserFromRole' is not a member of 'Roles'.
'AddUserToRole' is not a member of 'Roles'.
'GetRolesForUser' is not a member of 'Roles'.

And when I try to Publish the Website, it will throw above errors and unable
to publish. But when I manually copy the code to local IIS Virtual Directory,
it runs without any error. What is the problem here?

This is my sample code:
CType(Me.LoginView1.FindControl("ListBox1"), ListBox).DataSource
= Roles.GetRolesForUser(User.Identity.Name)
Me.LoginView1.FindControl("ListBox1").DataBind()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top