Roles and Permissions

Discussion in 'ASP.NET / ASP.NET Core' started by Greek, Jan 18, 2010.

  1. The access rules for folders on my website work on my local machine, but not on the remote server. These rules are in web.config files in each folder. An example would be:

    <system.web>
    <authorization>
    <allow roles="Webmaster"/>
    <deny users="*"/>
    </authorization>
    </system.web>.

    A user, on logging in, is successfully directed to the default page in the folder for his/her role, but the page does not open. Instead, Error 26 (about the server not being found), is displayed. This problem does not arise if the access prohibitions are removed.

    If anyone can help me figure out what is going wrong, I would greatly appreciate it.

    Thank you for your trouble.

    Greek
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    your connection string is probably pointing to a SQL express server.
     
  3. I changed the database schema ownership to the user in my connectionstring and things began to work.

    I went to my database and into the schemas folder in SQL Server Mgmt Studio, then made the default discountasp.net user, which I use in my connectionstring, the owner. Apparently all you need to change is the db_owner schema, but I changed them all.
     

Share This Page