问题标签 [virtual-directory]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
iis-6 - httpHandler 适用于虚拟目录但不适用于类似配置的网站
我正在建立一个大量使用 httpHandlers 的第三方网站。当在 2003/IIS6 机器上配置为默认站点下的虚拟目录时,一切都按预期工作。但是,当在同一台机器上配置为独立站点时,指向同一目录和 web.config,httpHandlers 不起作用(404)。
我尝试了对处理程序标签的路径值的各种更改,但没有结果。页面本身以及应用程序的代码似乎都在独立站点内执行 find。
我可能会遗漏任何明显的东西吗?
c# - 在 IIS/ASP.NET 的物理文件夹中创建虚拟应用程序/目录
我想要实现的很简单:
- 我有一个网站,说“我的网站” - http://localhost
- 在这个网站上,我有一个(物理)文件夹“foo” - http://localhost/foo
- 在“foo”文件夹中,我想要一个名为“upload”的虚拟目录(应用程序?),因此 URL 变为http://localhost/foo/upload
请注意,“my-site”是一个空的网站,里面有一堆文件夹,“foo”、“bar”、“baz”等。
因此,当我右键单击“foo”并选择“新建 > 虚拟目录”并添加我在 VS.NET 中编写的应用程序,然后尝试导航到http://localhost/foo/upload时,我收到此错误:
问题是,没有网络配置。在“foo”文件夹中,它不应该,因为它只是站点中的一个普通文件夹。如果我在顶层添加虚拟目录,比如http://localhost/foo_upload,一切都会正常运行......那么,我在这里做错了什么?
asp.net - 通过 href 导航到 pdf 后清除浏览器历史记录
好的,希望我以您可以理解的方式表达了这一点。首先我会说我的网站有一个登录页面http://www.mywebsite.com/PageOne.aspx
在 PageOne.aspx 上,我有一个指向另一个页面的链接:http ://www.mywebsite.com/PageTwo.aspx
在 PageTwo.aspx 上,我有一个指向以下内容的链接:
/MyFiles/ 目录实际上是一个虚拟目录,它指向保存许多其他文件(PDF、jpeg、doc 等)的文件服务器。
当我从 PageOne.aspx 导航到 PageTwo.aspx 时,我可以单击“返回”并且仍然可以访问 PageOne.aspx(我的浏览器历史记录是正常的)。当我单击 PageTwo.aspx 上的链接时,PDF 在同一个窗口中打开……然后我可以单击“返回”返回 PageTwo.aspx,但我无法再次单击“返回”返回 PageOne .aspx(似乎我的浏览器历史记录减少了一页)。
有谁知道为什么会发生这种情况?我只能想象这是因为虚拟目录而发生的,因为如果 PDF 与我的 .aspx 页面位于同一台服务器上,我就无法复制这个问题。如果是这种情况,有谁知道如何解决这个问题,并且我的 PDF 仍然驻留在文件服务器(虚拟目录)上?
谢谢!
iis - 虚拟目录中的 IIS 配置文件
我有多个网站都具有相同的代码,但不同的应用程序设置。我想将我的应用程序设置放在位于虚拟目录中的单独配置文件中。这将允许我拥有跨所有站点共享的所有代码的单个副本,每个站点具有不同的虚拟目录。
不幸的是,当我尝试配置它时,IIS 在虚拟目录中时不会处理配置文件。
如果您对此有解决方案,我将不胜感激。
iis - 访问指向网络共享的虚拟目录时出现 401.1 错误
IIS5 在 SERVER1 上运行。
IIS 中的一个虚拟目录 myfiles 指向“另一台计算机上的共享位置”,//SERVER2/myfilesshare
当我尝试访问该页面时: http://SERVER1/myfiles
...我得到错误:
您无权查看此页面
HTTP 401.1 - 未经授权:登录失败
互联网信息服务
我已经三重检查了 IIS 中的“连接为...”设置。我用来访问共享的凭据是正确的——它们在 Windows 资源管理器中连接到共享时有效,但不是通过 IIS 虚拟目录。我已经尝试向 SERVER2 中的文件夹上的每个人授予完全权限,但没有运气。
有什么想法吗?
asp.net - IIS 6.0 远程共享的访问权限
在 IIS 下使用远程共享的 UNC 路径设置虚拟目录时,我应该期望看到对共享的读取请求的用户身份是什么?
我已经设置了上述场景并将“连接为”下的用户配置为具有远程共享权限的已知用户,我使用 Windows 资源管理器进行了检查。
但是,当尝试使用http://localhost/myfiles/atestfile.txt从共享上的 Web 浏览器中访问文件时,我收到 HTTP 错误 401.5 - Unauthorized: Authorization failed by an ISAPI/CGI application error 返回。'myfiles' 映射到远程共享,并且 atestfile.txt 驻留在共享文件夹中。
如果我使用 sysinternals filemon 应用程序查看正在执行对共享的读取请求的进程和用户,那么我会得到请求是通过 w3wp.exe 进程的详细信息,并且用户显示为“NT AUTHORITY\NETWORK ”。
我期望用户显示为我在“连接为”选项下配置的用户。
任何指导表示赞赏。
windows-installer - Where has my user installed my web setup project?
I have a web setup project, and a web service project in visual studio 08
In my web setup project i allow the user to choose his virtual directory name and by the end of the installation i have an installer class in my web service project that "wants" to do some stuff such as opening a web page with the web service home page installed.
The thing is that i know how to pass parameters from the web setup project such as TARGETDIR in my installer class but i can't figure out the URL of what he installed. IE if he installed a virtual directory named foo i can assume that he it is located at http://localhost/foo but what if i miss some configuration of the IIS and maybe the website is located under http://localhost/whatever/foo ?
So, to keep it relatively short, by the end of the installation i need to know in my installer class my web service's URL.
.net - IIS 6 with wildcard mapping and UNC virtual directory problem
On our production servers (win 2003 with IIS6 and load balanced with an F5 BIGIP), we have a problem when introducing wildcardmapping on IIS6. We use .net Framework 3.5 SP1.
The issue manifests itself as by the server only sometimes serving the images stored on a virtual directory pointing to a UNC path. Sometimes the images are displayed, and sometimes not. Removing the wildcard mapping solved this problem.
I will need wildcard mapping on the server for future features, so any help/pointers to if this is a known problem will be very helpful.
In advance, thanks for any help.
Edit: The exception it fails with is the following:
Message: Failed to start monitoring changes to '\ourFileServer\folder1\thumbnails' because the network BIOS command limit has been reached. For more information on this error, please refer to Microsoft knowledge base article 810886. Hosting on a UNC share is not supported for the Windows XP Platform. Source: System.Web Data: System.Collections.ListDictionaryInternal TargetSizeVoid .ctor(System.Web.DirectoryMonitor, System.String, Boolean, UInt32) StackTrace at System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir, Boolean watchSubtree, UInt32 notifyFilter)
at System.Web.DirectoryMonitor.StartMonitoring() at System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) at System.Web.FileChangesMonitor.StartMonitoringFile(String alias, FileChangeEventHandler callback) at System.Web.Configuration.WebConfigurationHost.StartMonitoringStreamForChanges(String streamName, StreamChangeCallback callback) at System.Configuration.BaseConfigurationRecord.MonitorStream(String configKey, String configSource, String streamname) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
iis - 来自 web.config 的 IIS 虚拟目录
我有一个 IIS 问题,我认为这个博客给了我一个解决方法:
要解决它,请右键单击虚拟目录 - 选择属性,然后单击“应用程序”标签和文本框旁边的“创建”。它将使用虚拟目录的名称自动创建“应用程序”。现在可以访问应用程序了。
但是我无权访问 IIS GUI。有没有办法通过编辑 web.config 文件来做同样的事情?
asp.net - ASP.NET 和虚拟目录
我们有一个将用 ASP.NET 替换的 ASP 系统。几个不同的实体使用这个系统作为他们网站的扩展(这个系统的外部),使用虚拟目录、CSS 等。这个架构在 .NET 世界中仍然合理吗?有没有更好的方法来做到这一点?