| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 781 人关注过本帖
标题:请高手赐教,关于server对像的简单问题
只看楼主 加入收藏
风中言情
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2005-9-29
收藏
 问题点数:0 回复次数:1 
请高手赐教,关于server对像的简单问题
<%@ page language="vb" %>
<html>
<body>
<%
dim x
dim y
dim c
x=Server.createobject("Scripting.FilesystemObject")
y=x.opentextfile("e:dwnet/number.txt",1)
c=y.readline
c=c+1
y.close
y=x.opentextfile("e:dwnet/number.txt",2)
y.writeline(c)
y.close
y=nothing
x=nothing
%>
</body>
</html>
为什么上面那个程序一运行就会显示错误

Server Error in '/' Application.

Exception from HRESULT: 0x800A003E.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.EndOfStreamException: Exception from HRESULT: 0x800A003E.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[EndOfStreamException: Exception from HRESULT: 0x800A003E.]
   Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +899
   ASP.number_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +186
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Page.ProcessRequestMain() +1929


Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
搜索更多相关主题的帖子: server 简单问题 
2005-10-29 11:02
风中言情
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2005-9-29
收藏
得分:0 

请问各位高手那个程序错在哪里啊?

2005-10-29 11:07
快速回复:请高手赐教,关于server对像的简单问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.040762 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved