vs2017怎么浏览html,VS 2017浏览器链接不能使用静态HTML(VS 2017 Browser Link Not Working with Static HTML)...

VS 2017浏览器链接不能使用静态HTML(VS 2017 Browser Link Not Working with Static HTML)

在ASP.NET 4.6项目中,我遵循了在web.config中的适当位置输入以下内容以启用Browser Link与静态HTML文件(用于引导角度)的说明。

type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

resourceType="File" preCondition="integratedMode" />

这是一个非常简单的web.config ,我相当确定这不是一个处理程序未被正确添加的问题,如此处所述 。

但是,在浏览器中查看html源代码时,它不包含本文中描述的Browser Link的脚本标记。

我的印象是,如果加载处理程序时出现问题,应用程序将无法加载。无论如何,要解决在ASP.NET中加载的处理程序问题吗?

In an ASP.NET 4.6 project I have followed the instructions for enabling Browser Link against a static HTML file (used to bootstrap angular) by entering the following in the proper place in web.config.

type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

resourceType="File" preCondition="integratedMode" />

This is a very simple web.config and I am fairly certain it is not an issue of the handler not being added properly as described here.

However when looking at the html source in the browser, it does not contain the script tags for Browser Link described in this article.

I was under the impression that if there was a problem while loading handlers, the application would fail to load.Is there anyway to troubleshoot handlers being loaded in ASP.NET?

原文:https://stackoverflow.com/questions/43352793

更新时间:2020-01-16 04:25

最满意答案

我正在开发CMS的Angular模块,所以我没有在我的index.html包含

标签。

事实证明,

标签必须存在。 我猜测处理程序正在使用XPATH插入Browser Link脚本标记。

I am developing an Angular module for a CMS, so I was not including the

tag in my index.html.

It turns out, the

tag must be present. I am guessing the handler is using XPATH to insert the Browser Link script tags.

相关问答

以下解决方案在VS 2017 C ++中为我工作: 这是编译器的一个令人讨厌的怪癖。 当它搜索预编译的头文件时,它会在stdafx.h之前跳过任何#includes。 让它看起来像这样解决你的问题: #include "stdafx.h"

#include

The following solution worked for me in VS 2017 C++: That's a nasty quirk of the compiler. When it searches fo

...

您必须将其作为本地HTML文件运行,而不是通过HTTP访问。 所以任何URL都以: //

...将继承与本地文件相同的“协议”,在本例中为file:// 。 如果您不想要file://请https: http:或https: file:// You must be running this as a local HTML file, not accessed over HTTP. So any URL starting with: //

...is going to inherit the s

...

mWebView.setWebViewClient(new WebViewClient() {

@Override

public boolean shouldOverrideUrlLoading(WebView view, String url) {

view.loadUrl(url);

return false;

}

});

mWebView.setWebViewClient(new Web

...

由于安全问题,浏览器链接目前仅限于本地浏览器。 浏览器链接连接可用于在Visual Studio中执行代码。 由于VS通常作为提升用户运行,因此可以使某人使用未经身份验证的HTTP连接以提升的权限执行代码。 如果我们能够提供足够的安全保护措施,将来可能会添加对远程浏览器的支持。 Browser Link is currently restricted to local browsers because of security concerns. A Browser Link connection

...

仔细检查您的锚标记中使用的网址。 也许你也可以考虑在你的角度项目的根目录下创建一个文件夹,说contents或类似的东西,在那里你可以把你的文件放在那里。 那么你只需要引用它就好 Resume

Double check your URL used in the anchor tag. Perhaps you could also consider creating a folder under the root of your

...

当我从浏览器点击我的html页面的链接时,我想播放我的自定义意图。 您可以通过两种方式实现,具体选择取决于您的使用案例。 创建以打开所选链接(您网站的链接) 将您在网站上的链接更改为

Cefsharp在加载依赖关系时在Cefsharp.dll中有一个错误。 我修好了,错误消失了。 加载依赖关系时,一些路径是绝对的。 我将它们改为相对路径。 Cefsharp has a bug in Cefsharp.dll while loading the dependencies. I fixed it and error gone. While loading the dependencies some paths are absoulate. I change them into re

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值