Here is my web service:
The problem I am having is that I want to be able to make the Role attribute (Role:="MyDomain\Domain Users") changable when installed on the client machine. I wanted to do this with the web.config file if possible. Of course, it says it needs a constant in order to work. The problem with that is I want dynamic. We have been fighting back and forth, and the web service is winning.Code:<WebMethod(), PrincipalPermissionAttribute(SecurityAction.Demand, Authenticated:=True, Role:="MyDomain\Domain Users")> _ Public Function GetData(ByVal strTableName As String, ByVal blnCustom As Boolean) As DataSet '********************************************************************************** 'Gets the data for the given table name '********************************************************************************** GetData = DBGetData(strTableName, blnCustom) End FunctionHow do I change this instead of having to recompile?




How do I change this instead of having to recompile?
Reply With Quote