托管相关问题 [英] hosting related Problem

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

问题描述

实际上我是托管网站的,
它可以脱机正常工作,但是在托管了所有我们要向数据库中包含数据的注册页面后,都无法正常工作,但是数据是从数据库中提取的.
在注册页面上单击提交按钮时,我的错误是:

Actually I hosted the website,
Its working offline properly but after hosting in all Pages of registration in which we include data to database is not working, but data is fetched from the database.
On registration page On clicking submit button my error is:

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配置文件->


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

<configuration>
    <system.web>
        <customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm" />
    </system.web>
</configuration></customerrors></customerrors></customerrors>



我的网站是jobharvest.com
请帮我解决这个问题.



My website is jobsharvest.com
Please help me out solve this problem.

推荐答案

我认为您的数据库连接存在问题...
请在 onclick 中使用异常处理,然后将该异常打印到标签上.
然后,您将能够解决此问题,否则,请在此处发布确切的错误消息...


问候
Sebastian
I think there is some issue with your database connectivity...
Please use exception handling in your onclick and print that exception to a label.
Then you will be able to solve this issue, else post your exact error message here...


Regards
Sebastian


在web.config文件中,将以下代码粘贴到
in web.config file, paste below code after


之后




<system.web>
        <customerrors mode="off" />
    </system.web>




如果得到答案,请给出答案和评分..


谢谢
灰烬




make it answer and rate, if you got your answer..


Thanks
Ashish


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

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