alias to browser accessible pages, eg [url]www.domain.com[/url] > Database --> cannot be viewed from a browser, to stop hacking > Logs > > All this works with Server.CreateObject in ASP. > > Can anyone help? > > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => vMike [ip] => Michael.George@ [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> alias to browser accessible pages, eg [url]www.domain.com[/url] > Database --> cannot be viewed from a browser, to stop hacking > Logs > > All this works with Server.CreateObject in ASP. > > Can anyone help? > > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => vMike [ip] => Michael.George@ [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> alias to browser accessible pages, eg [url]www.domain.com[/url] > > Database --> cannot be viewed from a browser, to stop hacking > > Logs > > > > All this works with Server.CreateObject in ASP. > > > > Can anyone help? > > > > > >[/quote] > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => vMike [ip] => Michael.George@ [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> ASP.NET and OleDbConnection - ASP.NET General

ASP.NET and OleDbConnection - ASP.NET General

Also make sure that aspnet has permissions on the folder and db file "trevor oakley" <to006e7245blueyonder.co.uk> wrote in message news:CMNJa.565$5E.395news-binary.blueyonder.co.uk... > This is a repost, after people said this group is the suitable for ASP.NET > comments. > > > I am working through Teach Yourself ASP.NET in 21 Days (Day10), and I > have hit a problem with OleDbConnection. Maybe someone here knows a > lot of connections to databases in ASP.NET, and is willing to share > their knowledge. > > I am trying > > dbStr = Server.MapPath("../TestDatabase.mdb") > Response.write("db string " & dbStr) > > objConnection ...

  1. #1

    Default Re: ASP.NET and OleDbConnection

    Also make sure that aspnet has permissions on the folder and db file

    "trevor oakley" <to006e7245blueyonder.co.uk> wrote in message
    news:CMNJa.565$5E.395news-binary.blueyonder.co.uk...
    > This is a repost, after people said this group is the suitable for ASP.NET
    > comments.
    >
    >
    > I am working through Teach Yourself ASP.NET in 21 Days (Day10), and I
    > have hit a problem with OleDbConnection. Maybe someone here knows a
    > lot of connections to databases in ASP.NET, and is willing to share
    > their knowledge.
    >
    > I am trying
    >
    > dbStr = Server.MapPath("../TestDatabase.mdb")
    > Response.write("db string " & dbStr)
    >
    > objConnection = New
    > OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _
    > & " Data Source=" & dbStr & ";")
    >
    > but it fails, with an error on the path (cannot exit above top
    > directory).
    >
    > The actual databases at hostway.com are stored above www so that they
    > cannot be hacked using a browser. But the path seems to expect the
    > root directory as seen by the browser. It works it I take out the ../
    > and move my database to the www directory.
    >
    > Directory structure seen at FTP logon
    >
    > www --> alias to browser accessible pages, eg [url]www.domain.com[/url]
    > Database --> cannot be viewed from a browser, to stop hacking
    > Logs
    >
    > All this works with Server.CreateObject in ASP.
    >
    > Can anyone help?
    >
    >
    >

    vMike Guest

  2. #2

    Default Re: ASP.NET and OleDbConnection


    Try something like this.

    path.getpathroot(server.mappath(1)) & the rest of you path to db.

    "trevor oakley" <to006e7245blueyonder.co.uk> wrote in message
    news:CMNJa.565$5E.395news-binary.blueyonder.co.uk...
    > This is a repost, after people said this group is the suitable for ASP.NET
    > comments.
    >
    >
    > I am working through Teach Yourself ASP.NET in 21 Days (Day10), and I
    > have hit a problem with OleDbConnection. Maybe someone here knows a
    > lot of connections to databases in ASP.NET, and is willing to share
    > their knowledge.
    >
    > I am trying
    >
    > dbStr = Server.MapPath("../TestDatabase.mdb")
    > Response.write("db string " & dbStr)
    >
    > objConnection = New
    > OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _
    > & " Data Source=" & dbStr & ";")
    >
    > but it fails, with an error on the path (cannot exit above top
    > directory).
    >
    > The actual databases at hostway.com are stored above www so that they
    > cannot be hacked using a browser. But the path seems to expect the
    > root directory as seen by the browser. It works it I take out the ../
    > and move my database to the www directory.
    >
    > Directory structure seen at FTP logon
    >
    > www --> alias to browser accessible pages, eg [url]www.domain.com[/url]
    > Database --> cannot be viewed from a browser, to stop hacking
    > Logs
    >
    > All this works with Server.CreateObject in ASP.
    >
    > Can anyone help?
    >
    >
    >

    vMike Guest

  3. #3

    Default Re: ASP.NET and OleDbConnection

    do a response.write(server.mappath(1) to see the actually root. It is
    probably something like
    D:\root\hostaway\hostaway.com\..... you should be able to figure it from
    there. It all depends on how the server is set up.


    "vMike" <Michael.Georgenospam.gewarren.com.delete> wrote in message
    news:bd9ut2$2b9$1ngspool-d02.news.aol.com...
    >
    > Try something like this.
    >
    > path.getpathroot(server.mappath(1)) & the rest of you path to db.
    >
    > "trevor oakley" <to006e7245blueyonder.co.uk> wrote in message
    > news:CMNJa.565$5E.395news-binary.blueyonder.co.uk...
    > > This is a repost, after people said this group is the suitable for
    ASP.NET
    > > comments.
    > >
    > >
    > > I am working through Teach Yourself ASP.NET in 21 Days (Day10), and I
    > > have hit a problem with OleDbConnection. Maybe someone here knows a
    > > lot of connections to databases in ASP.NET, and is willing to share
    > > their knowledge.
    > >
    > > I am trying
    > >
    > > dbStr = Server.MapPath("../TestDatabase.mdb")
    > > Response.write("db string " & dbStr)
    > >
    > > objConnection = New
    > > OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _
    > > & " Data Source=" & dbStr & ";")
    > >
    > > but it fails, with an error on the path (cannot exit above top
    > > directory).
    > >
    > > The actual databases at hostway.com are stored above www so that they
    > > cannot be hacked using a browser. But the path seems to expect the
    > > root directory as seen by the browser. It works it I take out the ../
    > > and move my database to the www directory.
    > >
    > > Directory structure seen at FTP logon
    > >
    > > www --> alias to browser accessible pages, eg [url]www.domain.com[/url]
    > > Database --> cannot be viewed from a browser, to stop hacking
    > > Logs
    > >
    > > All this works with Server.CreateObject in ASP.
    > >
    > > Can anyone help?
    > >
    > >
    > >
    >
    >

    vMike Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •