virtual-directory

Multiple applications on a single site - session and forms authentication scope

天涯浪子 提交于 2019-12-03 08:26:51
We're using ASP.NET and IIS 6.0. I realise that the definitions of applications, websites and virtual directories are ill-defined in IIS 6, and changed a lot in IIS 7. However, I'm stuck with IIS 6.0 for now. We have a single web site defined in IIS, and a number of separate sub-sites in Virtual Directories. The scheme looks like this:- http://site.example.com/site1 http://site.example.com/site2 .. etc .. site1, site2, ... are virtual directories in IIS 6.0, under the "Default Web Site". I need to use ASP.NET sessions and forms authentication in most of these sites, and I don't want them to

Junctions or Virtual Directories for Web Applications?

做~自己de王妃 提交于 2019-12-02 13:50:02
问题 I see that junctions are a common way of referencing shared code in many projects. However, I have not seen them used in web applications before. Our team is exploring the possibility of abandoning virtual directories in favor of junctions to simplify our build process. My goal is to compile a list of pros and cons in order to make an informed decision regarding this change. Is it more appropriate to use junctions or virtual directories on web application projects? Environment is ASP.NET,

Junctions or Virtual Directories for Web Applications?

人盡茶涼 提交于 2019-12-02 04:44:49
I see that junctions are a common way of referencing shared code in many projects. However, I have not seen them used in web applications before. Our team is exploring the possibility of abandoning virtual directories in favor of junctions to simplify our build process. My goal is to compile a list of pros and cons in order to make an informed decision regarding this change. Is it more appropriate to use junctions or virtual directories on web application projects? Environment is ASP.NET, IIS6/IIS7, VS.NET. Virtual directories vs. junctions is like comparing apples to pears: they both create

401.1 Error when accessing virtual directory pointing to network share

前提是你 提交于 2019-12-01 08:28:41
IIS5 is running on SERVER1. One of the virtual directories in IIS, myfiles, is pointing to "A shared location on another computer", //SERVER2/myfilesshare When I try to access the page: http://SERVER1/myfiles ... I get the error: You are not authorized to view this page HTTP 401.1 - Unauthorized: Logon Failed Internet Information Services I have triple-checked the "Connect As..." settings in IIS. The credentials I'm using to access the share are correct-- they work when connect to the share in Windows Explorer, but not through the IIS virtual directory. I've tried granting full permission to

401.1 Error when accessing virtual directory pointing to network share

时光怂恿深爱的人放手 提交于 2019-12-01 06:18:49
问题 IIS5 is running on SERVER1. One of the virtual directories in IIS, myfiles, is pointing to "A shared location on another computer", //SERVER2/myfilesshare When I try to access the page: http://SERVER1/myfiles ... I get the error: You are not authorized to view this page HTTP 401.1 - Unauthorized: Logon Failed Internet Information Services I have triple-checked the "Connect As..." settings in IIS. The credentials I'm using to access the share are correct-- they work when connect to the share

Is there a way to add a virtual directory to Visual Studio Development Server?

谁说胖子不能爱 提交于 2019-12-01 02:17:16
I'm using the Visual Studio Development Server, with a specific port. Is there a way to add a virtual directory to it? EDIT: Sorry, I wasn't very clear. I'd like to be able to add one or more virtual directories to arbitrary physical directories. For instance: http://localhost/c_drive/ would map to C:\, http://localhost:/d_drive/ would map to D:\, etc. The Visual Studio Development Server is codenamed Cassini. From ASP.NET 2.0: A Getting Started Guide Cassini doesn't support virtual directories, security settings, or any of IIS's other fancy features; it's just a very simple web server that

save file to virtual directory

淺唱寂寞╮ 提交于 2019-11-30 17:41:28
问题 Hi I am unsure how to do this, I am using shared hosting. I have a virtual directory at http://www.example.com/images. This directory is actually a folder on the server assets/images whereas my site is at /httpdocs (httpdocs and assets folder are at the same level). How can I save files to this folder and then access using eg /images/foo.jpg? httpdocs/ --web.config --default.aspx --etc assets/ --images/ ----foo.jpg 回答1: You can save files normally (using FileStream s or other things). Call

How to Properly Reference a JavaScript File in an ASP.NET Project?

て烟熏妆下的殇ゞ 提交于 2019-11-30 15:32:53
问题 I have some pages that reference javascript files. The application exists locally in a Virtual Directory, i.e. http://localhost/MyVirtualDirectory/MyPage.aspx so locally I reference the files as follows: <script src="/MyVirtualDirectory/Scripts/MyScript.js" type="text/javascript"></script> The production setup is different though. The application exists as its own web site in production, so I don't need to include the reference to the virtual directory. The problem with this is that I need to

getting base url of web site's root (absolute/relative url)

孤街醉人 提交于 2019-11-30 15:19:58
问题 I want to completely understand how to use relative and absolute url address in static and dynamic files. ~ : / : .. : in a relative URL indicates the parent directory . : refers to the current directory / : always replaces the entire pathname of the base URL // : always replaces everything from the hostname onwards This example is easy when you are working without virtual directory. But i am working on virtual directory. Relative URI Absolute URI about.html http://WebReference.com/html/about

Javascript in Virtual Directory unaware of Virtual Directory

蓝咒 提交于 2019-11-30 12:37:05
问题 Say I have the site http://localhost/virtual where virtual is the virtual directory I have an Ajax request that is defined in a javascript file using JQuery $.getJSON("/Controller/Action") When this is called, the client tries to find the url at the root level i.e. http://localhost/Controller/Action If I add the tilde (~) symbol in, it turns into http://localhost/virtual/~/Controller/Action It should (if it was to do what I wanted) resolve to http://localhost/virtual/Controller/Action Any