Error using Microsoft Access Database to create ASP.NET website -
I am making a simple C # CMS system using a Microsoft Access database
This is my The connection string is the Web.config file
& lt; Add name = "VirtualCMSConnectionString" connectionString = "provider = Microsoft.Jet.OLEDB.4.0; data source = | data directory | ASPNetDB.mdb" providerName = "system.data.OleDB" /> I used the "Access Provider" module here:
The problem I have is that when I try to create a dataset with dataset designing I receive
Unable to open connection to database
"For data provider named 'System.Data.OleDb' The provider can not get the factory
Check the connection and try again
Anyone
Thank you.
Do you Downloaded vsi, removed it, created SampleAccessProviders.dll and added it to your project?
Now that we have created the assembly, it's really time to use it. Your Visual Studio Or open the View Web Developer Express and create a new website. You create a new subfolder in the project. Right-click on it and select Add existing items that appear from the context menu ... Navigate to the place where the built assembly is added to the project's bin folder in the website. After this, after repeating the same thing with Access Database (ASPNATDB.MDB) file, but this time it was placed in dedicated folder App_Data which is one of the predefined ASP.NET 2.0 subfolders.
Comments
Post a Comment