473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Visual Studio 2005 ASP.net publishing of virtual directories

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
when I publish to my test site, which has the same virtual directories set
up, it insists on copying the files to actual directories.

I know I am missing somthing here.
Oct 1 '06 #1
2 1977
Wlecome to the land outside the box.

In ASP.NET 2.0, MS has opted for a non-project website model. When you open
a site, it iterates through the directories and finds everything. The only
possible way I can think of to circumvent this (have not tested the idea) is
to dink with the solution file, as that is where info that used to be in the
project file is now stored (not all information, just the bits that are
absolutely necessary). I am not confident anything WAS left in the solution
file to exclude.

Another option is to purposefully exclude the virtual directory bits (which
is in the solution). The issue here is it renames the files to .exclude.
But, you could go through the discipline of running locally, exclude and
publish. Yes, this would be a pain, but it would work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Angelo Cook" <an********@earthlink.netwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
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 when I publish to my test site, which has the same virtual
directories set up, it insists on copying the files to actual directories.

I know I am missing somthing here.

Oct 2 '06 #2
There is one other option to try: MSBuild

The web deployment bits (below) might help you on this one.
http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx

Wit MSBuild, you are in control of what is built and deployed, even if more
stuff is found by the local debug and compile.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Angelo Cook" <an********@earthlink.netwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
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 when I publish to my test site, which has the same virtual
directories set up, it insists on copying the files to actual directories.

I know I am missing somthing here.

Oct 2 '06 #3

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

Similar topics

3
by: Rob Mayo | last post by:
I am working in an environment with 4 developers. 2 groups of 2 people working on the same server on the same web project with no version control management on the web server. Programmers A & B...
3
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it...
4
by: Charts | last post by:
6/23/05 ..NET Development\Framework\dotnet.framework.aspnet Visual Studio 2005 Beta 2 project cannot work in IIS virtual directory I used Visual Studio 2005 Beta 2 to build a simple new...
1
by: Andy | last post by:
This is driving me to insanity!!! I do not have a lot of experience with IIS which probably is not helping but as far as I can tell I am do things as per the MSDN documentation. I have a...
3
by: Paras Sharma | last post by:
Hi all, We are facing this big problem. Scenario is as follows. We have one single solution (say EIS) under which there are 25 projects. All the files are saved at a central location under...
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
2
by: Geek | last post by:
Guys, I have a question regarding publishing web site using visual studio 2005. As usual I am running in to issues using visual studio 2005. I have build a web site and when I publish to the...
5
by: Nathan Sokalski | last post by:
I am creating an ASP.NET application in a subdirectory of what IIS uses as the root directory (C:\Inetpub\wwwroot\). I am using the version of IIS that comes with Windows XP Pro SP2. Some of my...
10
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I usually deploy my ASP .NET application to the server by publishing, using Visual Studio 2005 publish feature. This creates the Bin folder on the server, with the compiled DLLs. I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.