Working on a tutorial and cannot find the Web Site Administration Tool.

AlphaCr8tive 1 Reputation point
2022-06-29T01:41:15.137+00:00

Hello,

I am working on a login tutorial and cannot find the Web Site Administration Tool to use to configure asp.net. Here is a link to the tutorial:

https://learn.microsoft.com/en-us/previous-versions/aspnet/yh26yfzy(v=vs.100)

I vaguely remember in visual studio 2008 there was a Web Site Administration Tool that you could use to configure your website. Cannot find it in VS 2022.

I look forward to hearing from you. Thank you.

Best Regards

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,540 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Albert Kallal 5,331 Reputation points
    2023-09-03T13:30:02.1866667+00:00

    To manage users? Well, often one just creates a simple edit screen.

    And in some cases, I wanted to add me as some "super user", then I just go edit the "user in roles" table directly from SQL studio.

    As noted, you can build a page easy in less then 1 hour of your time. It really depends on what you need. You should see some tables like this:

    User's image

    Now, in above, the contact name table is not standard. However, the other 4 tables are what was in those days created by the "tool" when creating such sites. So, you find those above tables in the database.

    As for changing the connection?

    You should find in web config both the "application" conneciton string (what database to use for the applicaiton). You should also find a conneciton string for the authentication (logons).

    It looks like this:

       <add name="FBAConnectionString" 
             connectionString="server=.\SQLEXPRESS;Initial Catalog=AxisMIS;Persist Security Info=True;User ID=xxxxxx;Password=xxxxx;APP=WebPortal;WSID=WebPortal" providerName="System.Data.SqlClient"
             />
     
    

    So, it could be called anything, but you find above in the conneciton strings area.

    Then further down, the above "name" will be used to tell the web site WHERE and what database to use for logons.

    It will be like this:

        <membership defaultProvider="MySqlprovider">
          <providers>
            <clear/>
            <add name="MySqlProvider" type="ajaxsetuptest1.MySqlprovider" connectionStringName="FBAConnectionString" enablePasswordRetrieval="true" enablePasswordReset="true" minRequiredPasswordLength="3" writeExceptionsToEventLog="false"/>
          </providers>
        </membership>
        <roleManager enabled="true" defaultProvider="MyRoleProvider">
          <providers>
            <clear/>
            <add connectionStringName="FBAConnectionString" name="MyRoleProvider" type="ajaxsetuptest1.MyRoleProvider"/>
          </providers>
        </roleManager>
    
    

    So, both role, and membership provider should point to and use that connection string you defined.

    Of course at publish time, you no doubt find the correct "production" strings in web.release.config. In most case, web.release.config will have "transforms" that overwrite (change) the test/debug strings you likely have in web.config for development.

    1 person found this answer helpful.

  2. Bruce (SqlWork.com) 68,236 Reputation points
    2023-10-01T16:57:07.2133333+00:00

    If you still have the installer in your framework folder, you manually install the site. See

    https://stackoverflow.com/questions/32194465/where-is-web-site-administration-on-visual-studio-2015

    1 person found this answer helpful.

  3. Lan Huang-MSFT 29,916 Reputation points Microsoft Vendor
    2022-06-29T06:36:57.707+00:00

    Hi @AlphaCr8tive ,
    This document is currently out of date and the Site Administration Tool has been removed.
    https://developercommunity.visualstudio.com/t/cannot-find-aspnet-configuration-button-in-visual/335394
    https://learn.microsoft.com/en-us/previous-versions/aspnet/yy40ytx0(v=vs.100)

    Maybe you can look at ASP.NET Identity instead, which outlines the old ASP.NET membership and the new ASP.NET identity.
    Identity should be easier to integrate into your application.
    https://learn.microsoft.com/en-us/aspnet/identity/overview
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. xprogrammerx 20 Reputation points
    2023-09-01T09:44:58.25+00:00

    Hello everyone,

    I am having the same issue here.

    I was wandering what we can do about old projects using the Membership API , i myself will update to Identity but

    still sometimes we are stuck with old projects.

    So as of now , what is the proper way to manage the aspnet database created by the aspnet_regsql.exe command line tool?

    Another important question i have is how to change the connection string for the WSAT so that it points to my production database ,

    i can't seem to identify the connection string in the web.config, so all other tabs works fine but the security Tab does not work.

    Thank you for your help.

    0 comments No comments

  5. xprogrammerx 20 Reputation points
    2023-10-05T15:36:33.0566667+00:00

    Finally , i decided to not work with WSAT , i will just use the Membership and Role Manager API to create web pages to manage my security database, i will have to create a registration page anyway for users , and after a while i can create my own WSAT .

    I got some informations and now i understand how the aspnet security database is structured.

    Your help was much appreciated though, thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.