Adamancy---2005  
天行健,君子以自强不息。地势坤,君子以厚德载物。
日历
<2008年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
统计
  • 随笔 - 17
  • 文章 - 0
  • 评论 - 104
  • 引用 - 0

导航

与我联系

搜索

 

常用链接

留言簿(1)

随笔分类

随笔档案

相册

收藏夹

中文Blog

最新评论

阅读排行榜

评论排行榜

 

最新评论

共3页: 1 2 3 下一页 
re: 找不到可安装的ISAM Coder Lee 2008-10-21 17:28  
太感谢了
re: 找不到可安装的ISAM fm 2008-10-16 13:13  
重新安装VB,注意安装过程中选中自定义安装,将所有选项全选中,其中就有关于ISAM的选项,安装完就行了
re: 找不到可安装的ISAM yinghen 2008-10-14 21:38  
感谢,我的问题解决了,就是要用\"才可以
re: 找不到可安装的ISAM Muse 2008-10-09 07:51  
@XS2005
HDR=YES;IMEX=1必须和Excel 8.0放在一起,并用引号括起来
re: 找不到可安装的ISAM 396116038 2008-09-23 13:52  
thank you
re: 找不到可安装的ISAM toddzhuang 2008-08-27 10:50  
谢谢啊 帮了我大忙了
通过第71楼的方法,我解决问题了。
我的这个问题的原因是采用了 reponse.qureystring()获得数据,但是在request.redirect("main.axspx")后未加?username="+username,wg使username为nullo
未将对象引用设置到对象的实例。
这个错误发生,主要是由于
你有对象还没实例化或没有引用就使用了,就会引发这个异常
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim ints As Random = New Random

intnumber = ints.Next(1, 100)
End Sub

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click
intI += 1
If isnumberic(TextBox.Text) Then
Select Case Convert.ToInt32(Txtinput.Text)
Case Is > intnumber
MessageBox.Show("呵呵,数太大了哦,请小一点")
Case Is < intnumber
MessageBox.Show("数太小了,请大以点")
Case Is = intnumber
MessageBox.Show("恭喜你!!你猜对了!" & vbNewLine & "你一共猜了" & CStr(intI) & "次")
intI = 0
Dim ints As Random = New Random
intnumber = ints.Next(1, 100)
End Select
Else
MessageBox.Show("你输入的不是数字!")
End If
End Sub

Private Sub Txtinput_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Txtinput.TextChanged

End Sub
End Class
{"创建窗体时出错。有关详细信息,请参阅 Exception.InnerException。错误为: 未将对象引用设置到对象的实例。"}帮忙改改哦!!!!!


Public Class Form1
Dim intI As Integer
Dim instance As InvalidOperationException
Dim isnumberic(Txtinput.text) As Integer
Dim intnumber As Decimal

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click

intI += 1
If isnumberic(Txtinput.Text) Then
Select Case Convert.ToInt32(Txtinput.Text)
Case Is > intnumber
MessageBox.Show("呵呵,数太大了哦,请小一点")
Case Is < intnumber
MessageBox.Show("数太小了,请大以点")
Case Is = intnumber
MessageBox.Show("恭喜你!!你猜对了!" & vbNewLine & "你一共猜了" & CStr(intI) & "次")
intI = 0
Dim ints As Random = New Random()
intnumber = ints.Next(1, 100)
End Select
Else
MessageBox.Show("你输入的不是数字!")
End If
End Sub

End Class
{"创建窗体时出错。有关详细信息,请参阅 Exception.InnerException。错误为: 未将对象引用设置到对象的实例。"}帮忙改改哦!!!!!


Public Class Form1
Dim intI As Integer
Dim instance As InvalidOperationException
Dim isnumberic(Txtinput.text) As Integer
Dim intnumber As Decimal

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnok.Click

intI += 1
If isnumberic(Txtinput.Text) Then
Select Case Convert.ToInt32(Txtinput.Text)
Case Is > intnumber
MessageBox.Show("呵呵,数太大了哦,请小一点")
Case Is < intnumber
MessageBox.Show("数太小了,请大以点")
Case Is = intnumber
MessageBox.Show("恭喜你!!你猜对了!" & vbNewLine & "你一共猜了" & CStr(intI) & "次")
intI = 0
Dim ints As Random = New Random()
intnumber = ints.Next(1, 100)
End Select
Else
MessageBox.Show("你输入的不是数字!")
End If
End Sub

End Class
[NullReferenceException: 未将对象引用设置到对象的实例。]
Hszw.Account.Default.Page_Load(Object sender, EventArgs e) +24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436



re: 找不到可安装的ISAM XS2005 2008-06-22 16:30  
ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+Excelpath+';Extended Properties=Excel 8.0;HDR=YES;IMEX=1;Persist Security Info=False';
这个运行出错
ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+Excelpath+';Extended Properties=Excel 8.0;Persist Security Info=False';
这个正确,为什么不能加“HDR=YES;IMEX=1”
re: 找不到可安装的ISAM szhang 2008-06-05 12:41  
Thank you 帮我解决了大问题!
web.config中没有身份验证:identity时,也会出现此问题,应加上例如:
<identity impersonate="true" userName="Administrator" password="123456"/>
re: 找不到可安装的ISAM 1212 2008-04-11 08:51  
还是不行
re: 找不到可安装的ISAM 不做懒人 2008-04-06 09:36  
感谢中。。。。
我网上搜了半天,都没解决问题,唉,看来那么多是不是都没测试,真是不负责任。

再次感谢!
垃圾,写又不写好一点.让看又看不懂.没点文化.
当Application没有lock()时也会出现该提示。。。
re: 找不到可安装的ISAM 哥们!!!!!帮死忙了,这都12点了,才看到这个文章! 2008-03-10 23:49  
谢谢谢谢!谢谢谢谢!谢谢谢谢!谢谢谢谢!
re: 找不到可安装的ISAM 秒大刀 2008-02-17 22:22  
非常感谢!
好贴!!!!!!!!!!!!!!!!!!!!!!!!!!!!
re: 找不到可安装的ISAM Muse 2007-12-23 19:25  
非常感谢,解决了我的大问题...
当你发现所有的方法不行时,打上.netframework的补丁
晕,怎么全是问的,有高手能回答嘛,楼主也现下身啊
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:


行 427: else
行 428: {
行 429: sql="select EDIID,contact,PhoneNO,tel, arrearsamount,arrearsamount*0.003*datediff(day,getdate(),unpaidfmonth) as Latepayments,arrearsamount*0.003*datediff(day,getdate(),unpaidfmonth)+arrearsamount as amounttotal,paymentsign,unpaidfmonth,DocumentsID, Documentsaddr from EDIdata where addtype='" + DropDownList6.SelectedItem.Text.Trim() +"' and name in (select name from userinfo where username='"+ Session["username"] +"')" + org+ "ORDER BY arrearsamount DESC,unpaidfmonth DESC";
行 430:
行 431: }


源文件: c:\inetpub\wwwroot\zhangjun\debts.ascx.cs 行: 429

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
zhangjun.Debts.BindGrid() in c:\inetpub\wwwroot\zhangjun\debts.ascx.cs:429
zhangjun.Debts.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\zhangjun\debts.ascx.cs:148
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


我安装了PS1补丁之后这个问题就没有出现啦.....哈哈
我用Sql Server 中的Northwind数据库时就出现未将对象引用设置到对象的实例的错误???????
为什么??????//
未将对象引用设置到对象的实例...这个错误跟系统本身有没有关系????
会不会是因为系统本身的问题而导致这个错误????
因为我写的每一个程序都会出现这个问题.............
“/xxx”应用程序中的服务器错误。
--------------------------------------------------------------------------------

未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:


行 7: Dim myConn As New SqlConnection(ConnStr)
行 8: Dim myAdp As New SqlDataAdapter(selectStr, myConn)
行 9: myConn.Open()
行 10: mydataset.Clear()
行 11: myAdp.Fill(mydataset, 0)


源文件: D:\ASP.NET\ASPNET\YeahTel\Woctyln.vb 行: 9




不知道是怎么的,麻烦有知道的同志帮我解决一下哈.
re: 胡思乱想---什么是程序员? ╃小〥斌╄ 2007-08-15 14:45  
很深奥
re: 胡思乱想---什么是程序员? 痴情种子 2007-08-15 14:20  
想成为一个程序员要具备什么一些条件呢?我是新手,也想在这跟所有的电脑高手交流,这是我的电话号码,13400746553
感觉最多的是不是,明明数据库已经断开了,然后又想从数据库中读取数据,我遇到最多的就是这种情况了,总是关于数据库的连接管理的不好,不知道有没有这方面的专家啊
未将对象引用设置到对象的实例。
行 5: Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
行 6: Dim tb As TextBox = GridView1.FindControl("textbox2")
行 7: tb.Text = "SSS"
行 8:
行 9: End Sub

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
yun 谁给解决一下 怎么都是问的???迷糊死我了
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
BJ.Global.Session_Start(Object sender, EventArgs e) in c:\inetpub\wwwroot\BJ\Global.asax.cs:40
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +132
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +514
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +693
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +66
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2379; ASP.NET 版本:1.1.4322.2379



本地机运行正常,上传到WEB空间就不出现这个问题,晕!!!!
有知道的联系我,QQ:99225754 EMAIL:haoren6571@sina.com
定重谢,急用!!!!
我也遇到了同样问题,都改了一个礼拜了,还是看不出任何问题,各种方法都是过了,就差重装系统和软件了!@JINN
re: 找不到可安装的ISAM bsfx 2007-05-07 12:13  
非常感谢
re: 找不到可安装的ISAM 余国先 2007-05-03 15:29  
非常感谢,string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" + Dir + "\\"+fileName + ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1;\""; 这样才可以了,其他的我测试了都不行!
我也遇到这样的问题啊!谁能帮忙解决阿?
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:


行 102: uid = Page.Request("id")
行 103: Dim sql As String = " "
行 104: sql = "update students set userid='" + userid.Text + "',username='" + txtusername.Text + "',minzu='" + txtminzu.Text + "',sex='" + txtsex.SelectedItem.Value + "',birthday='" + txtbirthday.Text + "',intime='" + txtintime.Text + "',class='" + txtclass.Text + "',comefrom='" + txtcomefrom.Text + "',beizhu='" + txtbeizhu.Text + "'where userid='" + uid + "'"
行 105: cmd = New SqlCommand(sql, conn)
行 106: conn.Open()


源文件: E:\系统.NET\code\第8章 学生信息管理系统\student\editstudent.aspx.vb 行: 104

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
newcon.editstudent.Button2_Click(Object sender, EventArgs e) in E:\系统.NET\code\第8章 学生信息管理系统\student\editstudent.aspx.vb:104
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277



@JINN
我也碰到了这个问题,在引用传过来的id的时候,有几个地方可以引用到,有一个地方不能.而且系统还不提示错误!
Public Function sql_select(sql as string,Byref conn as oledbconnection) as oledbdatareader
dim comm as oledbcommand
on error resume next
comm = new oledbcommand(sql,conn)
if err.number>0 then err_show("查询数据失败!")
return comm.executereader()
End Function
我邮箱 liyombim@136.com
谁知道的帮个忙啊!!!!!!!!!!!!!!!!!!!!
我的是本地好好的,放到服务器就出
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:


行 362: rs = sql_select(sql,conn)
行 363: sql="" & chr(13)&chr(10) & chr(13)&chr(10) & chr(13)&chr(10)
行 364: if true=rs.read() then sql= rs(0)
行 365: rs.Close
行 366: return sql


我的代码:
<%@ page language="VB" %>
<%@ Import NameSpace="System.Data" %>
<%@ Import NameSpace="System.Data.Oledb" %>
<%@ Import NameSpace="System.Text.RegularExpressions" %>
<%@ Import NameSpace="System.Web.SessionState" %>
<%
Dim start_timer
start_timer = Timer
Dim sql_open_num as integer
Dim server_url as string
server_url = Request.ServerVariables("URL")
if server_url="/include/connection.aspx" then err_show("You can't open the file Alone !")
Dim conn as oledbConnection
Dim conn_str as string
conn_str = "provider=Microsoft.Jet.OLEDB.4.0;Data Source="& Server.MapPath("/#web data/card.mdb")
conn = New OleDbConnection(conn_str)
conn.Open()
Dim web_msg as Array
web_msg = split(GetWebMsgs("网站信息",conn),chr(13)&chr(10))
%>
<script ranat="server">
Public Function GetWebMsgs(title as string,Byref conn as oledbconnection) as String
dim sql as string
dim rs as oledbdatareader
sql = "SELECT [readme] as rs from [webmsgs] where [title]='"& title &"'"
rs = sql_select(sql,conn)
sql=""
if true=rs.read then sql= rs(0)
rs.Close
return sql
End Function
</script>
共3页: 1 2 3 下一页 
 
Copyright © 向.net进军 Powered by: 博客园 模板提供:沪江博客