主题:asp.net新手,一直郁闷.大家看看.跪谢...
我想学asp.net 听说只要电脑上安装了 .net framework 就可以了,所以我很高兴的下载了 1.1 .结果就是 很简单的小代码运行正常...就是那种很简单的asp.net程序,但是从网上下载的一些留言本啊之类的代码都不能运行..都出现那种问题.. 后来又装2.0 结果出现什么server availible 之类的...现在我电脑上同时安装了1.1和2.0 在IIS中选择的是1.1 .. 都快要疯调了.各位兄弟姐妹..给点意见 .... 唉..~~~
如下:
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 76: Ҫ Cookie sessionState cookieless="true"
Line 77: -->
Line 78: <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
Line 79:
Line 80: <!-- ȫ
Source File: D:\www\test\web.config Line: 78
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
或者:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: File or assembly name AspNetPager, or one of its dependencies, was not found.
Source Error:
Line 1: <%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
Line 2: <%@ Page validateRequest="false" language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="book._index" %>
Line 3: <HTML>
Source File: D:\www\cncn\index.aspx Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'AspNetPager' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = AspNetPager
(Partial)
LOG: Appbase = file:///D:/www
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: AspNetPager
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager.DLL.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager/AspNetPager.DLL.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager.DLL.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager/AspNetPager.DLL.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager.EXE.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager/AspNetPager.EXE.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager.EXE.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager/AspNetPager.EXE.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
如下:
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 76: Ҫ Cookie sessionState cookieless="true"
Line 77: -->
Line 78: <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
Line 79:
Line 80: <!-- ȫ
Source File: D:\www\test\web.config Line: 78
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
或者:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: File or assembly name AspNetPager, or one of its dependencies, was not found.
Source Error:
Line 1: <%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
Line 2: <%@ Page validateRequest="false" language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="book._index" %>
Line 3: <HTML>
Source File: D:\www\cncn\index.aspx Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'AspNetPager' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = AspNetPager
(Partial)
LOG: Appbase = file:///D:/www
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: AspNetPager
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager.DLL.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager/AspNetPager.DLL.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager.DLL.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager/AspNetPager.DLL.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager.EXE.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/7438502b/69ea3798/AspNetPager/AspNetPager.EXE.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager.EXE.
LOG: Attempting download of new URL file:///D:/www/bin/AspNetPager/AspNetPager.EXE.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573