ASP.net 2.0 provides a Web Site administration tool for configuring security and application settings, especially for user authentication and authorization management. But Microsoft's official documentation explains that this management tool can only be invoked in the development environment of Visual Studio (Visual Web Developer).
Imagine if the use of ASP.net user and role management, to the customer when the configuration system, if the database all empty, and the server can not install the development environment, I am afraid that even write two pages to create the initial user and role. A few days ago I met this embarrassing thing, had to use a database copy make up.
After coming back after a search, finally found a solution.
In fact, the. NET Framework 2.0 has been installed, and the file for this management tool has been installed in one piece, right in the c:/windows/microsoft.net/framework/v2.0.50727/asp.netwebadminfiles/. Create a virtual directory for him in IIS, such as WebAdmin, and remember to set the ASP.net version to 2.0.xxxx in the properties of the virtual directory.
Then it can be called like this URL:
http://localhost/webadmin/default.aspx?applicationphysicalpath=d:/work/ezlearning/ezlearning/& Applicationurl=/ezlearning
Applicationplysicalpath is the physical location of the application to be set, and Applicaionurl is the virtual directory.