无法显示ASP .Net页面错误 [英] ASP .Net Page Can't Be Displayed Error

查看:87
本文介绍了无法显示ASP .Net页面错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了最奇怪的问题.在尝试在Visual Studio 2012中使用该网站之前,我的网站一直在Visual Studio 2008中运行良好.放弃了这个想法之后,我又回到了Visual Studio 2008,遇到了以下问题.

I am having the strangest issue. My website has been working perfectly in Visual Studio 2008 until I tried to work on the website in Visual Studio 2012. Having abandoned that idea, I am now back to Visual Studio 2008 with the following problem.

问题:

任何文件夹内的任何页面在所有浏览器(IE,Firefox,Chrome,Safari)中都会显示无法显示页面"错误或类似内容.除非,该页面是Default.aspx页面.尽管在Web.config中启用了调试,但是断点不会加载到任何有问题的页面上.事件查看器中没有错误.

Any page inside any folder displays a "Page can't be displayed" error or similar in all browsers (IE, Firefox, Chrome, Safari) UNLESS the page is a Default.aspx page. Break points do not load for any of the pages having problems, although debugging is enabled in Web.config. There are no errors in the event viewer.

问题的可能原因:

  • 我尝试在Visual Studio 2012中的网站上工作.在无法识别任何导入内容等之后,我决定继续使用Visual Studio 2008.
  • 我还删除了我的%temp%目录中的所有文件和文件夹

我尝试过的事情:

  • 在任何文件夹中创建一个新的空白页,以查看是否将其显示;该页面具有相同的错误
  • 注释掉现有非Default.aspx页面上的所有代码;同样的问题
  • 检查主机文件;没有任何活动,我所做的其他更改没有效果
  • 从Default.aspx浏览到另一个页面;相同的问题页面无法显示"
  • 检查了最近安装的新的AV,恶意软件等软件;没有安装
  • 在同一台计算机上创建了一个新站点,以查看新站点是否会有相同的问题.新站点可以正常工作.
  • 清除了C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET文件的内容;没变化

环境:

  • Windows 7 x64上的Visual Studio 2008.后端在VB .Net
  • 使用ASP .Net开发服务器在开发人员计算机上运行

任何帮助都将受到赞赏.

Any and all help is appreciated.

谢谢.

推荐答案

所以,我知道了.本质上,我将Default.aspx之外的所有页面都重定向到https(位于Global.asax内部).当这在具有有效证书的生产服务器上工作时,在开发机上,所有得到的就是上述行为.谢谢大家的评论和建议.

So, I figured it out. Essentially, I was redirecting all but the Default.aspx pages to https (inside Global.asax). While this works on the production server that has valid certs, on the development machine, all one gets is the aforementioned behavior. Thank you all for the comments and suggestions.

这篇关于无法显示ASP .Net页面错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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