Here are the steps:
- In the server where you have VS 2005 installed, from VS create a new simple web site which you want to Administer. It can be a simple web site, the main idea is that we want to use WSAT to create user in the production server.
- I am using File System to create the website and have called it CreateSQLUsers . ( Location : C:\Inetpub\wwwroot\CreateSQLUsers )
- Click on the ASP.NET Configuration button in your Solution Explorer’s toolbox or Website menu. We will need the URL soon (in my case, it is… http://localhost:1347/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=C:\Inetpub\wwwroot\CreateSQLUsers\&applicationUrl=/CreateSQLUsers)
- Copy the contents of created web site to a folder in production server. ( I used the same path both in development and production server as C:\Inetpub\wwwroot\CreateSQLUser )
- Now, go to your production server, Open IIS console.
- Right Click on Web Sites -> New -> Web Site . Create a new web site and point it to the location where your website files is copied. ( C:\Inetpub\wwwroot\CreateSQLUser ) in my case site name is : SimpleSite on port : 200
- Right-Click on your Web Site and New -> Virtual Directory, Click on Next, give an Alias (WebSiteAdmin) and click Next In the Directory text box browse to… “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles” and click Next, Next and Finish.
- Right-click on WebSiteAdmin and hit properties, Click on the “ASP.NET” Tab and check ASP.NET Version as 2.0.50727 and click Ok.
- Right-Click on WebSiteAdmin and hit properties. In the “Virtual Directory” Tab if in the “Application name” section there’s no application, Click Create.
- Open an instance of Internet Explorer and in the Address Bar Paste the URL from the development environment… and do some changes like this http://SimpleSite:200/WebSiteAdmin/default.aspx?applicationPhysicalPath=C:\Inetpub\wwwroot\CreateSQLUsers\&applicationUrl=/CreateSQLUsers
- You should be able to see ASP.NET Web Site Administration Tool (You can bookmark this so that you don’t have to remember that string)
As you can see, we have changed the site name and port number and changed asp.netwebadminfiles to our application WebSiteAdmin.