连接字符串问题 [英] CONNECTION STRING ISSUE

查看:74
本文介绍了连接字符串问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

   我开发了一个显示候选结果的网站,但是当我在Windows服务器上的plesk面板上托管它时会抛出这样的运行时错误。

   I have developed a website whic display candidate result but when i hosted it on plesk panel on windows server it throws runtime error like this.

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

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


推荐答案

okey首先编辑你的Web.Config文件并设置< CustomErrors mode =" off">

okey firstly edit your Web.Config file and set the <CustomErrors mode="off">

然后转到页面。现在,您可以在Visual Studio IDE中看到实际错误

then goto the page . Now you can see the actual error just like in Visual studio IDE

您的开发项目中的其他选项是{项目的副本在您的系统中}只是将连接字符串作为服务器地址而不是本地数据库和调试

other option is  in your development project {the copy of your project which is in your system} just put the connection string as the server address instead of local db and debug


这篇关于连接字符串问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆