CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
Microsoft Gold Certified Partner – 3 Months Free and Free Setup



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 3/10/2007 6:39:12 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 38 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
amardilo
Asp.Net User
Data Access Application Block with Access 973/10/2007 6:39:12 PM

0

Hi there. I am working on a old system which uses Access 97 (I need to write a ASP.NET 2.0 front end for it). Does anyone know the correct connection string to go into my web.config file to get it to work with my DAAB?

I have tried a few Access connection strings on the net but none seem to work. I keep getting

"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Configuration.ConfigurationErrorsException: The requested database mydbconnectionstring is not defined in configuration."


I have 2 databases I need to connect to and I have tried using OLEDB and ODBC but nothing seems to work.

Below is my Web.Config file if that helps (slightly edited).

<configuration>
    <configSections>
        <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"/>
    </configSections>
  <dataConfiguration defaultDatabase="Database1" />
  <appSettings/>
    <connectionStrings>
        <add name="Database1" connectionString="myConnectionString.mdb" providerName="System.Data.OleDb" />
        <add name="database2" connectionString="myConnectionString.mdb" providerName="System.Data.Odbc"/>
   
    </connectionStrings>

..........

 Anyone got any ideas?

 

Mikesdotnetting
Asp.Net User
Re: Data Access Application Block with Access 973/10/2007 8:15:55 PM

0

"myConnectionString.mdb" is not a connection string.  This is:

"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=<full path to database>\mydbname.mdb". Try that first.  If it doesn't work, you will have to try the ODBC driver (and the very best of British to you).

http://www.connectionstrings.com/?carrier=access 

 


Regards Mike

8 out of 10 questions have already been asked. Their answers can be found using Google. Go on, try it.

If you prefer code samples or tutorials in another language, translate it for free at www.codechanger.com
amardilo
Asp.Net User
Re: Data Access Application Block with Access 973/11/2007 9:06:08 AM

0

Thanks bud, it worked a treat. All the connections strings I found with OleDb had a 12 in it and were different to that.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Computing in Civil Engineering: Proceedings of International Computing Congress Held in Conjunction with 1998 ASCE Annual Convention and Exhibition, Boston, Massachusetts, October 18-21, 1998 Authors: ma International Computing Congress in Civil Engineering 1998 Boston, Kelvin C. P. Wang, Teresa M. Adams, American Society of Civil Engineers Technical Council on Computing and Information Technology. Committee on Coordination Outside ASCE., May Lou Maher, Anthony Songer, Pages: 911, Published: 1998
AutoCAD VBA Programming Tools and Techniques: Tools and Techniques Authors: Bill Kramer, John W. Gibb, Pages: 366, Published: 1999
Distributed Micro/minicomputer Systems: Structure, Implementation, and Application Authors: Cay Weitzman, Pages: 403, Published: 1980
Using Access 97 Authors: Roger Jennings, Pages: 1275, Published: 1997
Alison Balter's Mastering Microsoft Office Access 2003 Authors: Alison Balter, Pages: 1416, Published: 2003
TENCON'97, Brisbane, Australia: Proceedings of IEEE TENCON'97, IEEE Region 10 Annual Conference : Speech and Image Technologies for Computing and Telecommunications, Queensland University of Technology, Brisbane, Australia, 2-4 December 1997 Authors: Mohamed Deriche, Miles Moody, Mohammed Bennamoun, IEEE Region 10, Queensland University of Technology School of Electrical and Electronic Systems Engineering, Queensland University of Technology, IEEE Queensland Section, University of Queensland, Griffith University, Institute of Electrical and Electronics Engineers, Pages: 850, Published: 1997
IEEE International Conference on Multimedia Computing and Systems '97: June 3-6, 1997, Ottawa, Ontario, Canada Authors: IEEE Computer Society Technical Committee on Multimedia Computing, Institute of Electrical and Electronics Engineers, Ieee Computer Society, Pages: 665, Published: 1997
Information and Communications Security: First International Conference, ICIS [i.e. ICICS]'97, Beijing, China, November 11-14, 1997 : Proceedings Authors: Yongfei Han, Tatsuaki Okamoto, Sihan Qing, Pages: 484, Published: 1997
Services and Visualization: Towards User-friendly Design : ACoS'98, VISUAL'98, AIN'97 Selected Papers Authors: Tiziana Margaria-Steffen, Tiziana Margaria, Bernhard Steffen, R. Ruckert, Joachim Posegga, Pages: 322, Published: 1998
Inside AutoCAD Map 2000: The Ultimate How-To Resource and Desktop Reference for AutoCAD Map (with CD-ROM) Authors: Dylan Vance, Ray Eisenberg, David Walsh, Pages: 611, Published: 2000

Web:
Data Access Application Block with Access 97 - ASP.NET Forums Re: Data Access Application Block with Access 97. 03-10-2007, 3:15 PM. Contact. Answer ... Re: Data Access Application Block with Access 97 ...
data access and data access application block Resources | TechRepublic For example, the Data Access Application Block, the Cryptography ... including Access 2003, Access XP, Access 2000, Access 97, Access 95 and Access 2.0 ...
Data access application block Free Download Data access application block Free Download,Data access application block Software Collection Download.
Data Access Application Block 4.0 for VS 2008 Hi, I just downloaded Data Access Application Block 4.0 for VS 2008. ... SQL Express Edition and MS-Access 97, MS-Access 2000 and MS-Access 2007? ...
Repost: Data Access Application Block and MS Access support? Does anyone know if there is a planned support for MS Access in the MS Data Access Application Block? This application block is now part of ...
CodeGuru: Data Access Application Block Streamlines Your Data ... CodeGuru: Data Access Application Block Streamlines Your Data-Access Layer. Downloads. q. EntLibDataAccess.zip - Download source code - 97 Kb ...
CodeGuru: Data Access Application Block Streamlines Your Data ... This article introduces the EntLib Data Access Application Block and shows how it makes .... Downloads; EntLibDataAccess.zip - Download source code - 97 Kb ...
Optimizing MS Access 97 Application Performance In the area of data access, improvements are related to the use of the new .... Microsoft Access 97 contains a native tab control. If you application uses ...
CodeGuru: Data Access Application Block Streamlines Your Data ... To understand how to utilize the Data Access Application Block to execute a stored .... Downloads; EntLibDataAccess.zip - Download source code - 97 Kb ...
CodeProject: Different Forms to Select Data using SQL and .NET ... Selecting Data using Microsoft Data Access Application Block ... You can execute them against a Microsoft SQL Server 2000+, Microsoft Access 97+, ...












enterprise library on host - required permissions cannot be acquired. help?!

data application block question

daab and database connection string

how do i handle output parameters in 3.1?

microsoft enterprise library problem.

encrypting the dataconfig file outside of the configuration ui for entlib june 2005

which database object to use? generic or database related?

smart client ffline application block

visual studio 2003 - 2005 and application blocks data conversion errors

re:how to use ole object in microsoft access to store picture

is following true or false?

please, need help with error. thank you.

data types in sql server 7.0

exception hanndling message in component ?

configuration file location for validation block

sql server money and .net data type

closing connection

applicationblocks referencing issue

how to use parameter

need help with the daab and multiple databases.

no results available for the request id

what does this exception mean?

ms exception management application block

data access layer

microsoft enterprise libray

entreprise library - the same query in all sgbd - urgent

how to connect to hundred's of sql server instances via entlib

caching question

ms log parser with logging block output?

general question

   
  Privacy | Contact Us
All Times Are GMT