ASP.NET 2.0发布之IIS设置问题

Asp.Net2.0常见IIS错误 

1、IIS中将.NET版本设置为2.0
2、执行权限改为纯脚本
3、Server Application Unavailable错误:一般是因为文件系统的权限造成的
 将权限中加入IUSER用户(用于读取的网站匿名用户),再加入NETWORKSERVICE组(用于执行程序) 



Asp.Net2.0默认数据库是SQL2005 
在C:\下的Web.Config中有LocalSqlServer一节,默认连接SQL2005,需先重新配置LocalSqlServer,才

可使用SQL2000数据库
<connectionStrings>
    
<remove name="LocalSqlServer" />
    
<add name="LocalSqlServer" connectionString="Data Source=localhost;Initial 

Catalog=xxxxx;Persist Security Info=True;User ID=sa;Password=sa"
 

providerName
="System.Data.SqlClient" />
    
<add name="AppConnectionString" connectionString="Data Source=localhost;Initial 

Catalog=xxxxx;User ID=sa;Password=sa"
 />
  
</connectionStrings> 

对于上述问题,也可以按以下操作发布ASP.NET 2.0站点:
IIS-->网站[属性]-->ASP.NET-->编辑全局配置-->删除IIS默认的LocalSqlServer-->添加要发布的网站的LocalSqlServer的连接参数

原文地址:https://www.cnblogs.com/ding0910/p/1021637.html