当前位置:编程学习 > C#/ASP.NET >>

发布网站到服务器上运行不了

不知道是否需要修改Web.Config配置文件,我是将整个网站放在一个名为OnlineShop的文件夹下,然后整个文件夹上传到根目录
访问http://www.jjpig.com/onlineshop/index.aspx访问不了
不知道是何原因,请高手们指点一二!在线等回复。。。。 --------------------编程问答-------------------- 这是我Web.Config配置文件下的部分内容

  <appSettings>
    <add key="AccessConnString" value="provider=microsoft.jet.oledb.4.0;data source="/>
    <add key="AccessDBPath" value="~/AdminData/%xm.mdb"/>

    <add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="/upload/Files/"/>
  </appSettings>
--------------------编程问答-------------------- 怀疑是配置文件的问题!不知道是否需要修改? --------------------编程问答-------------------- 继续等待高手解决! --------------------编程问答-------------------- 1,站点文件是不是正常发布生成的,看下类库有没有少
2,数据库链接字符串,若是库在站点下面,你本地没错那就应该不会有问题的。

还有你的那个页面运行之后到底是什么错误啊?说清楚点... ... --------------------编程问答-------------------- 就是提示页面找不到!我单独用一个简单的ASPX页面放到服务器上测试可以访问得到! --------------------编程问答-------------------- 提示页面找不到
应该是页面路径问题

如果是数据库访问才跟你那个配置有关 --------------------编程问答-------------------- Server Error in '/jjpig' Application.
--------------------------------------------------------------------------------

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

这是提示的错误!我都不知道该怎么办了! --------------------编程问答-------------------- 你要先配置iis,将页面指向你的首页,如果有数据库的话,注意数据库的用户和密码! --------------------编程问答-------------------- 放在IIS的根目录下~!!! --------------------编程问答-------------------- 这个可能有很多方面。
你的IIS有没有正确设置?
比如.net 的版本是那个?
本地运行是否有错误?
在IIS下添加网站是否对了?
放到服务器上是否修改了配置文件中连接的服务器名称,数据库,用户,密码
--------------------编程问答-------------------- 我在本地IIS测试完全可以通过!
直接用FTP上传到空间上不知道为什么不行! --------------------编程问答--------------------
引用 11 楼 heku518 的回复:
我在本地IIS测试完全可以通过!
直接用FTP上传到空间上不知道为什么不行!

还要注意权限问题哦。 --------------------编程问答-------------------- 啥叫访问不了
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,