Re: Feature is not available?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On dc.open. Here's the actual code. sConnStr is the connection string
described earlier.

Dim dc As New OleDb.OleDbConnection(sConnStr)
Try
dc.Open()
Catch ex As Exception
MsgBox("Open Fails, error = " + ex.Message)
Exit Sub
End Try

"Paul Pedersen" wrote:

What is the line that's causing the error?


"B. Chernick" <BChernick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:14E43ECC-8BEB-4B8D-8AA4-21C23A550614@xxxxxxxxxxxxxxxx
I'm trying to write a quickie Winforms utility (VB, 2.0) that will pack
some
FoxPro 6 dbf tables. Unfortunately the same connection strings that
worked
with my web app don't seem to work in Winforms. It's crashing on open
with a
'Feature is not available' message. (And yes I've already checked
ConnectionStrings.com)

I've tried a connection string of both:
"Provider=VFPOLEDB.1;" + <file path> + ";Collating Sequence=General"
(This is what I've been using in my web apps.)
and

"Provider=VFPOLEDB.1;DRIVER={Microsoft Visual FoxPro
Driver};SourceType=DBF;" + <file path> +
";Exclusive=NO;BackGroundFetch=NO;NULL=NO;Collate=MACHINE"

(got that one from ConnectionStrings.com)

What am I missing?

(Is there some reference I'm forgetting? Something extra needed in
Winforms
but not web apps???)



.



Relevant Pages

  • Re: MySql ado.net connector problem
    ... >> 2) I am trying to connect with asp.net web app. ... > the .NET provider you got from the web? ... That is the connection string that I was given from my host. ... a MySqlCommand object like this MySqlCommand command = new MySqlCommandI ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VS 2003 + opening a connection to SQL SERVER 2000 database
    ... > on the old development machine to be able to connect to SQL Server. ... What does your connection string look like? ... >>> Is this a web app? ... >>> use your local ASPNET account? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: error running off IIS
    ... I've a simple web app that pulls data from an excel sheet into a small ... When I copy the project to IIS wwwroot folder I get a ... Below is my connection string stored in web.config ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: trouble reading excel with ado.net
    ... Is it for web app or Windows app? ... If the connection string in your post is directly copied from your code, ... >> persists. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Membership connection string
    ... When you changed the web.config file, a new instance of your web app ... Connection string setup in the web.config and is working fine. ... I know need it to point to a security Database on a remote Sql Server ...
    (microsoft.public.dotnet.languages.csharp)