页面/表单请求重定向到自定义错误页面. [英] Page/form request redirecting to a custom error page.

查看:101
本文介绍了页面/表单请求重定向到自定义错误页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将文件上传到我的托管帐户.

尝试访问带有表单和输入字段的某些页面时(与数据库有关),我将被重定向到我的自定义错误页面.

尽管我没有使用IIS,但在开发人员的机器上进行测试时却没有注意到这一点.

有谁知道可能是什么原因?

在此先感谢您.

I just uploaded files to my hosting account.

While trying to access some pages with forms and input fields, (that has to do with database) I will be redirected to my custom error page.

I have not noticed such while testing it on my developer''s machine, although I am not using IIS.

Does anyone know what could be the cause?

Thanks in advance.

推荐答案

在IIS中检查网站的web.config.我强烈认为它应该具有errorPages配置
Check the web.config of the website in the IIS. I have strong feeling that it should have errorPages configuration


,一旦在开发系统中将连接字符串替换为实时数据库连接字符串,然后在该页面上放置一个断点,并检查是否得到任何错误.

如果按照上述步骤操作时没有收到任何错误,则
发生此错误的原因可能是由于缺少权限.
当您通过应用程序上传图像或视频时,会发生这种情况.
once replace your connection string with live database connection string in your developing system and place a breakpoint in that page and check whether you are getting any error.

if you are not getting any error when you followed above procedure then
the error occured may be because of lack of permissions.
this occurs when you are uploading images or videos through your application.


这篇关于页面/表单请求重定向到自定义错误页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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