简体   繁体   English

无法在iis7的本地计算机上显示经典的ASP页面

[英]Unable to display classic asp page on local machine on iis7

I am new to classic asp deployment. 我是经典ASP部署的新手。 I have deployed my classic asp project on my local machine on iis7 of windows7. 我已经在Windows7的iis7的本地计算机上部署了我的经典asp项目。

When I browse my website from iis it displays the home page but when i click on search button on page which should redirect to search.asp but the page is not displayed and no errors are shown. 当我从iis浏览我的网站时,它将显示主页,但是当我单击页面上的搜索按钮时,该页面应重定向到search.asp,但该页面未显示且未显示错误。
It shows The website cannot display the page . 它显示The website cannot display the page

Sqlserver version: 2008 SQLServer版本:2008

My connection string: 我的连接字符串:

MM_mtyadi_STRING.Open "Provider=SQLOLEDB;Data Source=.\SQLEXPRESS;Initial Catalog=MYDB;Integrated Security=True;"

My html code is : 我的html代码是:

<a href="html/search.asp"><img src="images/search.gif" width=351 height=51 border="0">

Any suggestions? 有什么建议么?

If you are using IIS7 classic asp has its own error reporting settings. 如果您使用的是IIS7,则经典的ASP具有自己的错误报告设置。 In IIS manager you have to double click ASP to get the properties page to pop up. 在IIS管理器中,您必须双击ASP才能弹出属性页面。

Expand: Debugging Properties: Set send errors to browser to : TRUE 展开:调试属性:将发送到浏览器的错误设置为:TRUE

That will give you detailed classic asp errors where you can understand where your code is breaking. 这将为您提供详细的经典asp错误,您可以在其中了解代码的中断位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM