473,729 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio 2008 - Master Page Error

I have an intranet site and want to create a simple master page to be shared
across all applications that are built for that site. I build my master page
in c:\inetpub\wwwr oot\Masters as CTMNet.master and I have tested it with no
problems.

I am now trying to use VS2008 to build my first application which would
reference the master page. I created a virtual directory that points to
c:\inetpub\wwwr oot\masters, and my page starts with:

<%@ Page Title="" Language="VB" MasterPageFile= "~/Masters/CTMNet.master"
AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb" Inherits="_Defa ult" %>
<%@ MasterType VirtualPath="~/Masters/CTMNet.master" %>

When I run the page, it works fine, but in VS2008 Designer mode, I get the
error "Master Page error - The Master page file
'http://localhost/SiteInfo/Masters/CTMNet.naster' cannot be loaded. Correct
the problem in code view." The designer is disabled. There are two errors
that show up in the error window. They are the same, but repeated once for
each of the lines shown above. The error is 'The file
'/SiteInfo/Masters/CTMNet.master' does not exist.'

How do I correct this???

Thank you!!!
--
Steve LaForge
Sodexo Clinical Technology Management
Sep 8 '08 #1
3 5906
"Steve LaForge" <St**********@d iscussions.micr osoft.comwrote in message
news:66******** *************** ***********@mic rosoft.com...
>I have an intranet site and want to create a simple master page to be
shared
across all applications that are built for that site. I build my master
page
in c:\inetpub\wwwr oot\Masters as CTMNet.master and I have tested it with
no
problems.

I am now trying to use VS2008 to build my first application which would
reference the master page. I created a virtual directory that points to
c:\inetpub\wwwr oot\masters, and my page starts with:

<%@ Page Title="" Language="VB" MasterPageFile= "~/Masters/CTMNet.master"
AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb" Inherits="_Defa ult" %>
<%@ MasterType VirtualPath="~/Masters/CTMNet.master" %>

When I run the page, it works fine, but in VS2008 Designer mode, I get the
error "Master Page error - The Master page file
'http://localhost/SiteInfo/Masters/CTMNet.naster' cannot be loaded.
Correct
the problem in code view." The designer is disabled. There are two
errors
that show up in the error window. They are the same, but repeated once
for
each of the lines shown above. The error is 'The file
'/SiteInfo/Masters/CTMNet.master' does not exist.'

How do I correct this???

Thank you!!!
c:\inetpub\wwwr oot\masters is your root now on a virtual directory. What did
you try?

I'm assuming MasterPageFile= "CTMNet.mas ter" would work

Jeff
Sep 8 '08 #2

--
Steve LaForge
Sodexo Clinical Technology Management
"Jeff Dillon" wrote:
"Steve LaForge" <St**********@d iscussions.micr osoft.comwrote in message
news:66******** *************** ***********@mic rosoft.com...
I have an intranet site and want to create a simple master page to be
shared
across all applications that are built for that site. I build my master
page
in c:\inetpub\wwwr oot\Masters as CTMNet.master and I have tested it with
no
problems.

I am now trying to use VS2008 to build my first application which would
reference the master page. I created a virtual directory that points to
c:\inetpub\wwwr oot\masters, and my page starts with:

<%@ Page Title="" Language="VB" MasterPageFile= "~/Masters/CTMNet.master"
AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb" Inherits="_Defa ult" %>
<%@ MasterType VirtualPath="~/Masters/CTMNet.master" %>

When I run the page, it works fine, but in VS2008 Designer mode, I get the
error "Master Page error - The Master page file
'http://localhost/SiteInfo/Masters/CTMNet.naster' cannot be loaded.
Correct
the problem in code view." The designer is disabled. There are two
errors
that show up in the error window. They are the same, but repeated once
for
each of the lines shown above. The error is 'The file
'/SiteInfo/Masters/CTMNet.master' does not exist.'

How do I correct this???

Thank you!!!

c:\inetpub\wwwr oot\masters is your root now on a virtual directory. What did
you try?

I'm assuming MasterPageFile= "CTMNet.mas ter" would work

Jeff
I have a virtual directory titled Masters that is a subdirectory in my app.
The directory structure is in IIS is:
Default Web Site
- SiteInfo
- Masters (contains the CTMNet.master page)

The SiteInfo directory contains my default.aspx page that is attempting to
refer to ~/Masters/CTMNet.master.

Changing the references from "~/Masters/CTMNet.master" to "CTMNet.mas ter"
made the problem worse, not better. It won't even launch with the change.
It will launch and run in IE as is, it is just that I get this error in
VS2008.

I am TRYING to follow Microsoft's recommendation for how to share a master
page across multiple applications. I would like to be able to maintain the
master page in one location.

Thanks!
Steve
Sep 8 '08 #3
I am TRYING to follow Microsoft's recommendation for how to share a master
page across multiple applications. I would like to be able to maintain
the
master page in one location.

Thanks!
Steve
So you have a master page working without trying to share between
applications I assume. Where are you reading about the MS recommendations ?
Sep 9 '08 #4

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

Similar topics

6
3372
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free) I installed FrontPage server extensions to IIS on my computer while following instructions in a Microsoft ASP.Net MCSD training book. After installing the FrontPage Server Extensions I cannot create a new
12
5911
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/ folder in the same directory as the source code. However, in Visual Studio .NET 2005 when I selected 'Publish Web Site' and selected a target location to place it in, it placed the following files in it: All *.aspx files All *.html files
97
5523
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in the first place. Anyone else heard about this development? The Master
1
1599
by: John Kotuby | last post by:
Hi all, I have experienced several problems after installing SP1 for Visual Studio 2005 Professional. The problems are occurring on 2 different Windows XP SP2 development machines that have been serviced packed. I am working on an ASP.NET 2.0 Web Application in Visual Basic. 1. Publicly declared user controls on the Master page are no longer being recognized by Intellisense. Webforms that were created before SP1 are still working fine...
1
1160
by: DaveRook | last post by:
Hi I am using a master page for my web project, and it's all coded in C# (and it works). Within one of the pages I want to run some server sided code. I have added a button and double clicked it (using Visual Studio 2005) and it has taken me to the code. This is what I see. <script runat="server"> Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) End Sub </script>
8
5625
by: kcroyals1 | last post by:
Is anyone having the problem where Visual Studio 2008 hangs for minutes when switching to Design view of an aspx page? I know there's a hotfix, but it has been no help. My co-worker might have hit on something that it is related to Office 2007. This is because we have VS2008 at home with no problems, but we use Office 2003. A co-worker of ours has the same setup (Office 2003 and VS2008) and has no problems. I know Microsoft knows it's...
9
160
by: Joe Fawcett | last post by:
Dear All Can anyone explain why on some machines, when I choose to add a new item to a web site in VS 2008, I get the traditional dialogue that shows the checkbox for choose a master page and on others I get the choice of a Content Web Page instead? Thanks
0
7332
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
3
10512
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio closes unexpectedly and without any error message being displayed, or error messages written to the system logs. Visual Studio closes when I attempt to open an ASP.NET Web application (not Web site) solution for which IIS is set as the project's...
0
8921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9148
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.