asp.net网站使用问题!!(100分)

  • 主题发起人 vivid_bai
  • 开始时间
V

vivid_bai

Unregistered / Unconfirmed
GUEST, unregistred user!
我刚刚下载了个ASP.NET程序,想学习学习!
可是将程序解压到wwwroot目录下后输入127.0.0.1/**/default.aspx网页不能正常显示!!!
请高手们告诉我该怎么办???

Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:

Line 23: <compilation defaultLanguage=&quot;c#&quot;
debug=&quot;true&quot;/>
Line 24: <customErrors mode=&quot;Off&quot;/>
Line 25: <authen
tication mode=&quot;Windows&quot;/>
Line 26: <authorization><allow users=&quot;*&quot;/></authorization>
Line 27: <trace enabled=&quot;false&quot;
requestLimit=&quot;10&quot;

Source File: c:/inetpub/wwwroot/c1/web.config Line: 25

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version
 
首先配置好IIS5.0或者以上版本,确保ASP文件能够正常被访问,
安装ASP.NET运行环境所需的软件,把需要运行的asp.net文件放置在任意目录,但是如果不在WEB服务器指定的根目录则必须创建虚拟目录才能被正常访问。估计作者就是没有创建虚拟目录引起的。
 
把你拷贝到wwwroot目录下的那个放代码的文件夹web共享看看了,右键点击文件夹查看属性里面有web共享,试试行不行
 
1、运行C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/aspnet_regiis -i 安装asp.net
2、删除web.config文件
3、再次运行编译
 
顶部