I moved our webserver from Windows 2000 to Windows 2008 Enterprise 64
Server. The code which was working fine on IIS5 and is not working well
on iis7

We are getting
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified

/internt/RoomBooking/EventCalendar/Includes/DBCONNECT.inc, line 38




Where:


Line 37: objConn.ConnectionString="DRIVER={Microsoft Access
Driver(*.mdb)}; DBQ=" & dbpath
Line 38: objConn.Open


Where:

Const DATABASE="Database\users.mdb"
dbpath = Server.MapPath(DATABASE)


I spent 8 hours to find solution without any rsultat.



Can anybody help?

Regards
Marcus

Re: IIS7 on Windows 2008 ODBC errror by Ken

Ken
Wed May 07 21:46:53 CDT 2008

Change your .inc file to be:

objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)}; DBQ=" &
dbpath

' Add these lines
Response.Write(objConn.ConnectionString)
Response.Flush
Response.End

and verify that your connection string is still actually valid.

Cheers
Ken

--
My IIS blog: http://adopenstatic.com/blog


"MarcusB" <marcusb@llunet.se> wrote in message
news:OKvXavFsIHA.3680@TK2MSFTNGP05.phx.gbl...
>I moved our webserver from Windows 2000 to Windows 2008 Enterprise 64
>Server. The code which was working fine on IIS5 and is not working well on
>iis7
>
> We are getting
> Microsoft OLE DB Provider for ODBC Drivers error '80004005'
>
> [Microsoft][ODBC Driver Manager] Data source name not found and no default
> driver specified
>
> /internt/RoomBooking/EventCalendar/Includes/DBCONNECT.inc, line 38
>
>
>
>
> Where:
>
>
> Line 37: objConn.ConnectionString="DRIVER={Microsoft Access
> Driver(*.mdb)}; DBQ=" & dbpath
> Line 38: objConn.Open
>
>
> Where:
>
> Const DATABASE="Database\users.mdb"
> dbpath = Server.MapPath(DATABASE)
>
>
> I spent 8 hours to find solution without any rsultat.
>
>
>
> Can anybody help?
>
> Regards
> Marcus


Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 02:04:45 CDT 2008

Hi Ken,
It seems that string is valid, I got response like:
DRIVER={Microsoft Access
Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb


THe PAth to users.mdb is right:
F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb


What else can I check?

Marcus
Ken Schaefer wrote:
> Change your .inc file to be:
>
> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)}; DBQ="
> & dbpath
>
> ' Add these lines
> Response.Write(objConn.ConnectionString)
> Response.Flush
> Response.End
>
> and verify that your connection string is still actually valid.
>
> Cheers
> Ken
>

Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 02:07:06 CDT 2008

Can it be that some drivers are not installed in IIS7 on the Server?


MarcusKen Schaefer wrote:
> Change your .inc file to be:
>
> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)}; DBQ="
> & dbpath
>
> ' Add these lines
> Response.Write(objConn.ConnectionString)
> Response.Flush
> Response.End
>
> and verify that your connection string is still actually valid.
>
> Cheers
> Ken
>

Re: IIS7 on Windows 2008 ODBC errror by David

David
Thu May 08 02:40:58 CDT 2008

On May 8, 12:07=A0am, MarcusB <marc...@llunet.se> wrote:
> Can it be that some drivers are not installed in IIS7 on the Server?
>
>
>
> MarcusKen Schaefer wrote:
> > Change your .inc file to be:
>
> > objConn.ConnectionString=3D"DRIVER=3D{Microsoft Access Driver(*.mdb)}; D=
BQ=3D"
> > & dbpath
>
> > ' Add these lines
> > Response.Write(objConn.ConnectionString)
> > Response.Flush
> > Response.End
>
> > and verify that your connection string is still actually valid.
>
> > Cheers
> > Ken- Hide quoted text -
>
> - Show quoted text -


There are no 64bit JET drivers. You need them to load MDBs. So, your
website will not work as-is.

This is not specific to IIS7 and is not new. You would have seen the
same thing on Windows Server 2003 64bit or even Windows XP Pro 64bit.

You've made a huge leap across three OS releases and from 32bit to
64bit. Unfortunately, some changes will be required. Moving to pure
SQL with something like the free SQL Express will give you the most
free and forward-looking design instead of hanging on to the past.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 03:05:25 CDT 2008

So what to do ? We have a lot mdb databases which was access by the same
driver.
Is possible to have another driver to access the same mdb files and do
not change whole code?
Please help?

Marcus
David Wang wrote:
David Wang wrote:
> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
>> Can it be that some drivers are not installed in IIS7 on the Server?
>>
>>
>>
>> MarcusKen Schaefer wrote:
>>> Change your .inc file to be:
>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)}; DBQ="
>>> & dbpath
>>> ' Add these lines
>>> Response.Write(objConn.ConnectionString)
>>> Response.Flush
>>> Response.End
>>> and verify that your connection string is still actually valid.
>>> Cheers
>>> Ken- Hide quoted text -
>> - Show quoted text -
>
>
> There are no 64bit JET drivers. You need them to load MDBs. So, your
> website will not work as-is.
>
> This is not specific to IIS7 and is not new. You would have seen the
> same thing on Windows Server 2003 64bit or even Windows XP Pro 64bit.
>
> You've made a huge leap across three OS releases and from 32bit to
> 64bit. Unfortunately, some changes will be required. Moving to pure
> SQL with something like the free SQL Express will give you the most
> free and forward-looking design instead of hanging on to the past.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //

> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
>> Can it be that some drivers are not installed in IIS7 on the Server?
>>
>>
>>
>> MarcusKen Schaefer wrote:
>>> Change your .inc file to be:
>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)}; DBQ="
>>> & dbpath
>>> ' Add these lines
>>> Response.Write(objConn.ConnectionString)
>>> Response.Flush
>>> Response.End
>>> and verify that your connection string is still actually valid.
>>> Cheers
>>> Ken- Hide quoted text -
>> - Show quoted text -
>
>
> There are no 64bit JET drivers. You need them to load MDBs. So, your
> website will not work as-is.
>
> This is not specific to IIS7 and is not new. You would have seen the
> same thing on Windows Server 2003 64bit or even Windows XP Pro 64bit.
>
> You've made a huge leap across three OS releases and from 32bit to
> 64bit. Unfortunately, some changes will be required. Moving to pure
> SQL with something like the free SQL Express will give you the most
> free and forward-looking design instead of hanging on to the past.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //

Re: IIS7 on Windows 2008 ODBC errror by Daniel

Daniel
Thu May 08 03:20:39 CDT 2008

As David already stated, there are no JET drivers for 64 bit Windows - so
there is no way to get this working on Windows 2008 64 bit. You will need to
switch to 32 bit Windows if you wish to continue using Access MDB databases.

Dan


MarcusB wrote on Thu, 08 May 2008 10:05:25 +0200:

> So what to do ? We have a lot mdb databases which was access by the
> same driver.
> Is possible to have another driver to access the same mdb files and do not
> change whole code?
> Please help?

> Marcus
> David Wang wrote:
> David Wang wrote:
>> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
>>> Can it be that some drivers are not installed in IIS7 on the Server?



>>> MarcusKen Schaefer wrote:
>>>> Change your .inc file to be:
>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>>>> DBQ="
>>>> & dbpath ' Add these lines
>>>> Response.Write(objConn.ConnectionString)
>>>> Response.Flush
>>>> Response.End and verify that your connection string is still
>>>> actually valid.
>>>> Cheers
>>>> Ken- Hide quoted text -
>>> - Show quoted text -


>> There are no 64bit JET drivers. You need them to load MDBs. So, your
>> website will not work as-is.

>> This is not specific to IIS7 and is not new. You would have seen the
>> same thing on Windows Server 2003 64bit or even Windows XP Pro 64bit.

>> You've made a huge leap across three OS releases and from 32bit to
>> 64bit. Unfortunately, some changes will be required. Moving to pure
>> SQL with something like the free SQL Express will give you the most
>> free and forward-looking design instead of hanging on to the past.


>> //David http://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang //

>> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
>>> Can it be that some drivers are not installed in IIS7 on the Server?



>>> MarcusKen Schaefer wrote:
>>>> Change your .inc file to be:
>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>>>> DBQ="
>>>> & dbpath ' Add these lines
>>>> Response.Write(objConn.ConnectionString)
>>>> Response.Flush
>>>> Response.End and verify that your connection string is still
>>>> actually valid.
>>>> Cheers
>>>> Ken- Hide quoted text -
>>> - Show quoted text -


>> There are no 64bit JET drivers. You need them to load MDBs. So, your
>> website will not work as-is.

>> This is not specific to IIS7 and is not new. You would have seen the
>> same thing on Windows Server 2003 64bit or even Windows XP Pro 64bit.

>> You've made a huge leap across three OS releases and from 32bit to
>> 64bit. Unfortunately, some changes will be required. Moving to pure
>> SQL with something like the free SQL Express will give you the most
>> free and forward-looking design instead of hanging on to the past.


>> //David http://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang //



Re: IIS7 on Windows 2008 ODBC errror by Daniel

Daniel
Thu May 08 03:32:41 CDT 2008

Apparently you can run your IIS application in 32 bit mode, http://forums.iis.net/p/1147308/1861764.aspx

This should then allow IIS to use the 32 bit JET drivers.

Dan

Daniel wrote to MarcusB on Thu, 8 May 2008 09:20:39 +0100:

> As David already stated, there are no JET drivers for 64 bit Windows -
> so there is no way to get this working on Windows 2008 64 bit. You
> will need to switch to 32 bit Windows if you wish to continue using
> Access MDB databases.

> Dan


> MarcusB wrote on Thu, 08 May 2008 10:05:25 +0200:

>> So what to do ? We have a lot mdb databases which was access by the
>> same driver.
>> Is possible to have another driver to access the same mdb files and
>> do not change whole code?
>> Please help?

>> Marcus
>> David Wang wrote:
>> David Wang wrote:
>>> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
>>>> Can it be that some drivers are not installed in IIS7 on the
>>>> Server?



>>>> MarcusKen Schaefer wrote:
>>>>> Change your .inc file to be:
>>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>>>>> DBQ="
>>>>> & dbpath ' Add these lines
>>>>> Response.Write(objConn.ConnectionString)
>>>>> Response.Flush
>>>>> Response.End and verify that your connection string is still
>>>>> actually valid.
>>>>> Cheers
>>>>> Ken- Hide quoted text -
>>>> - Show quoted text -


>>> There are no 64bit JET drivers. You need them to load MDBs. So, your
>>> website will not work as-is.

>>> This is not specific to IIS7 and is not new. You would have seen the
>>> same thing on Windows Server 2003 64bit or even Windows XP Pro
>>> 64bit.

>>> You've made a huge leap across three OS releases and from 32bit to
>>> 64bit. Unfortunately, some changes will be required. Moving to pure
>>> SQL with something like the free SQL Express will give you the most
>>> free and forward-looking design instead of hanging on to the past.


>>> //David http://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang
>>> //

>>> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
>>>> Can it be that some drivers are not installed in IIS7 on the
>>>> Server?



>>>> MarcusKen Schaefer wrote:
>>>>> Change your .inc file to be:
>>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>>>>> DBQ="
>>>>> & dbpath ' Add these lines
>>>>> Response.Write(objConn.ConnectionString)
>>>>> Response.Flush
>>>>> Response.End and verify that your connection string is still
>>>>> actually valid.
>>>>> Cheers
>>>>> Ken- Hide quoted text -
>>>> - Show quoted text -


>>> There are no 64bit JET drivers. You need them to load MDBs. So, your
>>> website will not work as-is.

>>> This is not specific to IIS7 and is not new. You would have seen the
>>> same thing on Windows Server 2003 64bit or even Windows XP Pro
>>> 64bit.

>>> You've made a huge leap across three OS releases and from 32bit to
>>> 64bit. Unfortunately, some changes will be required. Moving to pure
>>> SQL with something like the free SQL Express will give you the most
>>> free and forward-looking design instead of hanging on to the past.


>>> //David http://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang
>>> //



Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 04:35:39 CDT 2008

It do not want work on Windows 2008 x64. How and what to change on
Wiondows x64 to be able to run in 32bit and be able to use 32 bit drivers?
Marcus
Daniel Crichton wrote:
> Apparently you can run your IIS application in 32 bit mode, http://forums.iis.net/p/1147308/1861764.aspx
>
> This should then allow IIS to use the 32 bit JET drivers.
>
> Dan
>
> Daniel wrote to MarcusB on Thu, 8 May 2008 09:20:39 +0100:
>
>> As David already stated, there are no JET drivers for 64 bit Windows -
>> so there is no way to get this working on Windows 2008 64 bit. You
>> will need to switch to 32 bit Windows if you wish to continue using
>> Access MDB databases.
>
>> Dan
>
>
>> MarcusB wrote on Thu, 08 May 2008 10:05:25 +0200:
>
> >> So what to do ? We have a lot mdb databases which was access by the
> >> same driver.
> >> Is possible to have another driver to access the same mdb files and
> >> do not change whole code?
> >> Please help?
>
> >> Marcus
> >> David Wang wrote:
> >> David Wang wrote:
> >>> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
> >>>> Can it be that some drivers are not installed in IIS7 on the
> >>>> Server?
>
>
>
> >>>> MarcusKen Schaefer wrote:
> >>>>> Change your .inc file to be:
> >>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
> >>>>> DBQ="
> >>>>> & dbpath ' Add these lines
> >>>>> Response.Write(objConn.ConnectionString)
> >>>>> Response.Flush
> >>>>> Response.End and verify that your connection string is still
> >>>>> actually valid.
> >>>>> Cheers
> >>>>> Ken- Hide quoted text -
> >>>> - Show quoted text -
>
>
> >>> There are no 64bit JET drivers. You need them to load MDBs. So, your
> >>> website will not work as-is.
>
> >>> This is not specific to IIS7 and is not new. You would have seen the
> >>> same thing on Windows Server 2003 64bit or even Windows XP Pro
> >>> 64bit.
>
> >>> You've made a huge leap across three OS releases and from 32bit to
> >>> 64bit. Unfortunately, some changes will be required. Moving to pure
> >>> SQL with something like the free SQL Express will give you the most
> >>> free and forward-looking design instead of hanging on to the past.
>
>
> >>> //David http://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang
> >>> //
>
> >>> On May 8, 12:07 am, MarcusB <marc...@llunet.se> wrote:
> >>>> Can it be that some drivers are not installed in IIS7 on the
> >>>> Server?
>
>
>
> >>>> MarcusKen Schaefer wrote:
> >>>>> Change your .inc file to be:
> >>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
> >>>>> DBQ="
> >>>>> & dbpath ' Add these lines
> >>>>> Response.Write(objConn.ConnectionString)
> >>>>> Response.Flush
> >>>>> Response.End and verify that your connection string is still
> >>>>> actually valid.
> >>>>> Cheers
> >>>>> Ken- Hide quoted text -
> >>>> - Show quoted text -
>
>
> >>> There are no 64bit JET drivers. You need them to load MDBs. So, your
> >>> website will not work as-is.
>
> >>> This is not specific to IIS7 and is not new. You would have seen the
> >>> same thing on Windows Server 2003 64bit or even Windows XP Pro
> >>> 64bit.
>
> >>> You've made a huge leap across three OS releases and from 32bit to
> >>> 64bit. Unfortunately, some changes will be required. Moving to pure
> >>> SQL with something like the free SQL Express will give you the most
> >>> free and forward-looking design instead of hanging on to the past.
>
>
> >>> //David http://w3-4u.blogspot.com http://blogs.msdn.com/David.Wang
> >>> //
>
>

Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 04:50:16 CDT 2008

Somehow I manage , I enable 32bit applications:
But what is a difference in

objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;Persist
Security Info=False"



DRIVER={Microsoft Access
Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb



The first one is working and the second one is not.


Marcus


MarcusB wrote:
> Hi Ken,
> It seems that string is valid, I got response like:
> DRIVER={Microsoft Access
> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>
>
>
> THe PAth to users.mdb is right:
> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>
>
> What else can I check?
>
> Marcus
> Ken Schaefer wrote:
>> Change your .inc file to be:
>>
>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>> DBQ=" & dbpath
>>
>> ' Add these lines
>> Response.Write(objConn.ConnectionString)
>> Response.Flush
>> Response.End
>>
>> and verify that your connection string is still actually valid.
>>
>> Cheers
>> Ken
>>

Re: IIS7 on Windows 2008 ODBC errror by Daniel

Daniel
Thu May 08 06:15:45 CDT 2008

The first is using the JET OLE DB driver, the second is using the ODBC
driver for Access. It may be that you don't have the ODBC driver installed,
only the JET OLE DB driver.

Dan

MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:

> Somehow I manage , I enable 32bit applications:
> But what is a difference in

> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;
> Persist Security Info=False"



> DRIVER={Microsoft Access
> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\
> users.mdb



> The first one is working and the second one is not.


> Marcus


> MarcusB wrote:
>> Hi Ken,
>> It seems that string is valid, I got response like:
>> DRIVER={Microsoft Access
>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>> Database\users.mdb



>> THe PAth to users.mdb is right:
>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb


>> What else can I check?

>> Marcus
>> Ken Schaefer wrote:
>>> Change your .inc file to be:

>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>>> DBQ=" & dbpath

>>> ' Add these lines
>>> Response.Write(objConn.ConnectionString)
>>> Response.Flush
>>> Response.End

>>> and verify that your connection string is still actually valid.

>>> Cheers
>>> Ken



Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 08:04:45 CDT 2008

I just check and the ODBC driver for Access is working on one
application and in the other in different folder is not working. Why?
The second folder is on the same site the only on different folder.


Marcus



one aplication
Daniel Crichton wrote:
> The first is using the JET OLE DB driver, the second is using the ODBC
> driver for Access. It may be that you don't have the ODBC driver installed,
> only the JET OLE DB driver.
>
> Dan
>
> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:
>
>> Somehow I manage , I enable 32bit applications:
>> But what is a difference in
>
>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;
>> Persist Security Info=False"
>
>
>
>> DRIVER={Microsoft Access
>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\
>> users.mdb
>
>
>
>> The first one is working and the second one is not.
>
>
>> Marcus
>
>
>> MarcusB wrote:
> >> Hi Ken,
> >> It seems that string is valid, I got response like:
> >> DRIVER={Microsoft Access
> >> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
> >> Database\users.mdb
>
>
>
> >> THe PAth to users.mdb is right:
> >> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>
>
> >> What else can I check?
>
> >> Marcus
> >> Ken Schaefer wrote:
> >>> Change your .inc file to be:
>
> >>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
> >>> DBQ=" & dbpath
>
> >>> ' Add these lines
> >>> Response.Write(objConn.ConnectionString)
> >>> Response.Flush
> >>> Response.End
>
> >>> and verify that your connection string is still actually valid.
>
> >>> Cheers
> >>> Ken
>
>

Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 08:24:04 CDT 2008

What user have to have full rights to folder if I am running under
Application pool identity? It is not IUSR than what?


Marcus

MarcusB wrote:
> I just check and the ODBC driver for Access is working on one
> application and in the other in different folder is not working. Why?
> The second folder is on the same site the only on different folder.
>
>
> Marcus
>
>
>
> one aplication
> Daniel Crichton wrote:
>> The first is using the JET OLE DB driver, the second is using the ODBC
>> driver for Access. It may be that you don't have the ODBC driver
>> installed, only the JET OLE DB driver.
>>
>> Dan
>>
>> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:
>>
>>> Somehow I manage , I enable 32bit applications:
>>> But what is a difference in
>>
>>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;
>>> Persist Security Info=False"
>>
>>
>>
>>> DRIVER={Microsoft Access
>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\
>>> users.mdb
>>
>>
>>
>>> The first one is working and the second one is not.
>>
>>
>>> Marcus
>>
>>
>>> MarcusB wrote:
>> >> Hi Ken,
>> >> It seems that string is valid, I got response like:
>> >> DRIVER={Microsoft Access
>> >> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>> >> Database\users.mdb
>>
>>
>>
>> >> THe PAth to users.mdb is right:
>> >> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>>
>>
>> >> What else can I check?
>>
>> >> Marcus
>> >> Ken Schaefer wrote:
>> >>> Change your .inc file to be:
>>
>> >>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>> >>> DBQ=" & dbpath
>>
>> >>> ' Add these lines
>> >>> Response.Write(objConn.ConnectionString)
>> >>> Response.Flush
>> >>> Response.End
>>
>> >>> and verify that your connection string is still actually valid.
>>
>> >>> Cheers
>> >>> Ken
>>

Re: IIS7 on Windows 2008 ODBC errror by Daniel

Daniel
Thu May 08 08:26:30 CDT 2008

It sounds like it could be a permissions issue - what error are you getting?
If each application is using a different user account for security you need
to ensure that these accounts have read/write access to the Temp folder.

Dan

MarcusB wrote on Thu, 08 May 2008 15:04:45 +0200:

> I just check and the ODBC driver for Access is working on one application
> and in the other in different folder is not working. Why?
> The second folder is on the same site the only on different folder.


> Marcus


> one aplication
> Daniel Crichton wrote:
>> The first is using the JET OLE DB driver, the second is using the
>> ODBC driver for Access. It may be that you don't have the ODBC
>> driver installed, only the JET OLE DB driver.

>> Dan

>> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:

>>> Somehow I manage , I enable 32bit applications:
>>> But what is a difference in

>>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.
>>> mdb;
>>> Persist Security Info=False"



>>> DRIVER={Microsoft Access
>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>>> Database\
>>> users.mdb



>>> The first one is working and the second one is not.


>>> Marcus


>>> MarcusB wrote:
>>>> Hi Ken,
>>>> It seems that string is valid, I got response like:
>>>> DRIVER={Microsoft Access
>>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>>>> Database\users.mdb



>>>> THe PAth to users.mdb is right:
>>>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb


>>>> What else can I check?

>>>> Marcus
>>>> Ken Schaefer wrote:
>>>>> Change your .inc file to be:

>>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>>>>> DBQ=" & dbpath

>>>>> ' Add these lines
>>>>> Response.Write(objConn.ConnectionString)
>>>>> Response.Flush
>>>>> Response.End

>>>>> and verify that your connection string is still actually valid.

>>>>> Cheers
>>>>> Ken



Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 09:05:27 CDT 2008

Both are using the same Anonymous Authentication: Application pool
identity and both are in the same application.
Which user is than. What user account is used if you run Application
pool identity?

Marcus

Daniel Crichton wrote:
> It sounds like it could be a permissions issue - what error are you getting?
> If each application is using a different user account for security you need
> to ensure that these accounts have read/write access to the Temp folder.
>
> Dan
>
> MarcusB wrote on Thu, 08 May 2008 15:04:45 +0200:
>
>> I just check and the ODBC driver for Access is working on one application
>> and in the other in different folder is not working. Why?
>> The second folder is on the same site the only on different folder.
>
>
>> Marcus
>
>
>> one aplication
>> Daniel Crichton wrote:
> >> The first is using the JET OLE DB driver, the second is using the
> >> ODBC driver for Access. It may be that you don't have the ODBC
> >> driver installed, only the JET OLE DB driver.
>
> >> Dan
>
> >> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:
>
> >>> Somehow I manage , I enable 32bit applications:
> >>> But what is a difference in
>
> >>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> >>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.
> >>> mdb;
> >>> Persist Security Info=False"
>
>
>
> >>> DRIVER={Microsoft Access
> >>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
> >>> Database\
> >>> users.mdb
>
>
>
> >>> The first one is working and the second one is not.
>
>
> >>> Marcus
>
>
> >>> MarcusB wrote:
> >>>> Hi Ken,
> >>>> It seems that string is valid, I got response like:
> >>>> DRIVER={Microsoft Access
> >>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
> >>>> Database\users.mdb
>
>
>
> >>>> THe PAth to users.mdb is right:
> >>>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>
>
> >>>> What else can I check?
>
> >>>> Marcus
> >>>> Ken Schaefer wrote:
> >>>>> Change your .inc file to be:
>
> >>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
> >>>>> DBQ=" & dbpath
>
> >>>>> ' Add these lines
> >>>>> Response.Write(objConn.ConnectionString)
> >>>>> Response.Flush
> >>>>> Response.End
>
> >>>>> and verify that your connection string is still actually valid.
>
> >>>>> Cheers
> >>>>> Ken
>
>

Re: IIS7 on Windows 2008 ODBC errror by MarcusB

MarcusB
Thu May 08 09:31:41 CDT 2008

ONe strange thing which I discovered is that connection with 1. and 2 is
using different users respectivelly. But I could not find what users.

1.
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;Persist
Security Info=False"


2.
DRIVER={Microsoft Access
Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb


Marcus




What else can I check? MarcusB wrote:
> Both are using the same Anonymous Authentication: Application pool
> identity and both are in the same application.
> Which user is than. What user account is used if you run Application
> pool identity?
>
> Marcus
>
> Daniel Crichton wrote:
>> It sounds like it could be a permissions issue - what error are you
>> getting? If each application is using a different user account for
>> security you need to ensure that these accounts have read/write access
>> to the Temp folder.
>>
>> Dan
>>
>> MarcusB wrote on Thu, 08 May 2008 15:04:45 +0200:
>>
>>> I just check and the ODBC driver for Access is working on one
>>> application and in the other in different folder is not working. Why?
>>> The second folder is on the same site the only on different folder.
>>
>>
>>> Marcus
>>
>>
>>> one aplication
>>> Daniel Crichton wrote:
>> >> The first is using the JET OLE DB driver, the second is using the
>> >> ODBC driver for Access. It may be that you don't have the ODBC
>> >> driver installed, only the JET OLE DB driver.
>>
>> >> Dan
>>
>> >> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:
>>
>> >>> Somehow I manage , I enable 32bit applications:
>> >>> But what is a difference in
>>
>> >>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>> >>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.
>> >>> mdb;
>> >>> Persist Security Info=False"
>>
>>
>>
>> >>> DRIVER={Microsoft Access
>> >>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>> >>> Database\
>> >>> users.mdb
>>
>>
>>
>> >>> The first one is working and the second one is not.
>>
>>
>> >>> Marcus
>>
>>
>> >>> MarcusB wrote:
>> >>>> Hi Ken,
>> >>>> It seems that string is valid, I got response like:
>> >>>> DRIVER={Microsoft Access
>> >>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>> >>>> Database\users.mdb
>>
>>
>>
>> >>>> THe PAth to users.mdb is right:
>> >>>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>>
>>
>> >>>> What else can I check?
>>
>> >>>> Marcus
>> >>>> Ken Schaefer wrote:
>> >>>>> Change your .inc file to be:
>>
>> >>>>> objConn.ConnectionString="DRIVER={Microsoft Access Driver(*.mdb)};
>> >>>>> DBQ=" & dbpath
>>
>> >>>>> ' Add these lines
>> >>>>> Response.Write(objConn.ConnectionString)
>> >>>>> Response.Flush
>> >>>>> Response.End
>>
>> >>>>> and verify that your connection string is still actually valid.
>>
>> >>>>> Cheers
>> >>>>> Ken
>>
>>

Re: IIS7 on Windows 2008 ODBC errror by Daniel

Daniel
Thu May 08 09:56:12 CDT 2008

Is this a development or live production server? If you're still testing,
what happens if you give the IUSR account full read/write permission to the
Temp folder? And you still haven't replied to my request for the exact error
message that you're seeing with the second connecting string.

Dan

MarcusB wrote on Thu, 08 May 2008 16:31:41 +0200:

> ONe strange thing which I discovered is that connection with 1. and 2
> is using different users respectivelly. But I could not find what
> users.

> 1.
> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;
> Persist Security Info=False"


> 2.
> DRIVER={Microsoft Access
> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\
> users.mdb


> Marcus




> What else can I check? MarcusB wrote:
>> Both are using the same Anonymous Authentication: Application pool
>> identity and both are in the same application.
>> Which user is than. What user account is used if you run Application
>> pool identity?

>> Marcus

>> Daniel Crichton wrote:
>>> It sounds like it could be a permissions issue - what error are you
>>> getting? If each application is using a different user account for
>>> security you need to ensure that these accounts have read/write
>>> access to the Temp folder.

>>> Dan

>>> MarcusB wrote on Thu, 08 May 2008 15:04:45 +0200:

>>>> I just check and the ODBC driver for Access is working on one
>>>> application and in the other in different folder is not working.
>>>> Why?
>>>> The second folder is on the same site the only on different folder.


>>>> Marcus


>>>> one aplication
>>>> Daniel Crichton wrote:
>>>>> The first is using the JET OLE DB driver, the second is using the
>>>>> ODBC driver for Access. It may be that you don't have the ODBC
>>>>> driver installed, only the JET OLE DB driver.

>>>>> Dan

>>>>> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:

>>>>>> Somehow I manage , I enable 32bit applications:
>>>>>> But what is a difference in

>>>>>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>>>>>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.
>>>>>> mdb;
>>>>>> Persist Security Info=False"



>>>>>> DRIVER={Microsoft Access
>>>>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>>>>>> Database\
>>>>>> users.mdb



>>>>>> The first one is working and the second one is not.


>>>>>> Marcus


>>>>>> MarcusB wrote:
>>>>>>> Hi Ken,
>>>>>>> It seems that string is valid, I got response like:
>>>>>>> DRIVER={Microsoft Access
>>>>>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>>>>>>> Database\users.mdb



>>>>>>> THe PAth to users.mdb is right:
>>>>>>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb


>>>>>>> What else can I check?

>>>>>>> Marcus
>>>>>>> Ken Schaefer wrote:
>>>>>>>> Change your .inc file to be:

>>>>>>>> objConn.ConnectionString="DRIVER={Microsoft Access
>>>>>>>> Driver(*.mdb)};
>>>>>>>> DBQ=" & dbpath

>>>>>>>> ' Add these lines
>>>>>>>> Response.Write(objConn.ConnectionString)
>>>>>>>> Response.Flush
>>>>>>>> Response.End

>>>>>>>> and verify that your connection string is still actually valid.

>>>>>>>> Cheers
>>>>>>>> Ken



Re: IIS7 on Windows 2008 ODBC errror by David

David
Thu May 08 19:29:18 CDT 2008

On May 8, 7:31=A0am, MarcusB <marc...@llunet.se> wrote:
> ONe strange thing which I discovered is that connection with 1. and 2 is
> using different users respectivelly. But I could not find what users.
>
> 1.
> objConn.ConnectionString =3D "Provider=3DMicrosoft.Jet.OLEDB.4.0;Data
> Source=3DF:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;Pe=
rsi=ADst
> Security Info=3DFalse"
>
> 2.
> DRIVER=3D{Microsoft Access
> Driver(*.mdb)};DBQ=3DF:\www\RD\Internt\RoomBooking\EventCalendar\Database\=
use=ADrs.mdb
>
> Marcus
>
> What else can I check? MarcusB wrote:
>
>
>
> > Both are using the same Anonymous Authentication: Application pool
> > identity and both are in the same application.
> > Which user is than. What user account is used if you run Application
> > pool identity?
>
> > Marcus
>
> > Daniel Crichton wrote:
> >> It sounds like it could be a permissions issue - what error are you
> >> getting? If each application is using a different user account for
> >> security you need to ensure that these accounts have read/write access
> >> to the Temp folder.
>
> >> Dan
>
> >> MarcusB wrote =A0on Thu, 08 May 2008 15:04:45 +0200:
>
> >>> I just check and the ODBC driver for Access is working on one
> >>> application and in the other in different folder is not working. Why?
> >>> The second folder is on the same site the only on different folder.
>
> >>> Marcus
>
> >>> =A0 one aplication
> >>> Daniel Crichton wrote:
> >> =A0>> The first is using the JET OLE DB driver, the second is using the=

> >> =A0>> ODBC =A0driver for Access. =A0It may be that you don't have the O=
DBC
> >> =A0>> driver installed, =A0only the JET OLE DB driver.
>
> >> =A0>> Dan
>
> >> =A0>> MarcusB wrote =A0on Thu, 08 May 2008 11:50:16 +0200:
>
> >> =A0>>> Somehow I manage , I enable 32bit applications:
> >> =A0>>> But what is a difference in
>
> >> =A0>>> objConn.ConnectionString =3D "Provider=3DMicrosoft.Jet.OLEDB.4.0=
;Data
> >> =A0>>> Source=3DF:\www\RD\Internt\RoomBooking\EventCalendar\Database\us=
ers.
> >> =A0>>> mdb;
> >> =A0>>> Persist Security Info=3DFalse"
>
> >> =A0>>> =A0 DRIVER=3D{Microsoft Access
> >> =A0>>> Driver(*.mdb)};DBQ=3DF:\www\RD\Internt\RoomBooking\EventCalendar=
\
> >> =A0>>> Database\
> >> =A0>>> users.mdb
>
> >> =A0>>> The first one is working and the second one is not.
>
> >> =A0>>> Marcus
>
> >> =A0>>> MarcusB wrote:
> >> =A0>>>> Hi Ken,
> >> =A0>>>> It seems that =A0string is valid, I got response like:
> >> =A0>>>> DRIVER=3D{Microsoft Access
> >> =A0>>>> Driver(*.mdb)};DBQ=3DF:\www\RD\Internt\RoomBooking\EventCalenda=
r\
> >> =A0>>>> Database\users.mdb
>
> >> =A0>>>> THe PAth to users.mdb is right:
> >> =A0>>>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>
> >> =A0>>>> What else can I check?
>
> >> =A0>>>> Marcus
> >> =A0>>>> Ken Schaefer wrote:
> >> =A0>>>>> Change your .inc file to be:
>
> >> =A0>>>>> objConn.ConnectionString=3D"DRIVER=3D{Microsoft Access Driver(=
*.mdb)};
> >> =A0>>>>> DBQ=3D" & dbpath
>
> >> =A0>>>>> ' Add these lines
> >> =A0>>>>> Response.Write(objConn.ConnectionString)
> >> =A0>>>>> Response.Flush
> >> =A0>>>>> Response.End
>
> >> =A0>>>>> and verify that your connection string is still actually valid=
.
>
> >> =A0>>>>> Cheers
> >> =A0>>>>> Ken- Hide quoted text -
>
> - Show quoted text -


Pragmatically:
http://blogs.msdn.com/david.wang/archive/2005/06/29/IIS_User_Identity_to_Run=
_Code_Part_2.aspx

Empirically:
Use Process Monitor from SysInternals.com to see what user identity is
accessing the files on disk.


There is a huge difference between 32bit and 64bit Windows, with lots
of compatibility switches that may need to be tweaked, depending on
the application. Unless you have specifically tested your application
in 64bit Windows, I would suggest starting with 32bit Windows. Using
32bit Application Pools in IIS can be a quick fix, but you need to be
weary of how 32bit compatibility on 64bit Windows works because it can
be subtle.

Lots of things have changed since IIS5, starting with the security
model -- IIS5 ran as LocalSystem had access to everything, so you
never saw access denied -- but when exploited by hackers, they never
saw access denied either. IIS6 and later run as unpriviledged Network
Service, which has access to very few things, so you can often see
access denied -- but if exploited by hackers, they frequently saw
access denied as well.

I am just warning you that this may not be your biggest obstacle to
running your website from 32bit IIS5 to 64bit IIS7, so please set your
expectations appropriately.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: IIS7 on Windows 2008 ODBC errror by Ken

Ken
Thu May 08 21:44:01 CDT 2008

Hi,

You can download Process Monitor from
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

Create a filter so that only your MDB file is being monitored.

Then access the webpages. The tool will tell you what user account(s) are
being used.

Cheers
Ken


"MarcusB" <marcusb@llunet.se> wrote in message
news:e5ms8gRsIHA.1772@TK2MSFTNGP03.phx.gbl...
> ONe strange thing which I discovered is that connection with 1. and 2 is
> using different users respectivelly. But I could not find what users.
>
> 1.
> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb;Persist
> Security Info=False"
>
>
> 2.
> DRIVER={Microsoft Access
> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>
>
> Marcus
>
>
>
>
> What else can I check? MarcusB wrote:
>> Both are using the same Anonymous Authentication: Application pool
>> identity and both are in the same application.
>> Which user is than. What user account is used if you run Application pool
>> identity?
>>
>> Marcus
>>
>> Daniel Crichton wrote:
>>> It sounds like it could be a permissions issue - what error are you
>>> getting? If each application is using a different user account for
>>> security you need to ensure that these accounts have read/write access
>>> to the Temp folder.
>>>
>>> Dan
>>>
>>> MarcusB wrote on Thu, 08 May 2008 15:04:45 +0200:
>>>
>>>> I just check and the ODBC driver for Access is working on one
>>>> application and in the other in different folder is not working. Why?
>>>> The second folder is on the same site the only on different folder.
>>>
>>>
>>>> Marcus
>>>
>>>
>>>> one aplication
>>>> Daniel Crichton wrote:
>>> >> The first is using the JET OLE DB driver, the second is using the
>>> >> ODBC driver for Access. It may be that you don't have the ODBC
>>> >> driver installed, only the JET OLE DB driver.
>>>
>>> >> Dan
>>>
>>> >> MarcusB wrote on Thu, 08 May 2008 11:50:16 +0200:
>>>
>>> >>> Somehow I manage , I enable 32bit applications:
>>> >>> But what is a difference in
>>>
>>> >>> objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>>> >>> Source=F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.
>>> >>> mdb;
>>> >>> Persist Security Info=False"
>>>
>>>
>>>
>>> >>> DRIVER={Microsoft Access
>>> >>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>>> >>> Database\
>>> >>> users.mdb
>>>
>>>
>>>
>>> >>> The first one is working and the second one is not.
>>>
>>>
>>> >>> Marcus
>>>
>>>
>>> >>> MarcusB wrote:
>>> >>>> Hi Ken,
>>> >>>> It seems that string is valid, I got response like:
>>> >>>> DRIVER={Microsoft Access
>>> >>>> Driver(*.mdb)};DBQ=F:\www\RD\Internt\RoomBooking\EventCalendar\
>>> >>>> Database\users.mdb
>>>
>>>
>>>
>>> >>>> THe PAth to users.mdb is right:
>>> >>>> F:\www\RD\Internt\RoomBooking\EventCalendar\Database\users.mdb
>>>
>>>
>>> >>>> What else can I check?
>>>
>>> >>>> Marcus
>>> >>>> Ken Schaefer wrote:
>>> >>>>> Change your .inc file to be:
>>>
>>> >>>>> objConn.ConnectionString="DRIVER={Microsoft Access
>>> Driver(*.mdb)};
>>> >>>>> DBQ=" & dbpath
>>>
>>> >>>>> ' Add these lines
>>> >>>>> Response.Write(objConn.ConnectionString)
>>> >>>>> Response.Flush
>>> >>>>> Response.End
>>>
>>> >>>>> and verify that your connection string is still actually valid. <