问题找不到文件由于Querystring关键字而出错 [英] problem File not found Error due to Querystring keyword

查看:82
本文介绍了问题找不到文件由于Querystring关键字而出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友....

我创建了一个页面"Home.aspx".我正在传递QueryString"Sender = 1234"和Message ="Hello".

网址确实是
http://localhost:2346/Project/Home.aspx?Sender = 1234& Message = Hello

在本地,它工作正常.但是,当我上传到此服务器(win 2008 + iis7 + sqlserver2008)时,它给我一个错误-找不到文件

当我分析此问题时,我发现由于Url中的"end"一词,这给了我一个错误.我不能在URL中使用结束"关键字.但是对我来说,必须在URL Querystring中使用"sender"关键字.

请看这个问题.是否有任何服务器策略或IIS策略?

谢谢
Ravi Kumar

HI friends....

I have created a page "Home.aspx". I am passing the QueryString "Sender=1234" and Message="Hello".

Exactly the URL is
http://localhost:2346/Project/Home.aspx?Sender=1234&Message=Hello

In local , it is working fine. But when I upload to this server(win 2008+iis7+ sqlserver2008), it gives me an error- File Not Found

when i analyse this problem , i find out that due to "end" word in Url it gives me an error. I can''t use "end" keyword in URL. But for me it is mandatory to use "sender" keyword in URL Querystring.

Pls see this problem. Is there any server policies or IIS policy?

Thanks
Ravi Kumar

推荐答案

Home.aspx在IIS默认文档中不是默认设置.您必须定义它!
http://www.iis.net/ConfigReference/system.webServer/defaultDocument [ ^ ]
Home.aspx is not default in the IIS Default Docs. You must define this!
http://www.iis.net/ConfigReference/system.webServer/defaultDocument[^]


这篇关于问题找不到文件由于Querystring关键字而出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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