首页 > 解决方案 > 指定端口时出现 404 错误

问题描述

我有一个用 VB6 编写的旧版应用程序,并使用最近因服务器更改而中断的 IEFrame.dll。我正在尝试调试它为什么坏了,但我无法让它在我的本地机器上工作。在我的本地机器上,URL 是这样的:

http://localhost:4200/landing

如果我导航到http://localhost:4200页面加载,但如果我尝试导航到http://localhost:4200/landing我得到一个 404。如果我在 FF 或 Chrome 中尝试相同的 URL,它会按预期工作。

那么有没有办法让 IEFrame.dll 中的 WebBrowser 控件在端口位于 URL 中间时工作?

这基本上是 VB 代码的样子:

Dim url As String
url = "http://localhost:4200/landing"
wb.Navigate2 url 'This works if there is no port specified

“着陆”是一条 Angular 路线。我是 Angular 的新手,实际上并没有编写这个特定的服务器代码,所以我不能确定是否有重定向。

标签: angularvb6ieframe.dll

解决方案


推荐阅读