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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:10:55+00:00 2026-05-18T09:10:55+00:00

I have a C# website which works fine in IIS6 & IIS7 on a

  • 0

I have a C# website which works fine in IIS6 & IIS7 on a company intranet but am now attempting to install the same website on a Windows XP box with IIS5 for a different part of the company intranet. The website content is fine but the css and menus are all broken, as some of the relative paths can’t be found.

I am using some notation like this: <img src="Images/a.gif" which works fine, and some like this: MasterPageFile="~/App_MasterPages/Default.master" which also works fine, but the stuff like this: @import "/App_Themes/Default.css" and this: src="../App_Scripts/stringformat.js" is no good. In the code-behind Request.ApplicationPath is also missing the “/” off the end.

I tried unticking the “Enable Parent Path” in IIS and did an iisreset but it made no difference. I also tried installing IIS Developer Express, but that was confusing and sucked too much. I don’t want to have to go through the whole application and change every relative path just to support IIS5 format, but is that my only option? (apart from upgrading Windows)

  • 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-18T09:10:56+00:00Added an answer on May 18, 2026 at 9:10 am

    I suspect that on IIS6 & 7 the application in question is being deployed into the site root and that on XP/IIS5.1 you’ve deployed this into a sub folder running as an IIS application.

    You have two options:

    1. Deploy the site into the IIS5.1 root (c:\inetpub\wwwroot).

    2. Fix the absolute paths and make them application relative i.e. @import /App_Themes.

    3. Persevere with IIS Developer Express, it’s not that sucky.

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

Sidebar

Related Questions

I have a Buy Now button which works fine but my problem is that
I have a website which works fine in all browsers except in IE6. The
I have this simple script which works fine, but currently overwrites files with duplicate
I have a website which uses TinyMCE textboxes for editing. It works fine except
I have a an ASP .Net MVC website which works fine when testing locally.
I have website which works fine and have following in the htaccess file RewriteEngine
I have a website which works with PHP on the server side. Users access
I have a website project (C#/ASP.NET) opened in Visual Studio 11 (beta) which works
I am using Twitterizer which works great. I have a website (.NET 4, C#)
I have an company asp.net website with textboxes which may contain several hundred words.

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.