Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 976363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:44:07+00:00 2026-05-16T03:44:07+00:00

This is VS 2008 and .Net 3.5. I use a custom deployment project script

  • 0

This is VS 2008 and .Net 3.5.

I use a custom deployment project script which is similar to the publish right-click menu, but which I have customised to do file renaming and various other bits and pieces. It works really well and has drastically simplified the release procedure.

I was made aware of an issue on one of our live sites this weekend that would have been prevented had the site been precompiled (long story).

So I’ve been playing around with injecting the AspNetCompiler MSBuild Task (using the PhysicalPath attribute to direct towards the intermediate publish folder) into the deployment script and I have a question regarding the ‘VirtualPath’ option.

Despite the fact that the website is not in IIS at this pre-deploy stage, you are still required to provide a value for the ‘VirtualPath’ attribute. I have seen here that the associated -v switch on aspnet_compiler.exe uses this value in resolving ‘~’ rooted virtual paths used throughout the site during the compilation.

So, I take this to mean that whatever you pass here must be the virtual root of the application when deployed otherwise it won’t work.

However, I’ve tried this out, passing something like ‘/fake/fake’ in this option and then changing one of my master pages to reference a css via an app-rooted url instead of relative, and it still worked even when deployed to a virtual path of ‘/site’ and not ‘/fake/fake’.

So what’s the definitive answer on this? Do I need to worry about this VirtualPath value being exactly equal to the eventual deployed location of a site in IIS? I hope not, because I don’t really want my deploy project to have any knowledge of the virtual hierarchy of the target web server, in case it needs to change.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:44:08+00:00Added an answer on May 16, 2026 at 3:44 am

    I’ve analyzed the code that is precompiled and it would seem that the precompiler automatically resolves the application-rooted paths to relative paths anyway, regardless of what you set the VirtualPath too. I’ve also tried deploying the same pre-compiled site to different virtual paths on the target server and nothing breaks.

    So therefore I’m confident enough to be able to say: no it does not matter what this value is.

    No doubt there’s bound to be something I’ve potentially missed – but until I’m proved wrong I’ll assume I’m right!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Using sequence unpacking (thanks to delnan for the name): zip(*a) May 16, 2026 at 11:51 am
  • Editorial Team
    Editorial Team added an answer I hope it's not a homework problem! def combinations(n: Int,… May 16, 2026 at 11:51 am
  • Editorial Team
    Editorial Team added an answer You mean =~, not ~. ~ is a unary bitwise… May 16, 2026 at 11:51 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm using a VS 2008 Setup and Deployment project to deploy a mixed managed
I currently do all development work in VB.NET 2008, winforms; but within 18 months
I use VS 2008, .net 3.5 for generate page html using XSLT. I have
I want to use custom extension on my web site. I mean, I do
I installed windows 2008 server integrated iis 7.0 1 day ago, i use windows
Trying to do basic SSL-authenticated Web Service using Visual Studio 2008 .NET 3.5 Service
I have a simple winforms application in VB.NET 2008. I am using a form
In my .NET application I am connecting to Microsoft SQL Server 2005 or 2008
This is the connection string that gets generated with the New ASP.Net Website template
I'm having an issue with a Visual Studio 2008 web application project where changes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.