简体   繁体   English

Chrome 会下载 .aspx 文件而不是查看它

[英]Chrome downloads .aspx file rather than viewing it

I'm trying to install mojoportal on my server (externally hosted) but when I go to the.aspx page the browser just downloads it where it should be loading it properly like a web page.我正在尝试在我的服务器(外部托管)上安装 mojoportal,但是当我 go 到 .aspx 页面时,浏览器只是将它下载到应该正确加载它的位置,就像 web 页面一样。

Whats wrong?怎么了?

The file it's trying to load is:它试图加载的文件是:

<%@ Page Language="C#" AutoEventWireup="false" EnableSessionState="False" CodeBehind="Default.aspx.cs" Inherits="mojoPortal.Web.UI.Pages.SetupHome" %>
  • I dont even know what that bit does, but that is all there is in the file i'm meant to load.我什至不知道那位是做什么的,但这就是我要加载的文件中的全部内容。

If its download it and not show it, means that the asp.net is NOT running on this site, and the web server see this aspx just like any file for download.如果它下载它但不显示它,则意味着 asp.net 未在此站点上运行,并且 web 服务器看到此 aspx 就像任何要下载的文件一样。

I am also having this issue when working through an insurance company's secure portal.在通过保险公司的安全门户网站工作时,我也遇到了这个问题。 I'm the only one in my office who is getting this.我是我办公室里唯一得到这个的人。 When a clinical survey appears (where I would answer questions), my browser just tries to download a.aspx file.当临床调查出现时(我会在那里回答问题),我的浏览器只是尝试下载一个 .aspx 文件。 This happens to me on Chrome, Edge, Firefox, and IE11.这发生在我的 Chrome、Edge、Firefox 和 IE11 上。 My IT Help Desk doesn't have an answer for this and the owner of the portal is stating that it's not their problem if it's just me that's having the issue.我的 IT Help Desk 对此没有答案,门户网站的所有者表示,如果只是我有问题,那不是他们的问题。 What software am I missing?]我缺少什么软件?]

暂无
暂无

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

相关问题 查看PDF文件时,任何已安装的下载管理器都会检测该文件,而不是查看该文件,如何解决此问题? - While viewing a PDF file, file is detected by any installed download manager rather than viewing it, how to overcome this behavior? 是否有任何理由将代码放在代码背后而不是aspx文件中? - Is there any reason to put code in the code behind rather than in the aspx file? 如何将图像保存为 jpeg 文件而不是 aspx 文件? 如果有办法,如何将其转换为 jpg? - How to save image as jpeg file rather than aspx file? And if there's a way, how to convert it to jpg? Web.UI.Page对象(C#)可以对应.html文件而不是.aspx文件吗? - Could a Web.UI.Page object (C#) correspond to a .html file, rather than a .aspx file? 如何在aspx文件下载中提供安全性? - How do I provide security in the aspx file downloads? 在aspx页面中使用ajax而不是重新加载整个页面? - Using ajax in aspx page rather than reloading the whole page? 在aspx页面中获取变量值,而不是后面的代码 - Getting variables value in aspx page rather than code behind 网站无法正确响应.aspx页面,而仅下载.aspx文件? 这里发生了什么? - Website not responding properly to a .aspx page and only downloads the .aspx file? What is going on here? 在视图中托管JavaScript,而不是.js文件 - Hosting javascript in a view rather than a .js file 希望C#ASPX页面生成纯文本而不是HTML - Want C# ASPX page to produce plain text rather than HTML
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM