I am reading the book <Professional ADO.NET 2: Programming with SQL Server 2005, Oracle, and MySQL>.
when the code run to this block it takes error. why?
Public Shared ReadOnly Property Factory() As DbProviderFactory
Get
Return DbProviderFactories.GetFactory("Microsoft.SqlServe rCe.Client")
End Get
End Property
the error info is belown
<
ô´¦Ãà System.Configuration.ConfigurationError****ception
BareMessage="Ãò»µ½»òÃ÷¨¼ÃÃÃÃÃà ¢²áµà .Net Framework Ãý¾ÃÃṩ³ÃÃò¡£"
Line=0
Message="Ãò»µ½»òÃ÷¨¼ÃÃÃÃÃ⠲áµà .Net Framework Ãý¾ÃÃṩ³ÃÃò¡£"
Source="System.Data"
StackTrace:
ÃÃ System.Data.Common.DbProviderFactories.GetFactory( DataRow providerRow)
ÃÃ System.Data.Common.DbProviderFactories.GetFactory( String providerInvariantName)
Ãà DataMove.CodeSamples.GenericFactoryHelper.get_Fact ory() ûÃà D:\²ú÷\µçÃþ¯²ì\DataMove\DataMove\Dat aMove\GenericFactoryHelper.
vb:ÃúÃ
26
Ãà DataMove.CodeSamples.GenericFactoryHelper.get_Conn ectionStringBuilder() ûÃà D:\²ú÷\µçÃþ¯²ì\DataMove\DataMove\Dat aMove\GenericFactoryHelper.
vb:ÃúÃ
46
Ãà DataMove.Form1.Button5_Click(Object sender, EventArgs e) ûÃà D:\²ú÷\µçÃþ¯²ì\DataMove\DataMove\Dat aMove\Form1.
vb:ÃúÃ
259
ÃÃ System.Windows.Forms.Control.OnClick(EventArgs e)
ÃÃ System.Windows.Forms.Button.OnClick(EventArgs e)
ÃÃ System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs 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.O nMessage(Message& m)
ÃÃ System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
ÃÃ System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ÃÃ System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
ÃÃ System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
ÃÃ System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
ÃÃ System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
ÃÃ System.Windows.Forms.Application.Run(ApplicationCo ntext context)
ÃÃ Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.OnRun()
ÃÃ Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.DoApplicationModel()
ÃÃ Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.Run(String[] commandLine)
Ãà DataMove.My.MyApplication.Main(String[] Args) ûÃà 17d14f5c-a337-4978-8281-53493378c1071.
vb:ÃúÃ
81
ÃÃ System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
ÃÃ System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
ÃÃ Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
ÃÃ System.Threading.ThreadHelper.ThreadStart_Context( Object state)
ÃÃ System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
ÃÃ System.Threading.ThreadHelper.ThreadStart()
>