回 帖 发 新 帖 刷新版面

主题: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:     <!--  &#555;


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

回复列表 (共3个回复)

沙发

开玩笑,人家的程序你不用修改就一股脑搬上去当然会产生这样或那样的问题啦,人家的webconfig配置跟你又不同,如果使用的操作系统不同或者数据库,授权方式等不同都会影响你程序的运行,这跟你的framework没关系,你要看看那些程序的使用说明书,对照那些需要修改的就改,然后根据报错调试

板凳

......
改代码和写代码一样都是学问,
努力吧。

3 楼

看看这里:  http://www.rzhh.com.cn
学习.net的好地方

我来回复

您尚未登录,请登录后再回复。点此登录或注册