S
Steve LaForge
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\wwwroot\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\wwwroot\masters, and my page starts with:
<%@ Page Title="" Language="VB" MasterPageFile="~/Masters/CTMNet.master"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ 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!!!
across all applications that are built for that site. I build my master page
in c:\inetpub\wwwroot\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\wwwroot\masters, and my page starts with:
<%@ Page Title="" Language="VB" MasterPageFile="~/Masters/CTMNet.master"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ 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!!!