PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

access数据库路径更改问题 [复制链接]

1#
在空间上要求把数据库放在一个database的文件夹里,把网页放在另一个文件夹里面,和pageadmin的的文件结构不一样,所以我把WEB.CONFIG的数据库路径该成了../database/123.db 把其他的网页的文件都放进另一个文件夹里面但是上传上去后使用不了了。我应该怎么弄?
分享 转发
TOP
2#

大虾们都跑哪里去了?
TOP
3#

这样写可不行

首页会认为是上级目录的database

而你打开/master后会认为是和web.config同一个目录层的database

所以不要乱改,直接改个名就好了,或者在web.config同目录新建一个目录放进去

然后路径用绝对路径
如/aaaa/1111/mdb
TOP
4#

回复 3# apple 的帖子

我估计它是这样的,database的文件有读写的权限,而令一个叫htdocs的文件夹用来放网页只有读的权限。database和htdocs是同一级目录的也就是打开空间的根目录。我把pageadmin的数据库文件放在database的文件夹里面 把其他的都放在 htdocs的文件夹里面 那我只能改数据库的路径为上级目录了啊,  pageadmin是不是弄不了了?
TOP
5#

access数据库路径更改问题

Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load type 'PageAdmin.UrlReWriteModule'. (E:\pageadmin\web.config line 19)
Source Error:

Line 17:   <system.web>
Line 18:     <httpModules>
Line 19:       <add type="PageAdmin.UrlReWriteModule" name="HttpModule" />
Line 20:     </httpModules>
Line 21:     <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncrypti />

Source File: E:\pageadmin\web.config    Line: 19

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42  
======================================================
我把WEB.CONFIG 放在与database 和 htdoc  出现上面的错误!
TOP
6#

access数据库路径我没有更改啊,也同样出现这样的问题。
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load type 'PageAdmin.UrlReWriteModule'. (E:\pageadmin\web.config line 19)
Source Error:

Line 17:  <system.web>
Line 18:    <httpModules>
Line 19:      <add type="PageAdmin.UrlReWriteModule" name="HttpModule" />
Line 20:    </httpModules>
Line 21:    <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncrypti />

Source File: E:\pageadmin\web.config    Line: 19

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
TOP
发新话题 回复该主题