最新评论
Re:找不到可安装的ISAM aixuexi 2010-09-15 09:46
确实是 忘了个分号 哈哈哈哈
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
[没有相关的源行]
源文件: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7128eae2\3d99563e\App_Web_lbi7qdsn.13.cs 行: 0
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
Discuz.ForumPage.showforum.ShowPage() +779
Discuz.Web.UI.Pages.BasePage..ctor() +6443
Discuz.ForumPage.showforum..ctor() +451
ASP.aspx_1_showforum_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7128eae2\3d99563e\App_Web_lbi7qdsn.13.cs:0
__ASP.FastObjectFactory_app_web_lbi7qdsn.Create_ASP_aspx_1_showforum_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7128eae2\3d99563e\App_Web_lbi7qdsn.20.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433
Re:找不到可安装的ISAM 简单自我 2009-08-20 15:20
快点啊有哪位高手可以告诉我一下,小女子谢谢了啊
Re:找不到可安装的ISAM 简单自我 2009-08-20 15:17
哪位高手可以帮我看一下这句话,我都试了但是还是出现找不ISAM
string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" + filenameurl + ";Extended Properties=\"Excel 12.0 ;HDR=YES; IMEX=1'\"";
Re:找不到可安装的ISAM 简单自我 2009-08-20 15:16
HDR=YES; IMEX=1'
Re:"未将对象引用设置到对象的实例"异常的原因,请大家接下去 0000000000000000 2009-07-06 18:58
我不是学编程的但现在用的一个软件每次运行到有一步就会弹出这个错误提示,请问哪位有什么办能法解决一下,谢谢!
“/Test”应用程序中的服务器错误。
--------------------------------------------------------------------------------
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 35: string youxizhiye = DropDownList3.SelectedValue.ToString();
行 36:
行 37: string yanzhengma = Session["ValidateCode"].ToString();
行 38:
行 39:
源文件: d:\What\feimibao.aspx.cs 行: 37
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
feimibao.Button1_Click1(Object sender, EventArgs e) in d:\What\feimibao.aspx.cs:37
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433
--引用--------------------------------------------------
核弹: 我常常遇到这个问题,郁闷
--------------------------------------------------------
源文件: D:\Applications\PUWorld\PUWorld.Web.Admin\module\shop\message.ascx.cs 行: 43
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
PUWorld.Web.Admin.module.shop.message.InitProductList(String subject, String content, String dateFrom, String dateTo, String status, Int32 curPage) in D:\Applications\PUWorld\PUWorld.Web.Admin\module\shop\message.ascx.cs:43
PUWorld.Web.Admin.module.shop.message.GetQueryParams() in D:\Applications\PUWorld\PUWorld.Web.Admin\module\shop\message.ascx.cs:79
PUWorld.Web.Admin.module.shop.message.Page_Load(Object sender, EventArgs e) in D:\Applications\PUWorld\PUWorld.Web.Admin\module\shop\message.ascx.cs:28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
re: 找不到可安装的ISAM just_go_for_it 2009-06-24 11:54
好…………
re: 找不到可安装的ISAM 单板机 2009-06-18 09:24
安装office 的isam
数据库中必须有数据否则excuteScalar()出错
re: 找不到可安装的ISAM jyrensl 2009-06-06 09:38
感激....非常感激..不知点形容..I love you
我出现这个错误,仅仅因为网站里面DAL的dll文件失效,业务层实例化不了IDAL里面的对象
但也浪费了一下午的时间在调代码上,orz...
re: 找不到可安装的ISAM julan 2009-03-26 10:04
按照这个方法,我的问题也解决了,这个问题困扰了我好多天呀,万分感谢!
re: 找不到可安装的ISAM watershui1016 2009-03-12 17:43
呵呵呵,我的问题自己解决了,是粗心的错误,我把data 写成了date,在这里提醒大家,编程要细心啊
re: 找不到可安装的ISAM watershui1016 2009-03-12 17:35
紧急求救,哪位大侠帮帮我啊
re: 找不到可安装的ISAM watershui1016 2009-03-12 17:30
With cnn2
.Provider = "microsoft.jet.oledb.4.0"
myfile = bg(m)
.ConnectionString = "extended properties=excel 8.0;" & "date source=" & myfile
.Open
我这个句子哪错了,也是找不到可装的ISAM
re: 找不到可安装的ISAM no name 2009-03-06 15:42
3q
--引用--------------------------------------------------
277922348: 可怜的我也遇到拉这样的问题!!!
<br>“/WebEwe”应用程序中的服务器错误。
<br>--------------------------------------------------------------------------------
<br>
<br>未将对象引用设置到对象的实例。
<br>说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
<br>
<br>异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
<br>
<br>源错误:
<br>
<br>行 85: SqlParameter parameterHyperLink = new SqlParameter("@adHyperLink_1",SqlDbType.VarChar ,500);
<br>行 86:
<br>行 87: parameterHyperLink.Value = Path.GetFullPath(GetFile.PostedFile.FileName);
<br>行 88:
<br>行 89: myCommand.Parameters.Add(parameterHyperLink);
<br>
<br>
<br>源文件: c:\inetpub\wwwroot\webewe\childpage.aspx.cs 行: 87
<br>
<br>堆栈跟踪:
<br>
<br>[NullReferenceException: 未将对象引用设置到对象的实例。]
<br> WebEwe.childPage.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\webewe\childpage.aspx.cs:87
<br> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
<br> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
<br> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
<br> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
<br> System.Web.UI.Page.ProcessRequestMain() +1263
<br>
<br>
<br>
<br>
<br>--------------------------------------------------------------------------------
<br>版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0
--------------------------------------------------------
re: 找不到可安装的ISAM oec2003 2009-01-10 00:55
thanks
void Print_Click(object sender, EventArgs e)//打印按钮事件,将调用下一则cs的某个类的方法
{
DataTable dt = (new SqlQuery()).DtQuery(string.Format(@"
select
convert(char(10),mdatetime,102) as 日期,
flag as 状态,
cast([number] as char(7))+' '+cast([number]%7 as char(1)) as 票号,
'武夷山' as 始发站,
arrival as 目的站,
weight as 计费重量,
[money] as 票面航空运费,
oil as 燃油加价,
beyond as 超限费,
insurance as 保险费,
price as 公布单价,
[money]+oil as 公布运费,
mperson as 经办人,
gkind as 备注
from waybill
where flag in (2, 10000) and mdatetime between '{0} 00:00:00' and '{1} 23:59:59' and airlineid={2} and mperson='{3}'
order by number", tb_begin.Text, tb_end.Text, cb_aircompany.SelectedValue, pub.str));
ReportPrint rpt = new ReportPrint();
rpt.PrinthyDaily(dt);
GC.Collect();
}
//被调用的类和方法
using Office2000;
using System.IO;
using System;
using System.Data;
using System.Windows.Forms;
namespace AF.Util
{
public ReportPrint()
{
exl = new Excel2000();
}
public void PrinthyDaily(DataTable dthy)
{
int row = 8;
exl.Caption = "货运销售日报打印";
exl.Open(@"E:\VS\货运\货运销售日报.xls");
exl.DisplayAlerts = false;
if(dthy == null) return;
foreach(DataRow d in dthy.Rows)
{
exl.SetCellText(row, "A", dr["票号"]);
exl.SetCellText(row, "B", dr["始发站"]);
exl.SetCellText(row, "C", dr["目的站"]);
exl.SetCellText(row, "D", dr["计费重量"]);
exl.SetCellText(row, "E", dr["票面航空运费"]);
exl.SetCellText(row, "F", dr["燃油加价"]);
exl.SetCellText(row, "G", dr["超限费"]);
exl.SetCellText(row, "H", dr["保险费"]);
exl.SetCellText(row, "I", dr["公布单价"]);
exl.SetCellText(row, "J", dr["公布运费"]);
exl.SetCellText(row, "K", dr["合计"]);
exl.SetCellText(row, "L", dr["备注"]);
row++;
}
}
}
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 AF.Util.ReportPrint.PrinthyDaily(DataTable dthy)
在 AF.Util.HYDaily.Print_Click(Object sender, EventArgs e)
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
re: 找不到可安装的ISAM TT520 2008-12-16 04:11
Shit!整了老半天原来是引号问题啊!太感谢楼主了!
Extended Properties='Excel 8.0;HDR=Yes;IMEX=1;'
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
谢谢啊 帮了我大忙了
re: "未将对象引用设置到对象的实例"异常的原因,请大家接下去 sophia_fei2008 2008-08-19 21:59
通过第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
谢谢谢谢!谢谢谢谢!谢谢谢谢!谢谢谢谢!