[AccessD] mdb in dmz

MartyConnelly martyconnelly at shaw.ca
Wed Aug 6 13:31:05 CDT 2003


Don't know if this will help but see other links and paragraph
Make sure you have adequate permissions on the database
http://www.aspalliance.com/PeterJohnson/JetAdvice.aspx

 It is good idea to have the mdb file stored outside the web root to 
stop the little darlings downloading it.


Jim DeMarco wrote:

>James,
>
>First, using Server.MapPath is a good idea.  Our db folder is actually one level above the root as you describe so this will help with future deployment.  Problem is the code still won't run but at least the page not found error is gone and this one is back:
>
><error>
>Microsoft JET Database Engine error '80004005' 
>
>Unspecified error 
>
>/test.asp, line 22 
></error>
>
>I don't know if that's a good thing or not but...
>
>Thanks,
>
>Jim DeMarco
>
>
>
>-----Original Message-----
>From: James Barash [mailto:James at fcidms.com]
>Sent: Tuesday, August 05, 2003 4:19 PM
>To: 'Access Developers discussion and problem solving'
>Subject: RE: [AccessD] mdb in dmz
>
>
>Jim,
>Are you sure D:\db\ exists and is visible from IIS on the server,
>including permissions for the IIS account? I tested your code using a
>path to a directory that did not exist and I get a page not found error
>so maybe that's it. I usually create a db directory under the root for
>the website. Then you can access the file using 
>dbpath = Server.MapPath("./db/HshhpTips.mdb") 
>That way you don't have to worry about moving the files to a different
>server, the relative paths stay the same. 
>
>James Barash
>
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco
>Sent: Tuesday, August 05, 2003 2:02 PM
>To: Access Developers discussion and problem solving
>Subject: RE: [AccessD] mdb in dmz
>
>
>Looks like everything is going over port 80.  The real drag is I can't
>be sure it's even a hardware problem.  We simplified the code to this
>(it's ASP/VBScript so no data types,etc.):
>
><snip>
>dim connectstring
>dim cnn
>dim dbpath
>
>	dbpath = "D:\db\HshhpTips.mdb"
>	connectstring = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="
>& dbpath
>
>	Set cnn = Server.CreateObject("ADODB.Connection")
>	'cnn.open connectstring
>	
>	Response.Write "testing"
></snip>
>
>The code runs if we leave the cnn.open line commented out but when we
>put it back we now get a page not found error.  Works fine on our dev
>machine of course.  I would think if it was a data access problem the
>code would bail on the CreateObject call.  Server's running Win2K BTW.
>
>Jim DeMarco
>
>
>
>-----Original Message-----
>From: Jim Dettman [mailto:jimdettman at earthlink.net]
>Sent: Tuesday, August 05, 2003 12:52 PM
>To: Access Developers discussion and problem solving
>Subject: RE: [AccessD] mdb in dmz
>
>
>Jim,
>
><<Can anyone point me in the right direction?>>
>
>  Check the Firewall's log.  It will show the IP address of the web
>server, whether it was TCP or UDP packet, and the port it was trying to
>use.
>
>Jim Dettman
>President,
>Online Computer Services of WNY, Inc.
>(315) 699-3443
>jimdettman at earthlink.net
>
>-----Original Message-----
>From: accessd-bounces at databaseadvisors.com
>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco
>Sent: Tuesday, August 05, 2003 10:58 AM
>To: Access Developers discussion and problem solving
>Subject: RE: [AccessD] mdb in dmz
>
>
>Thanks Frank (where'd you find that domain on your e-mail address??).
>
>I searched msdn and found this list of Port Assignments for Common
>Services
>(http://www.microsoft.com/windows2000/techinfo/reskit/samplechapters/cnf
>c/cn
>fc_por_simw.asp - watch for wrapping).  None seems to be what I'm
>looking (AFAICT anyway).  Can anyone point me in the right direction?
>
>Thanks,
>
>Jim DeMarco
>
>-----Original Message-----
>From: Frank Tanner III [mailto:pctech at mybellybutton.com]
>Sent: Tuesday, August 05, 2003 10:45 AM
>To: Access Developers discussion and problem solving
>Subject: Re: [AccessD] mdb in dmz
>
>
>I'm not sure what tcp/udp port(s) that Jet and OLEdb
>use, but do you have those allowed to pass from the
>DMZ to wherever it needs to go?  i.e. the internal LAN
>and the external Internet.
>
>Usually DMZs are configured to ONLY allow the ports
>necessary, such as HTTP, HTTPS, POP3, SMTP, etc.
>
>--- Jim DeMarco <Jdemarco at hshhp.org> wrote:
>  
>
>>List,
>>
>>We just went live with our web site
>>(http://www.hshhp.org) but had to remove a feature
>>that displays health tips.  The tips are stored in
>>an A97 mdb but we get an "unspecified error" when
>>hitting the page.  The db is on the web server box.
>>The server is behind the firewall in the DMZ.  Does
>>anyone know if the DMZ is an issue when trying to
>>hit an mdb?  We're using the OleDB provider for Jet
>>4.0.  I ran comcheck and we've got that version
>>installed.  IIS 5.0 as well.
>>
>>TIA,
>>
>>Jim DeMarco
>>Director of Product Development
>>HealthSource/Hudson Health Plan
>>
>>
>>
>>    
>>
>************************************************************************
>****
>*******
>  
>
>>"This electronic message is intended to be for the
>>use only of the named recipient, and may contain
>>information from Hudson Health Plan (HHP) that is confidential or 
>>privileged.  If you are not the intended recipient, you are hereby 
>>notified that any disclosure, copying, distribution or use of the 
>>contents of this message is strictly prohibited.  If you have received
>>    
>>
>
>  
>
>>this message in error or are not the named recipient, please notify us
>>    
>>
>
>  
>
>>immediately, either by contacting the sender at the electronic
>>mail address noted above or calling HHP at (914)
>>631-1611. If you are not the intended recipient,
>>please do not forward this email to anyone, and
>>delete and destroy all copies of this message.
>>Thank You".
>>
>>    
>>
>************************************************************************
>****
>*******
>  
>
>>_______________________________________________
>>AccessD mailing list
>>AccessD at databaseadvisors.com 
>>http://databaseadvisors.com/mailman/listinfo/accessd
>>Website: http://www.databaseadvisors.com
>>    
>>
>
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>
>************************************************************************
>****
>*******
>"This electronic message is intended to be for the use only of the named
>recipient, and may contain information from Hudson Health Plan (HHP)
>that is confidential or privileged.  If you are not the intended
>recipient, you are hereby notified that any disclosure, copying,
>distribution or use of the contents of this message is strictly
>prohibited.  If you have received this message in error or are not the
>named recipient, please notify us immediately, either by contacting the
>sender at the electronic mail address noted above or calling HHP at
>(914) 631-1611. If you are not the intended recipient, please do not
>forward this email to anyone, and delete and destroy all copies of this
>message.  Thank You".
>************************************************************************
>****
>*******
>
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>
>************************************************************************
>***********
>"This electronic message is intended to be for the use only of the named
>recipient, and may contain information from Hudson Health Plan (HHP)
>that is confidential or privileged.  If you are not the intended
>recipient, you are hereby notified that any disclosure, copying,
>distribution or use of the contents of this message is strictly
>prohibited.  If you have received this message in error or are not the
>named recipient, please notify us immediately, either by contacting the
>sender at the electronic mail address noted above or calling HHP at
>(914) 631-1611. If you are not the intended recipient, please do not
>forward this email to anyone, and delete and destroy all copies of this
>message.  Thank You".
>************************************************************************
>***********
>
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>
>***********************************************************************************
>"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
>***********************************************************************************
>
>_______________________________________________
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website: http://www.databaseadvisors.com
>
>  
>




More information about the AccessD mailing list