Hi,
I have tried to solve the problem using createrole and addrole but it is ot working in 4.x... i dont know why.
So, i have tried to insert direct to database.. and it is working..
cmd.CommandText = "INSERT INTO Roles (PortalID, RoleName, Description,IsPublic, AutoAssignment,BillingFrequency,BillingPeriod,TrialFrequency,TrialPeriod) VALUES (" + Me.PortalId.ToString + ",'" + ri.RoleName + "', '" + ri.Description.ToString + "', 0,0,'N',1,'N',1)"
connection1.Open()
cmd.ExecuteNonQuery()
----Thanks
Mohsin