Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

asp.net web project publish upload help

Hello,

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

/data/
/httpdocs/

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\domain.com
this domain.com has sub folders


/data/
/httpdocs/

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
0
dontnetsanjay
Asked:
dontnetsanjay
  • 3
  • 2
1 Solution
 
Sam PanwarSr. Server AdministratorCommented:
Hi,

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.

http://mywipl.com/portal/index.php?_m=knowledgebase&_a=view&parentcategoryid=7&pcid=4&nav=0,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.
0
 
dontnetsanjayAuthor Commented:
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

0
 
dontnetsanjayAuthor Commented:
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

thanks
0
 
Sam PanwarSr. Server AdministratorCommented:
Hi,

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.
0
 
dontnetsanjayAuthor Commented:
thanks very much

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now