Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with accessing VFP data
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00846683
Message ID:
00846724
Vues:
17
>>I'm new to MM .Net and I'm having a problem setting up a business object
>>Here is what my webconfig looks like:
>>
>>  <databases>
>>    <add key="Emmis\Connection"value="provider=VFPOLEDB.1 ;data source='U\emmis.dbc';password='';user id=''" />
>></databases>
>>
>>Any of you guys know where I may have gone wrong here?
>>Thanks,
>
>Add a space between Connection" and value="
>
>The source='U\emmis.dbc is missing a colon.
>
>XML also tends to be case sensitive (although I'm not sure if the connection string is), so you might also want to change "data source" to "Data Source" and "provider" to "Provider" You can drop the password/userid attributes. They're not really necessary.


The web config errors were typos. I should have cut and past.
I did try dropping the login info and make a capital P in provider but still get the same error.
A cut and paste from webconfig:
	<databases>
		<add key="Emmis\Connection" value="Provider=VFPOLEDB.1 ;data source='U:\emmis.dbc'" />
	</databases>
Are there any samples on using oledb data? Maybe I’m not using the classes correctly.
Chris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform