virtual-directory

Virtual Directory pointing to UNC share

只谈情不闲聊 提交于 2019-12-24 17:15:15
问题 I have an app that uploads documents to the server through the standard When sent my application to the production server, I found out that they had the server load balanced. My solution to this was to place the upload directory into a network share and then create a virtual directory pointing to the share. I have set permissions on the share and the file itself, but I keep getting "access denied" whenever I try to upload a document. Where could I be missing permissions? Is it possible that

Application loses authentication when performing redirect to a virtual directory

99封情书 提交于 2019-12-24 08:46:01
问题 I have the following setup: http://www.example.com/dir1/ and http://www.example.com/dir2/ Each virtual directory is configured on IIS6.0 as an application with own AppPool. When redirecting authenticated user from dir1 to dir2 using response.redirect I lose authentication information for the user and the user is being redirected to the login page. This issue was not coming up with each app (dir1 and dir2) were configured under subdomain, ex: http://dir1.example.com and http://dir2.example.com

Sharing authentication between IIS applications on same domain

主宰稳场 提交于 2019-12-22 09:40:14
问题 I have an IIS website on www.example.com and a virtual directory at www.example.com/demo/ How can I use the authentication cookie from www.example.com in my virtual directory? 回答1: You are looking for a Single Site Login solution. If the article I linked to doesn't help you, there's plenty more on google when you know what to search for ;) 回答2: The cookies are shared in the same domain, even shared between applications. I have used the same cookie to share authentication between a Classic ASP

Make Apache virtual directory from the contents of a zip file

假如想象 提交于 2019-12-20 03:03:00
问题 I have a couple of compressed zip file with static HTML content (e.g. a directory tree of documentation with several static html pages that link to each other, images, css, etc.) For instance, the javadoc zip file serves as an equivalent example for my purpose. My question is, if there's an apache module that would allow apache to "mount" a zip file as a virtual directory, whose contents are those of the zip file. The operating system in which I'm hosting apache is Mac OS X Snow Leopard. 回答1:

Creating virtual application/directory in physical folder on IIS/ASP.NET

丶灬走出姿态 提交于 2019-12-19 03:44:11
问题 What I want to achieve is simple: I have a website, say "my-site" - http://localhost In this website I have a (physical) folder "foo" - http://localhost/foo Inside the "foo"-folder I want to have a virtual directory (application?) called "upload", so the URL becomes http://localhost/foo/upload Notice that "my-site" is an empty website with a bunch of folders in it, "foo", "bar", "baz", etc. So when I right click on "foo" and choose "New > virtual directory" and add my application I've written

IIS Virtual Directory map to network drive (with drive letter) but fail to create file

时间秒杀一切 提交于 2019-12-18 03:39:38
问题 I am using C#/ASP.NET, IIS6 on Windows Server 2003. Map the data server shared folder to the WebServer with driver letter V:\ On the WebServer, IIS created a virtual directory and pointed to 'local location' with V:\ . Since there is no 'Connect As', not sure which USER will be used In my WebMethod, I want to create file on the shared folder with FileStream.Write(). I got IO Exception on the action, any hint? P.S. I have added ASPNET/NETWORK SERVICE on the data server shared folder. thanks!

Script Bundling in WebForms with Virtual Directories

天涯浪子 提交于 2019-12-14 03:57:14
问题 We have a separate "Framework" project for shared controls, javascript, etc. that is used by this and other projects. The Framework project is included in our solution, and we made a virtual directory for it with IIS so we can still make relative links to files with ~/Framework . So, we want to begin using the new Web Optimization bundles for scripts and styles. Everything is working fine, but we are having issues when attempting to use bundling with JS files in the virtual directory. When

C# How to find WCF IIS deployment/virtual directory at runtime to change name of log file?

断了今生、忘了曾经 提交于 2019-12-13 11:49:22
问题 I am trying to change the name of a c# WCF logfile based on the name of the IIS Virtual directory it is deployed to. I tried to use the Directory.GetCurrentDirectory() call but it returns the directory c:\windows\system32\inetsrv regardless which virtual directory the WCF apps was deployed to.. So should I be looking into the VirtualDirectory Class ?? Any sample code on how to find the current Virtual Directory ? Thanks ! 回答1: Did you try this: string path = HostingEnvironment.MapPath("~");

HTTP Error 500.19 - Internal Server Error 0x8007052e

被刻印的时光 ゝ 提交于 2019-12-13 04:53:11
问题 I copied an MVC project from another development pc to my laptop and tried to deploy it on the laptop which gave this error. The user account password was changed recently prior to this error. I tried tinkering around with the app pool permissions for the root folders with no effect. Any ideas? I am stuck. HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module IIS Web

Azure multiple sites in virtual directories

我只是一个虾纸丫 提交于 2019-12-12 23:20:15
问题 I have 3 asp.net core sites I need to deploy on the same domain (subdomains will not work with my SSL certificate). https://my-site.com (Single page app) https://my-site.com/api (Web api) https://my-site.com/identity (Identity server) When I deploy the api and identity projects, they work fine. However, when deploying the single page app, api and identity stop working. The page cannot be displayed because an internal server error has occurred. The error appears instantly so it's probably