Configuring an ASP.NET environment in Win 2003

xiaoxiao2021-03-06  14

Microsoft's attacks on malicious users and attackers can be better prevented, by default, IIS6.0 is installed on members of the Windows Server 2003 family. Moreover, when we initially install IIS6.0, the service is installed in high security and "lock" mode. By default, IIS6.0 is only serving static content, such as ASP, ASP.NET,

The server side contains files, WebDAV publishing and FrontPage Server Extensions feature only work when enabled. Install the ASP.NET environment in Windows 2003 IIS 6.0, we must first learn about the new features of IIS6.0, how to install IIS6.0 under Windows 2003 Server, how we can install and deploy ASP in IIS6.0 The .NET environment, and the relationship between them, the following content will give you a solution.

1, use "to configure your

Server Wizard installation IIS6.0

1) From the "Start" menu, click "Manage you

server".

2) Manage you

Under Server Role, click Add or Remove Role.

3) Read "Configure your

The preparation step in the Server Wizard, and then click Next.

4) in ""

Server role "Under, click" application

Server (IIS, ASP.NET), and then click Next.

5) Read the summary information, then click Next.

6) Click Finish.

2, install IIS using the control panel, add

Component or delete

Assembly

1) From the Start menu, click Control Panel.

2) Double-click Add or Remove Programs.

3) Click Add / Delete Windows

Component.

4) in ""

Component list box, click Application

server".

5) Click Details.

6) Click Internet Information Services Manager.

7) Click Details to see IIS optional

A list of components.

8) Select all options to install

Component.

9) Click "OK" until "Windows

Component Wizard.

10) Click Next, then complete "Windows

Component Wizard.

Third, install ASP.NET in Windows 2003 Server

Windows Server 2003 family uses ASP.NET and IIS integration to improve the developer experience. ASP.NET recognizes most ASP code, and provides more features for enterprise-level web applications that work as part of Microsoft .NET Framework. Using ASP.NET allows us to make full use of the functions of the public language logo, such as type security, inheritance, language interoperability, and version control. IIS 6.0 also provides support for the latest Web standards, including XML, Simple Object Access Protocol (SOAP), and Internet Protocol version 6.0 (IPv6.0).

ASP.NET is a unified web development platform that provides developers to create services required by enterprise-level web applications. Although the syntax of ASP.NET is basically compatible with ASP, it also provides a new programming model and infrastructure to improve application security, scaling, and stability. With the increase in ASP.NET functionality to existing ASP applications, we can freely increase it. ASP.NET is a compiled, based .NET-based environment; we can use any .NET compatible language (including Microsoft Visual Basic.Net, Microsoft Visual C # and Microsoft Jscript .NET) creation applications. In addition, the entire Microsoft .NET Framework can be used for any ASP.NET application. Developers can easily benefit from these technologies, including management of public language runtime environment, type safety, inheritance, etc. The advantages of ASP.NET are as follows:

1) Manageability: ASP.NET uses text-based, graded configuration system, simplifies the application to

Server environment and WEB applications work. Since the configuration information is stored as plain text, you can apply a new setting with help without the local management tool. Any changes to the configuration file can be automatically detected and applied to the application.

2) Safety: ASP.NET provides a default authorization and authentication scheme for web applications. Developers can easily add, delete, or replace them according to the needs of the application.

3) Easy to deploy: copy the necessary files to

On the server, the ASP.NET application can be deployed

On the server. No need to restart

The server does not need to be restarted even when the compiled code is deployed or replaced.

4) Enhanced performance: ASP.NET is running

The compiled code on the server. Unlike traditional Active Server Pages (ASP), ASP.NET can use early binding, real-time (JIT) compile, local optimization, and new cache services to improve performance.

5) Flexible Output Cache: ASP.NET can cache some or the entire page of page data, page data, page data, page according to the needs of the application. The cached project can rely on files or other items in the cache, or can be refreshed according to the expiration policy.

6) Internationalization: ASP.NET uses Unicode intern to represent requests and response data. Internationalization can be configured for each computer, each directory, and per page.

7) Mobile device support: ASP.NET supports any device

Browser. Developers use desktop for traditional

The browser is the same programming technology to process new mobile devices.

8) Scalability and availability: ASP.NET is designed to scale, with specially proprietary functions to improve the performance of the cluster, multiprocessor environment. In addition, Internet Information Services (IIS) and ASP.NET are closely monitoring and managing processes, so that when there is an exception in a process, the new process can be created in this location to continue to process the request.

9) Track and debug: ASP.NET provides a trace service that is enabled during application level and page level debugging. You can choose to view the information of the page, or use the application level tracking view tool to view the information. ASP.NET supports local and remote debugging using the .NET Framework debugging tool when developing and applying in a state of production. When the application is in production, the tracking statement can stay in the product code without affecting performance.

10) Integration with .NET Framework: Because ASP.NET is part of .NET Framework, the functionality and flexibility of the entire platform is available to web applications. The .NET class library and message and data access solution can also be accessed smoothly on the Web. ASP.NET is independent of language, so developers can choose the language that is best suited for the application. In addition, the interoperability of the public language runtime also saves COM-developed existing investments. 11) Compatibility with existing ASP applications: ASP and ASP.NET can run in parallel in IIS Web

There is no conflict between the server; there is no possibility that the existing ASP application crashes due to installing ASP.NET. ASP.NET only processes files with a .aspx file extension. File with the .asp file extension continues to be processed by the ASP engine. However, it should be noted that the session status and application status are not shared between the ASP and ASP.NET pages.

Install ASP.NET

In the Windows Server 2003 family, Windows 2000 (Professional, Server, and Advanced Server) and

Windows XP Professional client and

Server applications support ASP.NET. Running Microsoft Windows Server 2003 family members

Server can be configured as an application

Server and use ASP.NET as configured applications

Options that can be enabled when servers roles. To go to the product

Server deploys ASP.NET web applications, you must ensure that the product must be ensured before distributing the application.

ASP.NET and IIS roles are enabled in the server.

1, use "to configure your

Server "Wizard is running Windows Server 2003

ASP.NET installed in the server

1) From the "Start" menu, click "Manage you

Server ";" managing you

In the Server window, click Add or Remove Role.

2) Configure your

On Server Wizard, click Next, and "

Server Role dialog box, select the application

Server (IIS, ASP.NET), and then click Next.

3) In "application

In the Server Options dialog box, select the Enable ASP.NET check box, click Next, then click Next.

4) If necessary, insert the Windows Server 2003 installation CD into the CD-ROM drive, and then click Next.

5) When the installation is complete, click Finish.

2, running Windows Server 2003

Use "Add or Remove Programs" to install ASP.NET

1) From the Start menu, point to Control Panel, and then click Add or Remove Programs.

2) In the Add or Remove Programs dialog box, click Add / Remove Windows

Component.

3) in "Windows

Component "Wizard"

Component "in the" application "application

Server check box, then click Next.

4) When "Windows

When you complete the configuration of Windows Server 2003, click Finish .3, running Windows Server 2003

Enable ASP.NET 1 in the IIS Manager in the server) From the Start menu, click Run.

2) In the Open box in the Run dialog, type inetmgr, and then click OK.

3) In IIS Manager, expand the local computer, and then click Web Service Extensions.

4) In the right pane, right-click "ASP.NET" and then click Allow. The state of ASP.NET becomes "allowed". ASP.NET Web Applications ASP.NET application is defined as available from the Web

All files and executables called on the server and all the files calls in their subdirectories. Among them, you can include a web page (.html file), web table page (.aspx file), web form user

Control (.ascx file), XML web service (.asmx file), HTTP handler, HTTP module, and other files (such as images and profiles). All script maps related to Microsoft .NET Framework now are also part of the ASP.NET application. The ASP.NET application must be in the IIS virtual directory (also known as application root directory). ASP.NET applications can include compiled assemblies (usually a DLL file containing business logic), used to store a known directory for pre-compiled code (directory name is always / bin), stored in text, easy to read Configuration settings, pages in web.config files,

server

Controls, and XML web services.

Any pre-compiled code that is not shared with other applications in the server must be stored in the application / bin directory. It is a local assembly cache for an application. The web.config file stores the application-level profile in an XML-based text file. This means that any standard text editor or XML analyzer can be used to create them, and they are readable. If you do not contain a web.config file in the application root directory, configuring the settings from the machine.config file.

The server configuration file is determined. When you install .NET Framework, a version of the Machine.config file is installed. The following figure shows an example of the ASP.NET application file system layout.

The application in this figure includes two DLL files in the / bin directory, a default.aspx page, a user named menu.ascx

Controls, a XML web service called MyWebService.asmx and a global.asax file. In addition, the application is configured with the following three configuration files: system root-based Machine.config files, C: / INETPUB / WWWROOT directory in the site level web.config file and application root directory applications Level web.config file. When the site's web.config file overrides the settings in the Machine.config file, the configuration settings stored in the application root directory will overwrite the web.config files in the site and the settings in the Machine.config file.

Comparison between ASP.NET and IIS, ASP

The relationship between the ASP.NET application and the Internet Information Service (IIS) is as follows: IIS provides services to all requests for the published ASP.NET files via ASPNET_ISAPI.DLL (ASP.NET process model). IIS does not process the server's code; and the ASP.NET engine will process

Server-side code, then return the output to IIS (if possible, or another web

server).

ASP.NET is not just a next-generation ASP, which provides a new programming model for the creation of web applications with Internet. The ASP.NET and ASP comparisons are as follows:

1, improved performance and scalability

1) After compiling: ASP.NET is faster than the traditional ASP, and the ASP "only click Save" update model. There is no need to explicitly compile step. ASP.NET automatically detects change, dynamically compiles files as needed, and saves compilation results for subsequent requests. Dynamic compilation ensures that the user's application is always the latest, and the operation after compiling will make it run faster. For most applications that migrate from traditional ASPs to ASP.NET, the number of pages processed by 3 to 5 times.

2) Large-capacity output cache: ASP.NET output buffer greatly improves the performance and scalability of the application. When an output cache is enabled in the page, the ASP.NET executes this page and saves the results in memory before sending to the user. When other users requested the same page, ASP.NET provides services to users using cache results in memory instead of re-executing the page. The output cache is configurable and can be used to cache a single area or the entire page.

3) Web field session status: ASP.NET session status allows us to share session data between all computers in the web field. Now, users can access different web fields through multiple requests.

Server and still have permissions that fully access session data.

2, enhanced reliability

Memory Leak, Deadlock, and Fault Protection: ASP.NET automatically detects errors (for example, deadlocks and memory leaks) and recovery to ensure that our applications are always available. For example, when a memory leak is detected, ASP.NET will automatically start a copy of the new ASP.NET work process and direct all new requests to the process. When the old process completes the processing of the suspend request, it will pass appropriately and release the leaks.

3, deploy simple

1) "Non-contact" application deployment: Using ASP.NET, we can copy it to

The server is deployed throughout the application. The configuration settings will be stored in the XML file of the application.

2) Dynamic Update Running Applications: ASP.NET allows us to restart Web

Server and update compiled

Component. Traditional COM

Component (these

Components need to manually restart the web after deploying updates

Server) Different, ASP.NET automatically detects changes and starts with new code.

3) Simple migration path: ASP.NET can be in Microsoft Windows 2000 with traditional ASP applications,

Windows XP, and IIS of the Windows Server 2003 family members. We can migrate an app, even a separate page. ASP.NET does even allow us to continue using existing traditional COM business

Component.

4, new application model

1) XML Web Services: XML Web Services allows applications to communicate and share data through Internet, regardless of

How to operate system and programming languages. ASP.NET makes it easy to disclose and call XML network services. 2) Mobile Web Device Support: ASP.NET Mobile

The control allows us to handle more than 80 mobile web devices using ASP.NET. We only need to write applications at once, move

The control can automatically generate a page of the request device.

5. Efficiency of developers

1) Simple programming model:

server

Control (these

The control allows us to use ASP.NET, which is better than traditional ASP less code, make dynamically build real web applications easier.

2) Flexible language options: ASP.NET not only supports Microsoft Visual Basic Scripting Edition (VBScript) and Microsoft JScript, but also supports more than 25 .NET languages, including built-in support for Visual Basic .NET, Microsoft C # and JScript .NET .

3) Rich class frame: .NET Framework class library provides more than 4,500 classes, which encapsulates a large number of features such as XML, data access, file upload, regular expressions, image generation, performance monitoring, and logging, transactions, Message queue and SMTP mail.

转载请注明原文地址:https://www.9cbs.com/read-48755.html

New Post(0)