473,748 Members | 2,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Virtual Directories

Using vs05 and making an asp.net 2.0 website.

We use VSS and have everything organized like this

SolutionName
Documents
Code
WebProjectName1
WebServiceProje ctName1

The issue we have is that on our production website we have some
directories off of the root

\
StyleSheets
Images

All of our websites use these common Virtual Directory
In VS05 I can't figure out how to use these common directories without
importing them into the project.

That is due to the way the built in web server works.
Can you configure it to use virtual directories?
Is there some work around so that I don't have to put the shared
directories into every project? I'd like to use the VS Development
Web Server because it makes it easy to check out projects to new
computers (no local IIS virtual directory creating for the project).

I saw this article a while back:
http://delphi.about.com/od/adptips20...nivalidate.htm
Are there some Cassini limitations I should know about?

thanks,
Apr 26 '06 #1
4 2226
Hi Chuck,

Thank you for posting and glad to see you again.

From your description, I understand you're using the VS 2005 FileSystem
based project to develop some ASP.NET 2.0 web applications. And you're
using VSS to manage the projects' source. These web applications will use
some shared static resources(like css styles and images in a global
location, a dir under IIS site root when hosting in IIS), however, you
found it hard to make the applications to reference these shared resource
through the VS 2005 Test WebServer, correct? If anything I didn't quite
get, please feel free to post here.

Based on my understanding, this does be an existing limitation of the VS
2005's TestServer (The WebDev.WebServe r.EXE ), the testserver generally
only take care of the application's directory and sub directories, it has
no sense of parent virtual or physical dir which makes IIS site root like
setting not available.

For your scenario, except using local IIS to host the application, what I
can get so far is the following workaround:

This approach contains two steps:

1. By default, the VS 2005 TestServer will host our web application as a
sub virtual directory under site root , however, we can manually launch the
testserver and configure it as a root application:

#How to Run a Root ¡°/¡± Site with the VS/VWD 2005 Local Web Server
http://weblogs.asp.net/scottgu/archi...21/431138.aspx

Thus, any site relative path like "/Images/...." can be correctly pointed
to our appliation directory's sub directories.

2. As in #1, we still need to copy any shared resources into the sub
directories in our application's sub directories, then, we need another way
to do the mapping between the global shared resource folder and our
application's sub folders. This is the "Symbolic link" file setting
provided in windows 2000 and above, it provide a low level physical folder
linking, and there is an utility in sysinternals site which can help us
create such symbolic linking between NTFS physical folders:

#Junction
http://www.sysinternals.com/Utilities/Junction.html

You can find more about file system's symbolic linking in MSDN:

http://msdn.microsoft.com/library/en...ks.asp?frame=t
rue

This idea comes from an original thread discussing on provide shared
location to store source files which will be used (for compilation) in
multiple applicaitons.
Hope this helps a little.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 27 '06 #2
Hi Chuck,

How are you doing on this issue or does the information in my last reply
helps you a little? If there is anything else we can help, please feel free
to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 1 '06 #3
Thanks Steven,
It's enough to make me no I don't want to go there.
I will have all the developers install IIS.

Actually vs05 seems to work much better than 03 in this regard.
A developer checked an asp.net solution into vss from her D: drive.
I checked it out to my J:. For some reason it actually worked. It
wouldn't have in VS03.

I looked at the .sln file and the project info had

Project("{E24C6 5DC-7377-472B-9ABA-BC803B73C61A}") =
"D:\CriticalSki lls\Documentati on\", "..\Documentati on",
"{87B14359-9A80-41B2-8825-013C6BB4F49C}"
ProjectSection( WebsiteProperti es) = preProject
SccProjectName =
""$/VS05/CriticalSkills/Documentation", XQDAAAAA"
I guess when it looks for the project if it doesn't find it at the
first location it tries a relative location.

Also I didn't have to create Virtual directories in IIS! I guess VS
did it automatically.


On Mon, 01 May 2006 12:08:51 GMT, st*****@online. microsoft.com (Steven
Cheng[MSFT]) wrote:
Hi Chuck,

How are you doing on this issue or does the information in my last reply
helps you a little? If there is anything else we can help, please feel free
to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
============== =============== =============== ======

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

============== =============== =============== ======
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 10 '06 #4
Thanks for your followup Chuck,

Glad to hear that you've already been on the way. As always, please feel
free to post here when there is any thing we can help on ASP.NET developing.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
May 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3724
by: Mark Hoagland | last post by:
I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I have a series of IIS virtual directories which all point to the same set of ASP pages. However, since each virtual directory is a separate 'application', each has its own set data which must be cached. To detect which data must be cached for each virtual directory, I need to...
5
1821
by: George Hester | last post by:
If I have 1 Virtual Dirctory with 2 different subfolders are these 2 different folders different virtual folders? Or if I have 2 different Virtual Directories each containing a subfolder are these two subfolders 2 different virtual folders? I know it seems like a weird question but I'm asking because Microsoft is using the term "virtual folders" and I am not sure if they mean the former or the later. Thanks. -- George Hester...
3
3677
by: pleaseHelp | last post by:
To better manage our secure site we just separated the registration and checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the primary eCommerce website. This is an ASP site (not asp.net). When this version goes into production it will be on a 2003 server (IIS 6) with a SQL Server backend (located on a different server). Now when the main server passes control to one of...
2
4231
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the NetAdvantage component suite from Infragistics for my web applications. When installing they create several virtual
4
2596
by: Michelle | last post by:
I have a website with 6 virtual directories under it who dont "see" the bin/ directory in the root. If I create a /bin directory in each virtual directory and then copy my dll's in there, it works. Any idea what I'm doing wrong? Or any other way to reference a dll? I know a solution is to copy the dll's into the GAC, but this server has many other websites running on it, so I don't want the dll's there and available to any other...
1
1260
by: Mark | last post by:
In our root web site, we have roughly 100 folders. 10 of these are virtual directories. The other 90 folders are a mix - some contain static HTML content. Others contain subfolders and additional virtual directories. Yikes. I need to identify all the virtual directories on our server, but drilling down into every single folder in search of sub folders containing virtual directories is potentially error prone. Is there a way to list...
2
1998
by: Angelo Cook | last post by:
how do you prevent the publishing of virtual directories in VS 2005. I have been using VS2003 and developing websites for years. I have been using virtual directories for images, icons, styles and scripts. Which in dot net 1.1 and VS2003 when I copied or published my web sites the virtual directories were ignored. Now I am trying to convert to VS2005 and dot net 2.x and now my development environment now sees the virtual directories and...
4
8732
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
Best way I can think to describe this is through an example. I have a virtual directory, let's call it "MyVirtualDirectory" that maps to \\MyServer\Shared. I have a path that is \\MyServer\Shared\SomeDirectory\SomeFile.txt. I need to convert this path to a virtual path with the virtual directory name. The result I'm after would be: MyVirtualDirectory\SomeDirectory\SomeFile.txt
4
2883
by: Paul F | last post by:
Im confused about the difference(s) between virtual directories and physical directories in IIS. Any ideas? *** Sent via Developersdex http://www.developersdex.com ***
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.