设为首页 收藏本站
查看: 468|回复: 0

[经验分享] Running ASP.NET 1.1 with IIS 6.0

[复制链接]

尚未签到

发表于 2015-8-15 10:04:43 | 显示全部楼层 |阅读模式
While Windows Server 2003 includes both IIS 6.0 and ASP.NET 1.1, these components are disabled by default. This whitepaper describes how to enable IIS 6.0 and ASP.NET 1.1, and recommends several configuration settings to get the optimal performance from IIS and ASP.NET.

  Applies to ASP.NET 1.1 and IIS 6.0.
  ASP.NET 1.1 ships with Windows Server 2003, which also includes the latest version of Internet Information Server (IIS) version 6.0.  IIS 6.0 and ASP.NET 1.1 are designed to integrate seamlessly and ASP.NET now defaults to the new IIS 6.0 worker process model.  ASP.NET 1.1 is not installed by default

  Unlike previous versions of Microsoft’s server operating systems, Internet Information Server (IIS) is not enabled by default; nor is ASP.NET 1.1. There are two options for enabling IIS:  Enabling IIS, option #1 - Configure Your Server Wizard

  Windows Server 2003 ships a new ‘Configure Your Server Wizard’ to help you properly configure your server in the desired mode.  
  To start the wizard - note, to run the wizard you must be logged in as an administrator - go to: Start | Programs | Administrative Tools and select ‘Configure Your Server’.  
  Once selected you should see the ‘Configure Your Server Wizard’ opening screen:  

  Click ‘Next >’:  

  Click ‘Next >’  

  On this screen you will need to select ‘Application server (IIS, ASP.NET) as the options to configure.  
  Click ‘Next >’.  

  After selecting to configure the server as an Application Server, this screen will be displayed prompting what additional capabilities should be installed. Neither option is selected by default. To enable ASP.NET automatically, you need to select ‘Enable ASP.NET’.  
  Click ‘Next >’.  

  This screen displays what options are to be installed.  
  Click ‘Next >’.  

  You will see this screen while the options you selected are being installed. It is normal to see other dialog boxes appear as services are being installed. You may additionally be prompted for the location of the Windows 2003 Server installation CD.  
  Click ‘Next >’ when complete.  

  Click ‘Finish’ - the Windows Server 2003 is now configured to support IIS 6.0 and ASP.NET 1.1.  Enabling IIS, option #2 - Manually configuring IIS and ASP.NET

  If you do not wish to use the ‘Configure Your Server Wizard’ you can optionally install IIS 6.0 and ASP.NET 1.1 using ‘Add or Remove Programs’ from the Control Panel.  
  First open the Control Panel:  

  Next, click on ‘Add/Remove Windows Components’ which will open the ‘Windows Components Wizard’:  

  Highlight and check ‘Application Server’ and then click the ‘Details�’ button:  

  To install ASP.NET, check ‘ASP.NET’.  
  Click ‘OK’ to return to the Windows Component Wizard. Click ‘Next >’ from the Windows Component Wizard to begin installing:  

  It is normal to see other dialog boxes appear as services are being installed. You may additionally be prompted for the location of the Windows 2003 Server installation CD.  
  When installation is complete you will see the last screen of the Windows Component Wizard:  

  IIS 6.0 and ASP.NET 1.1 are now configured and available.  Recommended Settings

  When running ASP.NET 1.1 with IIS 6.0 there are several configuration settings that are recommended to get the optimal performance from ASP.NET:  

  • Configuring worker process memory limits
  • Configuring worker process recycling
Configuring worker process memory limits

  By default IIS 6.0 does not set a limit on the amount of memory that IIS is allowed to use. ASP.NET’s Cache feature relies on a limitation of memory so the Cache can proactively remove unused items from memory.  
  It is recommended that you configure the memory recycling feature of IIS 6.0. To configure this open Internet Information Services Manager (Start | Programs | Administrative Tools | Internet Information Services). Once open, expand the ‘Application Pools’ folder:  
  For each application pool:  

  1. Right-click on the application pool, e.g. ‘DefaultAppPool’, and select ‘Properties’:  

  2. Next, enable Memory recycling by clicking on either ‘Maximum used memory (in megabytes):’. The value should not be more than the amount of physical (not virtual) memory on the server, a good approximation is 60% of the physical memory, i.e. for a server with 512MB of physical memory select 310. It is also recommended that the maximum not exceed 800MB when using a 2GB address space. If the memory address space of the server is 3GB, the maximum memory limit for the worker process can be as high as 1,800MB:  

  Click ‘Apply’ and the ‘OK’ to exit the properties dialog. Repeat this for all available application pools.  Configuring worker recycling

  By default IIS 6.0 is configured to recycle its worker process every 29 hours. This is a bit aggressive for an application running ASP.NET and it is recommended that automatic worker process recycling is disabled.  
  To disable automatic worker process recycling, first open Internet Information Services Manager (Start | Programs | Administrative Tools | Internet Information Services). Once open, expand the ‘Application Pools’ folder:  

  For each application pool:  
  1. Right-click on the application pool, e.g. ‘DefaultAppPool’, and select ‘Properties’:  

  2. Uncheck ‘Recycle worker process (in minutes):’:  

  Click ‘Apply’ and the ‘OK’ to exit the properties dialog. Repeat this for all available application pools.  Granting write access to the file system

  If your application requires write access to the file system and you are using NTFS you will need to modify an Access Control List (ACL) on the folder or file to grant ASP.NET access to.  
  For example, to grant ASP.NET write access to the c:\inetpub\wwwroot first open explorer and navigate to the directory:  

  Next, right-click on the directory, e.g. ‘wwwroot’ and select properties. After the properties dialog opens, select the ‘Security’ tab:  

  The c:\inetpub\wwwroot\ directory is a special directory in that the special IIS 6.0 group ‘IIS_WPG’ is already granted Read & Execute, List Folder Contents, and Read permissions. However, to grant Write permission, you need to click the Allow checkbox for Write:  

  IIS 6.0 now has write permission on this folder. To grant write permissions on other folders, follow these steps - note, you may need to add the IIS_WPG group if it does not already exist.  
  Caution: Granting write permission to IIS_WPG will allow any ASP.NET application to write to this directory.  Supporting integrated authentication with SQL Server

  Integrated authentication allows for SQL Server to leverage Windows NT authentication to validate SQL Server logon accounts. This allows the user to bypass the standard SQL Server logon process. With this approach, a network user can access a SQL Server database without supplying a separate logon identification or password because SQL Server obtains the user and password information from the Windows NT network security process.  
  Choosing integrated authentication for ASP.NET applications is a good choice because no credentials are ever stored within your connection string for your application. Rather the connection string used to connect to SQL will look as follows:  
  "server=localhost; database=Northwind;Trusted_Connection=true"
  This connection string tells SQL Server to use the Windows credentials of the application attempting to access SQL Server. In the case of ASP.NET/IIS 6 this would be an account in the IIS_WPG group.  
  To enable integrated authentication between SQL Server and ASP.NET, you will need to first ensure that SQL Server is configured for either Integrated authentication or Mixed-Mode authentication - check with your DBA to determine this. If SQL Server is in one of these two modes, you can use integrated authentication.  
  Open SQL Server Enterprise Manager (Start | Programs | Microsoft SQL Server | Enterprise Manager), select the appropriate server, and expand the Security folder:  

  If ‘BUILTINT\IIS_WPG’ group is not listed, right-click on Logins and select ‘New Login’:  

  In the ‘Name:’ textbox either enter ‘[Server/Domain Name]\IIS_WPG’ or click on the ellipses button to open the Windows NT user/group picker:  

  Select the current machine’s IIS_WPG group and click ‘Add’ and OK to close the picker.  
  You then need to also set the default database and the permissions to access the database. To set the default database choose from the drop down list, e.g. below Northwind is selected:  

  Next, click on the Database Access tab:  

  Click on the Permit checkbox for every database that you wish to allow access to. You will also need to select database roles, checking db_owner will ensure your login has all necessary permissions to manage and use the selected database.  
  Click OK to exit the property dialog. Your ASP.NET application is now configured to support integrated SQL Server authentication.  Don’t run ASP.NET 1.0 in IIS 6.0 native mode

  ASP.NET 1.0 on IIS 6.0 is only supported in IIS 5 compatibility mode.  
  To configure ASP.NET 1.0 to run in IIS 5.0 compatibility mode, open Internet Services Manager and right click Web Sites and select properties:  

  Switch to the Service Tab and check �Run WWW Service in IIS 5.0 Isolation Mode�:  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-99226-1-1.html 上篇帖子: Windows XP + IIS 添加应用程序映射时候的问题 下篇帖子: IIS 7.5 下载文件遇到 404.3
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表