'/'应用程序中的服务器错误。在我的网站上 [英] Server Error in '/' Application. in my website

查看:143
本文介绍了'/'应用程序中的服务器错误。在我的网站上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将我的网站上传到livetrainings.in



当我要求网站时它正在表现出错误,如


'/''应用程序中的
服务器错误。

这是什么意思。我的appln在本地系统中成功运行。



,当我只在网站上添加单页时,它运行正常。



当我向网站添加总页数时我会收到以上错误



请指导我解决这个问题

i hv uploaded my website to livetrainings.in

when im requesting the site it is trhowing the error like

Server Error in ''/'' Application.
whatt does it mean.my appln running successfully in local system.

and when i add only single page to the site it is running fine.

when i add total pages to the site im getting above error

please guide me to resolve this problem

推荐答案

尝试检查你网站的路径,也许用斜杠拼写错误/
Try to check the path of your website, maybe mispell with slashes "/"


首先:

在将应用程序部署到生产服务器之前,在web.config文件中启用自定义错误是一个很大的错误(安全威胁)。 (除非你喜欢你的服务器被黑客格式化或其他)



第二:

First :
It is a big mistake(security threat) to leave custom errors enabled in web.config file before deploying your application to production server. (Unless you like you server to be hacked formatted or whatever)

Second:
con = new SqlConnection("Data Source=localhost;database=scmtraingdb;user id=sa;password=123");





这看起来就像上面的代码您需要根据托管应用程序的服务器更改连接字符串的开发机器。请求Web空间提供商或具有asp.net经验的人员进行配置。您无需在代码中更改它。您可以将其存储在Web配置文件中。



您还需要在Web服务器上部署数据库;





希望有所帮助!!

好​​运!!



This looks like the code on the development machine you need to change the connection string according to the server on which your application is hosted. Ask the web space provider or someone with experience in asp.net to configure it. You don''t need to change it in code.you may store it in web config file itself.

You need to deploy the database on the web Server too;


Hope it helps!!
Best of luck!!


我按照URL livetrainings.in 。您的usercontrol中的数据库连接存在问题。请检查数据库连接。



谢谢
I followed the URL livetrainings.in.there is a problem with your database connectivity in your usercontrol. Please check the database connectivity.

Thanks


这篇关于'/'应用程序中的服务器错误。在我的网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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