Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching to vfp Northwind, with errors
Message
From
21/08/2003 17:42:19
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Switching to vfp Northwind, with errors
Miscellaneous
Thread ID:
00822393
Message ID:
00822393
Views:
45
Hi Mortals,

I have both the Web Forms and Windows Forms Jump Start applicaitons running and accessing data from the SQL version of Northwind.
Since I am a vfp developer, I wanted to run the applications with the vfp version of Northwind.
My ABusinessObject sets the DatabaseKey property but not the DataAccessClass as seen below:
public class ABusinessObject : mmBusinessObject
	{
		public ABusinessObject()
		{
			DatabaseKey = "Northwind";
		
		}
	}
I set the connection string and DataAccessClass in my app.config as seen below:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<configSections>
		<section name="databases" type="System.Configuration.NameValueSectionHandler" />
	</configSections>
	<appSettings>
	    <add key="SecurityDatabaseKey" value="" />
		<add key="EventLog\Level" value="Verbose" />
		<add key="EventLog\Name" value="Application" />
		<add key="EventLog\Machine" value = "." />
		<add key="TraceLog\Level" value="Verbose" />
		<add key="TraceLog\Name" value="Application" />
		<add key="TraceLog\Machine" value = "." />
		<add key="TransactionLog\Level" value="Verbose" />
		<add key="TransactionLog\Name" value="Application" />
		<add key="TransactionLog\Machine" value = "." />
		<add key="LocalizeApp" value="false" />
	</appSettings>
	<databases>
		<!--<add key="Northwind\Connection" value="server=(local);Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind" />-->
		<add key="Northwind\Connection" value="Provider=vfpoledb.1;Data Source=C:\Program Files\Microsoft Visual FoxPro 8\Samples\Northwind\Northwind.dbc" />
	    <add key="Northwind\DataAccessClass" value="DataAccessOleDb"/>
	</databases>
	
	<system.windows.forms jitDebugging="true" />
</configuration>
I receieve the error: "Keyword not supported: 'provider' " when I press btnGetOrders in the Windows Forms application (have not tried the web app yet).
Is it possible that the Custom Data Access Class in the OrderDetail business object needs to be modified for vfp data.
I know the path to the vfp Northwind.dbc is correct because I was able to access it with vfp.


Any takers?

Thanx,
Neil
Next
Reply
Map
View

Click here to load this message in the networking platform