Click here to Skip to main content
15,743,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have windows application i need to connect with access database which is in my web server (
so please help me

this code does not work (Err Msg - Internet Server Error: Object/module not found)

Dim myConnection As OleDbConnection
Dim selectCommand As OleDbCommand
Dim myRead As OleDbDataReader

Dim strMyCon As String =""

strMyCon = "Provider=MS Remote; Remote Server=;Remote Provider=Microsoft.Jet.OLEDB.4.0; Data Source=/wwwroot/VehicleP_DB.mdb;Uid="";Pwd="";"

myConnection = New OleDbConnection(strMyCon)

selectCommand = New OleDbCommand("SELECT * FROM TblUser", myConnection)
myRead = selectCommand.ExecuteReader

Dim strPassWD As String
strPassWD = ""
Do While myRead.Read
strPassWD = myRead.GetString(2).TrimEnd
Updated 30-May-13 5:38am
[no name] 30-May-13 10:04am    
Okay you will probably want to write a web service then.

Your question is too general. What specifically are you having trouble with? What error messages are you getting? What code are you using? We can't help you if you just tell us something is broken. We aren't there to see what you see.

From the subject line of your question, it sounds like you need help building a connection string. There is a great resource out there that can help you with that....[^]

If this isn't what you need help with, please provide more information about your problem.
Share this answer
You do NOT want to use RDS at all. It's been deprecated for quite a while now and is disappearing from Windows starting with Windows 8 and Server 2012.

From MSDN:
Beginning with Windows 8 and Windows Server 2012, RDS server components are no longer included in the Windows operating system (see Windows 8 and Windows Server 2012 Compatibility Cookbook for more detail). RDS client components will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Applications that use RDS should migrate to WCF Data Service[^].

You should be exposing your data through a web service, WebAPI, or similar then your application code can connect to that and have the data manipulated outside of your code.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900