Accessing Access DB works locally but not on server

Hi guys,

ASP .NET website that I created doesn't work on IIS 7 on SBS 2008. It says provider is not registered. I did install Access engine but I still get that error. It has something to do with this server being 64 bit. I tried setting app pool to run 32-bit apps but the pool stops working when I try accessing the website. How do I make this work? Is it not possible to use Access database for an ASP website on SBS 2008?
Yury MerezhkovDevelopment Team LeadAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Wayne BarronConnect With a Mentor Author, Web DeveloperCommented:
I run IIS5 here (Winxp) IIS6 on hosting server.
Yes - You can do a redirect
Open IIS7.
Go to the [Properites] of the site that you want to do the redirect to.
Choose the [Home Directory] Tab.
At the top choose [A redirection to a URL]
Then type in the URL that you want to point it to.
[Apply] then [OK]
Then test it out.

As for IIS7.
I am helping another person with issues on IIS7.
It seems that there is some major issues around this version of IIS.
His issue is the display of XML, and yours is an issue with Connection.

As for Jet not supported under 64bit  --- Vista  --- 2008

Good Luck
Wayne BarronAuthor, Web DeveloperCommented:
for access
Access 2007

Sometimes it is just a slight mis-spelling of a word that can cause this issue.

Good Luck
Yury MerezhkovDevelopment Team LeadAuthor Commented:
No, my access string is fine. The website works locally just fine. The connection to the db fails.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Wayne BarronAuthor, Web DeveloperCommented:
I am not a ASP.NET, I do ASP Classic.
But, what is your connection string?
Can you provide that? Also, have you tried a JET connection
Something like this?

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath ("YourDB.mdb") & ";"

All Servers come default with the Jet Engine installed, so i am pretty sure that it will work.
As mentioned, I do not know nothing about .NET, so I am not sure if this is the correct way for doing the connection string of not.

Good Luck
Yury MerezhkovDevelopment Team LeadAuthor Commented:
Here is the code where it fails (includes my connection string which I got from that website you provided). It actually works fine on our IIS 6 server on Windows Server 2003 Enterprise (it's 32 bit...). From what I understand there is not JET engine for Access that works under 64 bit systems...

There is one I idea I had. We have our router setup so that it redirects port 80 to our main SBS server with IIS 7 ( The server that my website actually works fine on is I could, of course, set it up with some random port an forward that port to But I don't want users to type in Is it possible to set our IIS 7 up so it redirects all requests to IIS 6?

Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
        Session("SCart") = "CartSession"
        Dim strConn As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\titanmusic.accdb;Persist Security Info=True"
        Dim objConnection As New System.Data.OleDb.OleDbConnection(strConn)
        Dim strSQL As String = "SELECT COUNT(*) FROM Cart WHERE SessionID='" & Session.SessionID & "'"
        Dim objCommand As New System.Data.OleDb.OleDbCommand(strSQL, objConnection)
            itemsInCart = objCommand.ExecuteScalar
        Catch ex As Exception
            Response.Write("Connection failed to open. Error: " & ex.ToString())
        End Try
    End Sub

Open in new window

Yury MerezhkovDevelopment Team LeadAuthor Commented:
I went to http redirect and it's not working. Do you have any idea why my application pool stops working on the first request when I set it to run 32-bit apps in properties?
Wayne BarronAuthor, Web DeveloperCommented:
I am sorry, I cannot answer that question.
I have never been faced with such an issue.
Yury MerezhkovDevelopment Team LeadAuthor Commented:
No need for an answer, I transferred everything to SQL Server 2008 Enterprise. Using SQLClient for connecting. Works awesome! Thank you for trying to help me!
Wayne BarronAuthor, Web DeveloperCommented:
your welcome.
Good luck with your work.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.