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

  • SEARCH
  • Home
  • 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 6817443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:03:24+00:00 2026-05-26T21:03:24+00:00

I have a Visual Studio 2010 project with a Master Page that works fine.

  • 0

I have a Visual Studio 2010 project with a Master Page that works fine.

~/Site.Master

In the same project is a Folder with another directory structure that needs to use another Master Page.

/xr

Within this folder, I have included the Master Page for those files.

/xr/XR.Master

My Default.aspx file attempts to access this Master Page using the following include:

<%@ Page Title="XR Project" Language="C#" MasterPageFile="~/xr/XR.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Test1.Default" %>

Debugging on my machine in localhost works fine, but whenever I deploy it and try to navigate to the Default page in the xr folder, I get

Parser Error Message: The file '/xr/xr/XR.Master' does not exist.

However, the Source Error returns Line 1 as I have shown above.

Here is what I tried:

  • I moved the XR.Master page into the root folder and changed all of the files in the xr folder to reference the XR Master Page using the following include:

  • I debugged and tested the code on my machine using localhost, and it worked fine.

  • I pushed it out to the remote website and got the new error:

Parser Error Message: The file '/xr/~/XR.Master' does not exist.

What am I doing wrong?

EDIT: I do not like posting a link to the page, but I will for a short time until this is resolved:

  • Projects

From there, you will see everything works well enough except for the link to XR1200.

  • 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-26T21:03:24+00:00Added an answer on May 26, 2026 at 9:03 pm

    my guess is that the iis setup is different on the different machines. typically, you see something like this when you have one machine set up with the site itself as a website and another machine set up with the site itself as an application within a website (like the Default Website). it looks like you have addressed this possibility by using the ~ in the path, but perhaps the iis on which you are deploying does not have the site directory itself set up as either a website or an application, but is merely a subdirectory of a site. in that case, the ~ would refer to the website directory (perhaps named xr?) and the site is in a subdirectory of that named xr. if this is the case, the solution is probably to set up iis such that you have the application directory configured as an application on the server to which you are deploying.

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

Sidebar

Related Questions

In my Visual Studio 2010 project I have files with .mm file extension, that
I have a Visual Studio 2010 project that is targeted to .NET Framework 3.5.
I have a visual studio 2010 web project that when I publish it in
I have a C# (Visual Studio 2010) project that opens Internet Explorer 8 like
I have a Visual Studio 2010 SharePoint 2010 project that was created with a
I have a Visual Studio 2010 project with C++ code that I want to
I have a Visual Studio 2010 C++ project which was copied from another visual
I'm have a c# visual studio 2010 project that uses [Conditional(DEBUG)] above some of
Has anyone migrated a VB6 project to .Net with Visual Studio 2010? I have
Visual Studio 2010 RC -> Silverlight Application We have a library of images that

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.