我的C#Windows应用程序在VISTA中崩溃,但在XP中工作正常 [英] My C# Windows application is crashing in VISTA but works fine in XP
问题描述
大家好,
在我的应用程序中执行加载变量操作时,我的C#Windows应用程序崩溃.在此操作中,从compactSqlce查询的变量不会存储在VISTA的数据视图中,但在XP中可以正常工作.
抛出exceptiop的操作是
Hi All,
My c# windows application is crashing when load variables operation is performed in my application. In this operation, the variables queried from compactSqlce is not getting stored in a dataview, in VISTA, but works fine in XP.
The operations throwing exceptiop are,
query.AsDataView();
或
or
query.copytodatatable();
该查询正在获取所需的值,但无法将其放入数据视图或数据表中.
仅在VISTA中出现此问题
请帮忙!
错误详细信息如下:
请查找以下错误详细信息:
the query is fetching the required values, but fails to put them to a dataview or datatable.
This issue is occuring only in VISTA
Please help!
Error Details as Below :
Please find the error details as below :
System.TypeLoadException was unhandled
Method ''FindByKey'' on type ''System.Data.LinqDataView'' from assembly ''System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'' is overriding a method that is not visible from that assembly.
at System.Data.DataTableExtensions.AsDataView[T](EnumerableRowCollection`1 source)
at IRst_VariableSelectorUIExtension.frmVariableSelector.BeginLoadDataMap(String fileName) in D:\Service Tool_SCM\Source_latest\IRst_VariableSelectorUIExtension\frmVariableSelector.cs:line 920
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
非常感谢,
Vidya
Many Thanks,
Vidya
推荐答案
我会尝试下载并安装:
Microsoft .NET Framework 3.5 Service Pack 1 [ ^ ]
问候
Espen Harlinn
I would try downloading and installing:
Microsoft .NET Framework 3.5 Service Pack 1[^]
Regards
Espen Harlinn
这篇关于我的C#Windows应用程序在VISTA中崩溃,但在XP中工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!