After understanding the functions and development purposes of Doking's BLOG, the next step is to build a good development environment.
Before starting to develop Doking's BLOG, the development environment should be constructed first. The following describes the construction method in the Windows 2000/XP operating system.
2.1.1 Install IIS server
Press [Start] → [Control Panel] → [Install/Remove Windows Components], and check "Install Internet Information Services Components", as shown in Figure 2-1.
Figure 2-1 windows component wizard dialog box
2.1.2 On the IIS server, give Doking's BLOG a new home
(1) First create a new directory "dkblog" under D:, open [Control Panel] → [Management Tools] → [ Internet Service Manager], open the [Internet Information Services] dialog box, as shown in Figure 2-2.
Figure 2-2 Internet Information Service Dialog Box
(2) Right-click "Default Web Site", select Properties, open the [Default Web Site Properties] dialog box, in the dialog box, click the [Home Directory] tab, and change the local The path points to "D:dkblog", select "Scripts and executable programs" from the "Execution permission (P):" drop-down menu, and the result is as shown in Figure 2-3.
Figure 2-3 Site Properties Dialog Box
(3) Now, the computer can finally provide WWW services like network services. The default URL is: localhost or the computer’s IP address (eg: 127.0.0.1).
Reminder: Don’t underestimate the management of Internet servers. If you can properly allocate IP addresses and site virtual directories, your computer can truly become a network server, and users on the network can browse websites and databases on your computer.
2.1.3 Install .NET Framework
You can download .NET Framework 2.0 and the corresponding version of the SDK toolkit from Microsoft's website, or you can download and install it from the following website:
.NET Framework Version 2.0 Redistributable Package Beta 1 (x86) – 24M
http://go.microsoft.com/fwlink/?linkid=30093&clcid=0x409
.NET Framework 2.0 SDK Beta 1 x86 – 229M
http://www.microsoft.com/downloads/details.aspx?familyid=916EC067-8BDC-4737-9430-6CEC9667655C&displaylang=enOpen
IE browser, type "localhost/text.aspx" on the address bar, assuming text. The aspx document does not exist now, so the IE browser will definitely return an error message. If the error message shown in Figure 2-4 appears, it means that the running environment of my ASP.NET is basically completed.
Figure 2-4 File not found error message
2.1.4 Building the ASP.NET operating environment in the Windows 2003 operating system
The above describes the steps and methods for building the ASP.NET operating environment in the Windows 2000/XP operating system. There are two main methods to build the ASP.NET operating environment in the Windows 2003 operating system:
1. Use the [Configure Your Server Wizard] to install IIS 6.0 and ASP.NET
(1) From the [Start] menu, click "Manage Your Server".
(2) Under "Manage your server roles", click [Add or Remove Roles].
(3) Read the preliminary steps in the "Configure Your Server Wizard" and click "Next".
(4) Under "Server Roles", click "Application Server (IIS, ASP.NET)", and then click "Next".
(5) In the [Application Server Options] dialog box, select the "Enable ASP.NET" check box, click "Next", and then click "Next" again.
(6) Read the summary information and click "Next".
(7) Click "Finish".
2. Use [Control Panel] to install IIS 6.0 and ASP.NET
(1) From the [Start] menu, click [Control Panel].
(2) Double-click [Add or Remove Programs].
(3) Click [Add/Remove Windows Components].
(4) In the "Components" list box, click "Application Server".
(5) Click "Details".
(6) Click "Internet Information Services Manager".
(7) Click "Details" to view the list of IIS optional components.
(8) Select all optional components to install.
(9) Click "OK" until you return to the [Windows Components Wizard].
(10) Click "Next" and then complete the [Windows Components Wizard].
In addition, you can directly enable ASP.NET in the IIS Manager in the server running Windows 2003. The specific steps are as follows:
(1) From the [Start] menu, click "Run".
(2) In the [Open] box of the [Run] dialog box, type inetmgr, and then click "OK".
(3) In IIS Manager, expand Local Computer and click "Web Service Extension".
(4) In the right window, right-click "ASP.NET" and click "Allow". The status of ASP.NET changes to "Allow".
After building the ASP.NET operating environment, you can start to develop Doking's BLOG site. First, Doking's BLOG site must be established in Dreamweaver MX.
2.2.1 Establish Doking's BLOG site
(1) Start Dreamweaver MX 2004, switch to the [File] panel, click "Manage Site", and click the button "New", as shown in Figure 2-5.
Figure 2-5 Manage site dialog box
(2) In the drop-down menu, select "Site (S)", and in the pop-up dialog box, enter the site name "dkblog", the result is shown in Figure 2-6.
Figure 2-6 Define the site name
(3) Click "Next", select "Yes, I want to use server technology. (Y)", and in the "Which server technology? (W)" drop-down menu, select "ASP .NET VB", the result is shown in Figure 2-7.
Figure 2-7 Determine the server technology
(4) Click "Next", select "Edit and test locally (my test server is this computer) (E)", and point the file storage to "D:dkblog" , as shown in Figure 2-8.
(5) Click "Next", enter the URL address "http://localhost/", and click the button "Test URL (I)". If the test is successful, the dialog box shown in Figure 2-9 will be displayed.
Figure 2-8 Specify the directory location of the website
Figure 2-9 Test dialog box
(6) Click "Next", then click "Next", and click the button "Finish" to complete the establishment of the site.
2.2.2 Deploy Doking's BLOG site
(1) Let's first look at the layout of Doking's BLOG website. The root directory stores .aspx and .htm files; the bin directory is used to deploy the DreamweaverCtrls.dll control; the dat directory is used to store the database; the images directory is used to store Related image files. Open the file panel and create new directories bin, directory dat, and directory images under "Site—dkblog". The results are shown in Figure 2-10.
(2) In the [File] menu, select [New], in the [New Dialog], select the category as "Dynamic Page", select the dynamic page as "ASP.NET VB", and press the "Create" button to create the first a dynamic web page. Switch to the [Application] panel and select the [Binding] tab, as shown in Figure 2-11.
Figure 2-10 Site layout Figure 2-11 Binding dialog box
(3) Click the word "Deployment", and point the deployment directory to "D:dkblogbin" in the pop-up dialog box, as shown in Figure 2-12 Show.
(4) Click the "Deploy" button, and the dialog box shown in Figure 2-13 will pop up. Press the "OK" button to close it.
Figure 2-12 Deployment settings dialog box
Figure 2-13 Deployment file dialog box
Reminder: Remember that the name of the DreamweaverCtrls.dll file and the bin name of the directory where it is located cannot be changed, and the bin folder must be saved in the root directory of the site.