Solved web project publish upload help

Posted on 2007-10-04
Last Modified: 2008-01-09

I have one site to upload. its in v.2.
now on server there are foldersas follows


all my aspx files are to be in httpdocs thats the route

and server pepl say dtabse is to be in data folder
when httpdocs becomes route
complete physicla path is e:\www\sectiona\
this has sub folders


in httpdocs my aspx files will go
and dtabse has to go in data folder

while i have been working with app_data subdirectory in my root

now what should i do where can I find complete technical details about such webadministration
i have 10 mb hosting space on a server and they do not provide any programming help thats the answer they have given for this problem.

pleae help me how do i use path in the above case
or can i make my folder app-data secure folder?
quick help is needed
Question by:dontnetsanjay
    LVL 18

    Accepted Solution


    Thethree way to access database through the connection string.

    1. Map path.(relative path)

    2. through the correct physical path.
    3.DSN connection string

    you can access your data by using relative path in your connection string like .\data\ or as

    In your case the physical path is best if you know the exact path. you can use it in your connection string.

    The another way is DSN , If your hosting control panel is allow to create DSN then you can create DSN for it.

    The some sample connection string is vailable here which I have create for our customer.,2,4

    you can upload the database in any directory and there is no need to upload any specific folder. If you are using MSACESS database.

    Author Comment

    thanks I am working on m local comp and database is functional i am using complete physical path in my connection string

    yes access database

    on my local machine database path is

    root dir for project within it app_data folder is created by visual studio there only i store all my data base
    but in actual hosting there is no such folder there directory stucture is completely different
    in this case if i create app_data folder within my root directory will it be secure folder?
    how do i protect it from unauthorized access
    yes my control panel also alow me to create DSN


    Author Comment

    can u please tell me how do we protect or secure our folder on a webserver

    as u know i have asmall websited hosted on someone else folder

    all the help is higly appreciated

    LVL 18

    Expert Comment

    by:Sam Panwar

    sorry for delay ..........

    Some of the hosting control panel allow to create secure folder but generally it can be do by hosting company guys manually so please submit support ticket there.

    2, If you database path is changed in the local computer then you have to change it as your web server. you have to change it manually in your code.

    In thismap path is the best way.

    3.If your control panel allows DSN then you have to create Access database in the control panel and after that create DSN.

    After DNS you don't need any path just use DSN in the code.

    Author Comment

    thanks very much


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now