首页 新闻 赞助 找找看

服务器部署ASp.net2.0+Access 2010数据库出现错误

0
悬赏园豆:20 [待解决问题]

出错代码

Server Error in '/' 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".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

在本地是IIS自测是没有问题的;发布部署到服务器就有问题,购买的是新网的主机;

求高手解决!

shenrq163的主页 shenrq163 | 初学一级 | 园豆:96
提问于:2013-05-30 19:14
< >
分享
所有回答(2)
0

先将web.config设置为<customErrors mode="Off"/>

再看错误信息.将错误信息贴出来

56180825 | 园豆:1756 (小虾三级) | 2013-05-30 20:01

已修改为Off,昨晚调试发现应该是服务器没有安装微软的office组件,,我用的access是2010版本,换为2007版也是一样的昨晚;

支持(0) 反对(0) shenrq163 | 园豆:96 (初学一级) | 2013-05-31 09:14
0

已修改为Off,昨晚调试发现应该是服务器没有安装微软的office组件,,我用的access是2010版本,换为2007版也是一样的错误;

shenrq163 | 园豆:96 (初学一级) | 2013-05-31 09:14
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册