网站和数据库连接错误 [英] error in connection of website and database

查看:76
本文介绍了网站和数据库连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我开发了一个网站www。[DELETED] .com这个网站是使用mvc 5 asp .net技术设计的。该网站在本地服务器上正常运行,但在Windows虚拟主机托管时,它会出现以下错误 -

错误。处理您的请求时出错。

打开时页面库和注册会员列表



相同的代码在3个不同的机器和网站托管服务提供商上运行,表示代码存在问题但尚未准备好进行调查。



如果问题在过去3天内有待处理,你可以指导我一步吗。



网站地址已删除 - OriginalGriff [/ edit]

Hi All,

I have developed a website www.[DELETED].com this website is designed using mvc 5 asp .net technology. The website is running properly on local server but when hosted on windows webhosting it is giving following error -
"Error. An error occurred while processing your request."
While opening the page gallery and registered member list

The same code is running on 3 different machine and webhosting provider are saying that there is issue with code and not ready to look into it.

Can you guide me with steps since the issue is pending past 3 days.

[edit]Website address removed - OriginalGriff[/edit]

推荐答案

我们无法分辨 - 其他人也无法判断。



你需要开始查看你的代码在做什么:好的,在生产中你不能使用调试器,但你 可以 做事情旧方法并添加日志记录语句,直到找到问题所在的常规区域。



所以将日志记录代码添加到文件或其他任何内容,然后开始工作当错误发生时它正在执行什么代码。然后,您可以缩小您登录的位置,直到您对代码有所了解甚至为什么失败。



我们不能这样做:我们有与托管公司相比,访问代码的次数更少。所以取决于你...
We can't tell from that - and neither can anybody else.

You need to start looking at what your code is doing: OK, in production you can't use the debugger, but you can do things the old way and add logging statement until you find the "general area" that the problem is coming from.

So add logging code to a file or whatever, and start working out what code it is executing when the error happens. You can then narrow the are in which you log until you have a good idea of the code and even why it's failing.

We can't do that: we have even less access to your code than the hosting company. So it's up to you...


这篇关于网站和数据库连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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