|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
AccessDB on a WebServerI created a windows application, added a Grid Control and connected to the
Pubs.mdb Access database locally with no trouble. Next I copied Pubs to a WebServer, changed the connection string by providing the IP address of the web server but the error below occurs. I tried the domain name ( like ibm.com\Folder) for the server and that failed also. I don't think I'm even attempting to hit on the server! The error is shown below An OleDBException was unhandled ==> Me.AuthorsTableAdapter.Fill(Me.PubsDataSet.authors) Error : Cannot start your application. The workgroup information file is missing or opened exclusively by another user. TIA Bob Bob Palank wrote:
Show quoteHide quote > I created a windows application, added a Grid Control and connected to the Try using the full URL path to the file. Here are three different> Pubs.mdb Access database locally with no trouble. Next I copied Pubs to a > WebServer, changed the connection string by providing the IP address of the > web server but the error below occurs. I tried the domain name ( like > ibm.com\Folder) for the server and that failed also. I don't think I'm even > attempting to hit on the server! The error is shown below > > An OleDBException was unhandled ==> > Me.AuthorsTableAdapter.Fill(Me.PubsDataSet.authors) > > Error : Cannot start your application. The workgroup information file is > missing or opened exclusively by another user. > > TIA > > Bob connection string options depending on your situation. If you post your current connection string (masked for security of course) we can help better. Standard security: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=www.test.com\somepath\mydb.mdb;User Id=admin;Password=;" Workgroup (system database): "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=www.test.com\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;" With password: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=www.test.com\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;" Last Clean Version Used (Language VB.Net Express 2005) :
As per Paul Code below lives in the app.confi file <connectionStrings> <add name="CRUD.My.MySettings.PubsConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=stlcc.org\SLF\Pubs.mdb; JetOLEDB:Database; User ID=someUser; Password=somePassword;" providerName="System.Data.OleDb" /> <add name="CRUD.My.MySettings.PubsConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=stlcc.org\SLF\Pubs.mdb; User ID=someUser; Password=aGoodPassword;" providerName="System.Data.OleDb" /> </connectionStrings> I created a windows application, added a Grid Control and connected to the Pubs.mdb Access database locally with no trouble. Next I copied Pubs to a WebServer, changed the connection string by providing the IP address of the web server but the error below occurs. I tried the domain name ( like ibm.com\Folder) for the server and that failed also. I don't think I'm even attempting to hit on the server! The error is shown below An OleDBException was unhandled ==> Me.AuthorsTableAdapter.Fill(Me.PubsDataSet.authors) Error : Cannot start your application. The workgroup information file is missing or opened exclusively by another user. ------------------------------------------------------------------------------------------ I did not create a Workgroup information file so it probably does not exist on the server! Is this a step I missed ??? ------------------------------------------------------------------------------------------ Paul Clement MVP Suggests : : : I tried and it still fails with the same error Workgroup (system database): "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=www.test.com\somepath\mydb.mdb; Jet OLEDB:System Database=system.mdw;" With password: "Provider=Microsoft.Jet.OLEDB.4.0; DataSource=www.test.com\somepath\mydb.mdb; Jet OLEDB:Database Password=MyDbPassword;" =========================================================================== Show quoteHide quote "Charlie Brown" <cbr***@duclaw.com> wrote in message news:1147701844.576696.11920@j33g2000cwa.googlegroups.com... > > Bob Palank wrote: >> I created a windows application, added a Grid Control and connected to >> the >> Pubs.mdb Access database locally with no trouble. Next I copied Pubs to a >> WebServer, changed the connection string by providing the IP address of >> the >> web server but the error below occurs. I tried the domain name ( like >> ibm.com\Folder) for the server and that failed also. I don't think I'm >> even >> attempting to hit on the server! The error is shown below >> >> An OleDBException was unhandled ==> >> Me.AuthorsTableAdapter.Fill(Me.PubsDataSet.authors) >> >> Error : Cannot start your application. The workgroup information file is >> missing or opened exclusively by another user. >> >> TIA >> >> Bob > > Try using the full URL path to the file. Here are three different > connection string options depending on your situation. If you post your > current connection string (masked for security of course) we can help > better. > > > Standard security: > > "Provider=Microsoft.Jet.OLEDB.4.0;Data > Source=www.test.com\somepath\mydb.mdb;User Id=admin;Password=;" > > > > Workgroup (system database): > > "Provider=Microsoft.Jet.OLEDB.4.0;Data > Source=www.test.com\somepath\mydb.mdb;Jet OLEDB:System > Database=system.mdw;" > > > > With password: > > "Provider=Microsoft.Jet.OLEDB.4.0;Data > Source=www.test.com\somepath\mydb.mdb;Jet OLEDB:Database > Password=MyDbPassword;" > Make sure on your webserver that you enable read/write/execute
permissions on the folder and the database file. I checked and was told that the permissions are set to
read/write/execute on both the folder and the database file. Now, as I see it, the Pubs.mdb database lives in a folder on the webserver with the appropriate permissions. Using the connection string previously discussed, I ought to be able to get access to that database and display records in the GridView on a client machine. Is this correct ? Is there some example of a mdb (perhaps Pubs.mdb) living on some server that is publically accessible using VB.Net ? Still Stuck Bob Show quoteHide quote "Charlie Brown" <cbr***@duclaw.com> wrote in message news:1147793379.489034.278470@j55g2000cwa.googlegroups.com... > Make sure on your webserver that you enable read/write/execute > permissions on the folder and the database file. > Bob,
> Now, as I see it, the Pubs.mdb database lives in a folder on the webserver Are you sure of that because the ASPNET user is ASPNET.> with the appropriate permissions. Cor Thanks, I got past one error and now have another.
My Assumptions: 1. One can use VB.Net Express 2005 to write a client resident application to access an .mdb file living on a remote server. 2. No Microsoft Access code elements need to reside on the remote server except the *.mdb file. 3. On the remote server, permissions need be set so that anyone can have read access to that Access database. Are these assumptions true ? If the assumptions are true, the local error message Me.AuthorsTableAdapter.Fill(Me.PubsDataSet.authors)==>Could not find installable ISAM does not make sense to me. TIA for any help. Bob Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:OpbWM7YeGHA.3468@TK2MSFTNGP03.phx.gbl... > Bob, > >> Now, as I see it, the Pubs.mdb database lives in a folder on the >> webserver with the appropriate permissions. > > Are you sure of that because the ASPNET user is ASPNET. > > Cor >
Storing collection of one class inside another
Server calls client behind firewall/NAT convert byte() in ASCII code to letters? Need one Regular Expression word automation bookmarks DataGrid / Dataset / DataAdaptor / DataBase updat problem - please Setting Limitation to number of Rows in DataGrid? Access mdb file on server Raise Maximum Compiler Error Limit? Hide an application to taskbar by the clock |
|||||||||||||||||||||||