Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2004, 02:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

How does your final connection string look like?
Are you connection to a SQL Server or an Access database? If you post your current connection string, we can give you some hints on what security permissions to change. It's different for both type of databases....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Special Cases by Massive Attack (Track 4 from the album: 100th Window)

 
Old April 22nd, 2004, 07:45 AM
Registered User
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,
I have tried connecting to Access and as well as SQL... pretty close to same results. This happens when I use the GUI (Drag and Drop) to build my page. Anyway... Here was my latest String: (By the way .. Thanks for Y'alls Time)

Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data Source=C:\adonetsbs\SampleDBs\nwind.mdb;Mode=Share Deny None;Extended Properties="";Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False

 
Old April 22nd, 2004, 08:17 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right. If I were you, I'd try this:

1. Change your connection string to this:
"Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=C:\adonetsbs\SampleDBs\nwind.mdb;Mode;
User ID=Admin;Password="

You don't really need the rest.

2. Make sure that the ASPNET account (or the account you're using when you're using impersonation) has access to the C:\adonetsbs\SampleDBs folder. Granting access to just the database file is not enough, as the account also needs permissions to write the .lck files.

Take a look here: http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=263 for more details how to do this. The first half of the article doesn't apply to you (it's for classic ASP mostly), but be sure to check out the section titled: Changing the Security Settings. This section explains the steps you need to take to grant the necessary permissions.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Ramshackle by Beck (From the album: Odelay)

 
Old April 24th, 2004, 11:21 PM
Registered User
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

Thanks for your help. The Article was excellent and it took me straight through the problem.

Thanks Again,
Gary Hopson






Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Data.OleDb.OleDbException: No value given f tjgrindsted ASP.NET 2.0 Basics 0 January 24th, 2007 07:25 AM
[OleDbException (0x80004005): IErrorInfo.GetDescri vandat ASP.NET 1.0 and 1.1 Basics 5 January 8th, 2007 12:16 PM
System.Data.OleDb.OleDbException: Expected query n Thac Classic ASP Databases 0 July 3rd, 2005 01:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.