suchasplus
作家
作家
  • 铜币16枚
  • 威望11点
  • 贡献值1点
阅读:1002回复:3

求助: .Net 的部署错误

楼主#
更多 发布于:2006-01-26 03:38
拿别人的程序(程序确认是好的)
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
配置错误 
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 
分析器错误信息: 不能为应用程序根下的目录定义“Authentication”节。
源错误: 
行 34: 
行 35: 	
行 36: 	[color=#ff0012][b]<authentication mode="Forms">[/b][/color]
行 37: 	<forms name=".ADUAUTH" loginUrl="manager\manager_login.aspx" protection="All">
行 38: 	</forms>
源文件: c:\inetpub\wwwroot\dlb\web.config    行: 36 
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573


红色部分为原红色提示

查找了一下类似的错误,按照网上的说明把C:\Windows\Microsoft.NET\Framework\v1.1.4322\CONFIG下的machine.config中关于authentication的那行,即section name="authentication"那一行,把默认的allowDefinition="MachineToApplication" (这是1.1缺省配置)改为allowDefinition="Everywhere" allowLocation="True",结果依旧是错误,查阅了msdn,其中关于Form-based Authentication的example是这么写的
<authentication mode="Forms">
   <forms name="LoginForm" loginUrl="login.aspx" protection="All" />
</authentication>


小弟才学疏浅,请各位不吝赐教给指出问题,回头有水煮鱼(鱼的问题就包在fly身上了~) [ 2006-01-26 03:39:11 suchasplus 修改 ]
The history of these days will be written in blood... By crushing the armies of our enemy, by seizing the weapons they thought to turn against us, we were fighting for our very existence!
万贤
作家
作家
  • 铜币1枚
  • 威望24点
  • 贡献值1点
1C#
发布于:2006-01-26 19:17
Re:求助: .Net 的部署错误
帮你顶了~
suchasplus
作家
作家
  • 铜币16枚
  • 威望11点
  • 贡献值1点
2C#
发布于:2006-01-26 23:34
Re:求助: .Net 的部署错误
原因查明:

在做出1楼设置的基础上,必须在IIS中相应目录的属性设置中,在“应用程序设置”下,“创建”一个“应用程序”,方法和quickstart一样。
The history of these days will be written in blood... By crushing the armies of our enemy, by seizing the weapons they thought to turn against us, we were fighting for our very existence!
★fly★
著名写手
著名写手
  • 铜币0枚
  • 威望0点
  • 贡献值0点
3C#
发布于:2006-01-26 23:36
Re:求助: .Net 的部署错误
什么乱七八糟的?
[fly][color=#ff0012]开始混日子。。。[/color][/fly] [img]http://id.91cool.net/sign/?name=印苑家园[/img]
游客

返回顶部