无法在生产环境中访问数据 [英] unable to access data in production environment

查看:118
本文介绍了无法在生产环境中访问数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在Discountasp.net上托管的ASP.Net应用程序有问题.

我的应用程序有一个链接,可从内部从数据库表中收集数据.

当我单击该链接时,我收到HTTP 404错误(找不到资源)

但是,当我在PC上运行相同的数据库时,它运行良好.我没有任何连接字符串问题,因为我能够从所有其他表(帐户信息等)中检索数据.

可能是什么原因....

什么时候
http://localhost:55022/Forums/Love%20Mania/love%20problems.aspx
效果还不错,它应该也适用于

http://loveinmetro.com/Forums/Love%20Mania/love%20problems.aspx

但这是行不通的.获取HTTP 404

任何人都可以请教...

如果有人希望看到它发生,请看看loveinmetro.com/Forums

Hello Guys,
I have a problem with ASP.Net application which I hosted in Discountasp.net.

My application has a link which internally collects data from database table.

When I click that link I am getting HTTP 404 error(Resource cannot be found)

But with the same database when I run it in my PC it is working fine. I don''t have any connection string problem because I am able to retrieve data from all other tables(Account Information and stuff).

What could be the reason....

When
http://localhost:55022/Forums/Love%20Mania/love%20problems.aspx
is working fine than it should also work for

http://loveinmetro.com/Forums/Love%20Mania/love%20problems.aspx

But it''s not working. Getting HTTP 404

Can anyone please advice...

If anyone want see it happens please have a look loveinmetro.com/Forums

推荐答案

Jayadheer Reddy写道:
Jayadheer Reddy wrote:

http://localhost:55022/Forums/Love%20Mania/love%20problems.aspx
工作正常,应该也适用于

http://loveinmetro.com/Forums/Love%20Mania/love%20problems.aspx

http://localhost:55022/Forums/Love%20Mania/love%20problems.aspx
is working fine than it should also work for

http://loveinmetro.com/Forums/Love%20Mania/love%20problems.aspx


好吧,当您托管一个特定的网站时,通常虚拟目录名称也会添加到URL中.
可能应该是这样的:
http://loveinmetro.com/VIRTUAL_DIRECTORY_NAME/Forums/Love%20Mania/love%20problems.aspx

原因是,您收到404错误,这意味着您尝试访问和显示的url/文件不在您提供的路径中.
当然,所提供的URL路径有误.尝试从服务器的IIS浏览它,这也应该对您有所帮助.


Well, when you host a particular website, generally a Virtual Directory name also gets added to the URL.
Might be it should be something like:
http://loveinmetro.com/VIRTUAL_DIRECTORY_NAME/Forums/Love%20Mania/love%20problems.aspx

The reason being, you are getting a 404 error which means the url/file you are trying to access and display is not present at the path you are providing.
Surely there is a mistake in the URL path provided. Try to browse it from IIS of your server, that should also help you out.


这篇关于无法在生产环境中访问数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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