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 6654945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:27:11+00:00 2026-05-26T01:27:11+00:00

We use TFS to deploy our applications to multiple environments (Dev, QA, Prod). Simple

  • 0

We use TFS to deploy our applications to multiple environments (Dev, QA, Prod). Simple enough, our Dev and QA environments have URLS like dev.domain/APPLICATION and qa.domain/APPLICATION. So we have a single site with each application as a virtual application.

However in production, they want each application to be its own site, such as APPLICATION.domain.com… Grrr! In Visual Studio, the application’s properties is configured to be in a “Virtual Path”. I”m not sure how I should go about this issue. The appliation contains code such as: <a href='/APPLICATION/File/Download?id=<#= PkFileId #>'><#= Name #></a> which causes problems in production since its not in a virtual application.

I could make a site called application.domain.com with an empty directory. Then add a Virtual Application, but then I would have to put a redirect in the root of the site to go to the virtual application. Or perhaps I can somehow configure the application? Not sure what my options are… Any suggestions are appreciated!

  • 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-26T01:27:11+00:00Added an answer on May 26, 2026 at 1:27 am

    The appliation contains code such as:

    <a href='/APPLICATION/File/Download?id=<#= PkFileId #>'><#= Name #></a>

    ASP.NET MVC applications should not contain code like that (a code in which urls are hardcoded). In ASP.NET MVC applications you should always use HTML and Url helpers:

    @Html.ActionLink(
        Model.Name, 
        "Download", 
        "File", 
        new { id = Model.PkFileId }, 
        null
    )
    

    This way it is certain that no matter how your routes are configured or under which virtual directory your application is hosted, it should work.


    UPDATE:

    After your comment it looks like you are using the Telerik Grid. In this case you may try something along the lines to generate proper anchors:

    columns
        .Bound(x => x.PkFileId)
        .ClientTemplate(
            Html.ActionLink(
                "<#= Name #>", 
                "Download", 
                "File", 
                new { id = "<#= PkFileId #>" }, 
                null
            ).ToString()
        )
        .Title("");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use TFS like a project repository; I have had a very
We have an ASP.Net MVC solution built in VS2008 and TFS2008. We use TFS
The title more or less sums it up. We use MS TFS as our
I have installed TFS Power Tools and I am trying to use the powershell
I use the TFS 2008 build facilities. I have a large MSBuild project (TFSBuild.proj)
We use TFS in our environment. Is there a way I can set up
We use TFS 2008 server for our builds. I need to create a build
Is it possible to use TFS source control without Visual Studio? I have to
We do use TFS to do automatic build and tests with our checkins. Today
I'm part of a team developing ASP.Net applications using Scrum. We currently use TFS

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.