Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.Topics such as question regarding the System.Data namespace are appropriate.Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 28th, 2008, 07:55 PM
tyc tyc is offline
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default about factory

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. way?
 Public Shared ReadOnly Property Factory() As DbProviderFactory
            Get
                Return DbProviderFactories.GetFactory("Microsoft.SqlServe rCe.Client")

            End Get
        End Property


Reply With Quote
  #2 (permalink)  
Old August 28th, 2008, 10:50 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What is the error detail?

-Peter
compiledthoughts.com
Reply With Quote
  #3 (permalink)  
Old August 29th, 2008, 06:53 PM
tyc tyc is offline
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default


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\DataMove\Generi cFactoryHelper.vb:к 26
        DataMove.CodeSamples.GenericFactoryHelper.get_Conn ectionStringBuilder() λ D:\Ʒ\Ӿ\DataMove\DataMove\DataMove\Generi cFactoryHelper.vb:к 46
        DataMove.Form1.Button5_Click(Object sender, EventArgs e) λ D:\Ʒ\Ӿ\DataMove\DataMove\DataMove\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()
>

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not binding factory to JNDI, no JNDI name configur 4java EJB 0 August 13th, 2007 11:20 AM



All times are GMT -4. The time now is 08:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.