0
데이터베이스가 내 응용 프로그램 폴더 내의 App_Data
폴더에 있습니다. 데이터베이스를 루트/부모 폴더 (응용 프로그램의 부모 폴더에 있음)로 이동하고 여전히 액세스 할 수 있습니다.Web.config - 상위 폴더의 대상 데이터베이스
-(root)The_database_where_I_want_to_use.db
- - ApplicationFolder
- - - App_Data/MyDatabase.db
이 의 Web.config 나의 현재를 ConnectionString은 다음과 같습니다
<add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source = |DataDirectory|\MyDatabase.mdb" providerName="System.Data.OleDb" />
가 어떻게 루트 폴더에 "
The_database_where_I_want_to_use.db
"타겟팅 할 수 있습니까? 당신이 ' "`
점을 데이터 원본 = ./MyDatabase.mdb를 구성 할 수 있습니다
당신이'에만 데이터 원본 = The_database_where_I_want_to_use.mdb'를 떠나 시도 되세요 웹 응용 프로그램의 루트입니다 ? –