Dreamweaver Build Blog (2)-Build development environment

Source: Internet
Author: User
Tags add iis net return version dreamweaver root directory
Construction of Dreamweaver doking ' s blog development Environment

After understanding the doking ' s blog function and development purposes, the next step is to build a good development environment.

2.1 ASP. The construction of net running environment

Before starting to develop doking ' s blog, you should build a good development environment first. The following is an introduction to the Build 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 Components Wizard dialog box

  2.1.2 on the IIS server, install a new home for doking ' s blog

(1) First under d:\ new directory "Dkblog", open the "control Panel" → "Administrative Tools" → "Internet Services Manager", open the Internet Information Services dialog box, as shown in Figure 2-2.

Figure 2-2 Internet Information Services dialog box

(2) Right-click "Default Web Site", select Properties, open the Default Web Site Properties dialog box, click the Home Directory tab in the dialog box, point to "D:\dkblog" on the local path, and select scripts and executable programs in the Execute permission (P): Drop-down menu. The result is shown in Figure 2-3.

Figure 2-3 Site Properties dialog box

(3) Now, the computer can finally in the same as network services to provide the WWW service, the default URL: localhost or computer IP address (such as: 127.0.0.1).

  Reminder: You can not underestimate the Internet server management, if you can reasonably allocate IP address and site virtual directory, can also let the computer really become a network server, but also allow users on the network to browse the computer site and database.

  2.1.3 Installation. NET Framework

You can download the. NET Framework 2.0 and the corresponding version of the SDK Toolkit on Microsoft's Web site, or download the installation from the following URL:

. 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= En

Open IE Browser, "localhost/text.aspx" on the Address bar, Assuming that text.aspx this document does not exist now, then the Internet Explorer will return the error message, if the error message shown in Figure 2-4 shows that I asp.net the running environment basically built.

Figure 2-4 can't find the file error message

  2.1.4 Build asp.net running environment in Windows 2003 operating system

The steps and methods for building a asp.net run environment in the Windows 2000/XP operating system are described above. There are two main ways to build a 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 role, click Add or Remove Roles.
(3) Read the preliminary steps in the Configure Your Server Wizard, and then click Next.
(4) Under Server role, 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.
(6) Read the profile and click Next.
(7) Click "Finish".

2. To install IIS 6.0 and ASP.net using the control Panel

(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 a list of IIS optional components.
(8) Select all optional components to be installed.
(9) Click OK until you return to the Windows Components wizard.
(10) Click Next, and then complete the Windows Components wizard.

Alternatively, you can enable ASP.net directly in IIS Manager in the server running Windows 2003, as follows:

(1) From the Start menu, click Run.
(2) In the Run dialog box, in the Open box, type inetmgr, and then click OK.
(3) In IIS Manager, expand the local computer, and then click Web Service Extensions.
(4) In the right window, right-click "ASP.net" and click "Allow". Asp. NET becomes "allowed."

2.2 Establish doking ' s BLOG site

After building a good asp.net run environment, you can start to develop Doking's blog site. First, you must establish the Doking ' s blog site in Dreamweaver mx.

  2.2.1 Set up doking ' s blog site

(1) Start Dreamweaver MX 2004, switch to the Files panel, click Manage Sites, click New button, as shown in Figure 2-5.

Figure 2-5 Administration Site dialog box

(2) In its next menu, select "Site (S)", in the pop-up dialog box, enter the site name "Dkblog", the result is shown in Figure 2-6.

Figure 2-6 Definition of station name

(3) Click "Next" and select "Yes, I want to use server technology." (Y) ", in" what kind of server technology? (W) Drop-down menu, select "ASP.net VB", and the result is shown in Figure 2-7.

Figure 2-7 Determining server technology

(4) Click Next, select Edit locally and test (my test server is this computer) (E), and point the file store to "D:\dkblog", as shown in Figure 2-8.

(5) Click "Next", enter the URL address "http://localhost/", click the button "Test URL (I)", and if the test succeeds, a dialog box like Figure 2-9 appears.

Figure 2-8 Specifying the directory location of a Web site

Figure 2-9 Test dialog box

(6) Click Next, click Next, click the button "Finish" to complete the site creation.

  2.2.2 Deploy doking ' s blog site

(1) First look at the layout of the doking ' s blog site, the root directory to store. aspx,. htm files, the bin directory is used to deploy the DreamweaverCtrls.dll control, DAT directories for the database, images directory to store the relevant picture files. In the open File panel, under Site-dkblog, create a new directory bin, directory dat, directory images, and the results are shown in Figure 2-10.

(2) On the File menu, select New, in the New dialog box, select the category as Dynamic page, select dynamic page as ASP.net VB, press the Create button to create the first dynamic page. Switch to the Applications panel and select the Bindings tab, as shown in Figure 2-11.

  

Figure 2-10 Layout of the Site 2-11 binding dialog box

(3) Click "Deployment" and point the deployment directory to "D:\dkblog\bin\" in the pop-up dialog box, as shown in Figure 2-12.

(4) Click on the "Deployment" button, pop-up as shown in Figure 2-13 dialog box, press "OK" to turn it off.

Figure 2-12 Deployment Settings dialog box

Figure 2-13 Deployment File dialog box

  Reminder: Remember that the DreamweaverCtrls.dll file name and its directory bin name cannot be changed, and the bin folder must be saved in the root directory of the site.

Turn from: Dynamic Network production guide www.knowsky.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.