CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/30/2006 10:19:56 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 56 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
mysticslayer
Asp.Net User
MasterPage.master1/30/2006 10:19:56 PM

0

Hi all,

I'm making a website with VS 2005. I've made a masterpage.master. I've made all children for it. But when I started the web app. It comes up with the following message:

 Server Error in '/' Application.


This type of page is not served.

Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.master' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /masterpage.master

I've look in the C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG for the web.config and figured out that .master extension is allowed for IIS. So i've looked in the website properties under IIS 6.0 (windows 2003 server) under ISAPI extensions. And even there it is allowed. I don't know any other option to look for. Does someone know this where I have to look. I've also included a fragment of my event viewer.

 

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date:  1/30/2006
Time:  11:15:10 PM
User:  N/A
Computer: WEBSERVER
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/30/2006 11:15:10 PM
Event time (UTC): 1/30/2006 10:15:10 PM
Event ID: f239b71d2b43400091d4cb34ca0b0e0d
Event sequence: 33
Event occurrence: 8
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1725568973/Root-1-127831314628906250
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Inetpub\wwwroot\WebSite\
    Machine name: WEBSERVER
 
Process information:
    Process ID: 3952
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: HttpException
    Exception message: Path '/masterpage.master' is forbidden.
 
Request information:
    Request URL: http://192.168.0.14:81/masterpage.master
    Request path: /masterpage.master
    User host address: 192.168.0.6
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 8
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.HttpForbiddenHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Can someone help me?

brianparker
Asp.Net User
Re: MasterPage.master1/31/2006 4:40:13 AM

0

The master is useless by itself. You must have an .aspx page (even if it is blank) that inherits from it, such as a Default.aspx. Then compile. It will use which ever page you have open or the one that you set as the default start page, but you can not just compile and run a Master page by itself.


It's not a bug, it's a feature.



Brian Parker
CEO, Cofounder
NeoTekSystems
Phone:(864)770-0473
Fax:(864)770-0476
www.neoteksystems.com
bparker@neoteksystems.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Expert VB 2005 Business Objects Authors: Rockford Lhotka, Pages: 670, Published: 2006
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
ASP.NET 2.0 Everyday Apps For Dummies Authors: Doug Lowe, Pages: 504, Published: 2006

Web:
ASP.NET.4GuysFromRolla.com: A Sneak Peak at MasterPages in ASP.NET 2.0 Jan 5, 2005 ... Since we have only created a single MasterPage - MasterPage.master - there is only one MasterPage available in the list. ...
ASP.NET Master Pages Overview NET master pages allow you to create a consistent layout for the pages in your application. ... <%@ Master Language="VB" CodeFile="MasterPage.master.vb" ...
How to Use Master Pages (Conclusion) Dec 8, 2005 ... <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup=" false" CodeFile="Order.aspx.vb" Inherits="Order" ...
.NET - ASP.NET 2.0 - A Quick Introduction To Master Pages ... Switch over to the designer with the MasterPage.master selected. ... Choose the MasterPage.master that we created earlier and click Ok. The Default1.aspx ...
Introduction to ASP.NET Master Pages <%@ Master Language = "VB" CodeFile = "MasterPage.master.vb" Inherits = " MasterPage" %> ... <% @ Page Language = "VB" MasterPageFile = "~/MasterPage. master" ...
Simple Master Page Example - Wallace B. McClure <%@ Page Language="C#" MasterPageFile="~/Include/Server/MasterPage.master" CompileWith="Results.aspx.cs" ClassName="Results_aspx" Title="Test Page" %> ...
Working with ASP.NET Master Pages Programmatically For example, you might have a master page named MasterPage.master that is the class name MasterPage_master. You might create @ Page and @ MasterType ...
/example/MasterPage.master – AspSQLProvider 1, <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master. cs" Inherits="MasterPage" %>. 2, View code for MasterPage.master.cs in /asp.net/aspcodedemos ... /asp.net/aspcodedemos/javascriptincluder/www/MasterPage.master.cs. using System; using System.Data; using System.Configuration; using System. ...
Code better: MasterPage.master.cs does not exist error Jul 3, 2008 ... MasterPage.master.cs does not exist error. I got the very weird error with ASP. NET 2.0 deployment. It has been running well in my ...

Videos:
MOSS UI Tutorial: Part 5 This is a 10-Part screencast series on how to apply custom visual design to a MOSS website. Part 5 demonstrates how to create a custom Master Page in...
MOSS UI Tutorial: Part 4 This is a 10-Part screencast series on how to apply custom visual design to a MOSS website. Part 4 gives an overview of the base Master Page that was...
MOSS UI Tutorial: Part 7 This is a 10-Part screencast series on how to apply custom visual design to a MOSS website. Part 7 demonstrates how to assign the custom Master Page...






sqlsitemapprovider => working with a lot of querystring variables

outcache problem about masterpage.master and google ad

best way for content page to set a property on its master page?

'asp' unrecognized tag prefix in contentpage code

masterpage logo shows as x on other pages

master page error

get current theme directory?

menu with too many items

web.config masterpage setting not recognized by vs2005 beta 2

retrive contentplaceholder id

master page css problem in ie

navigation ctrls in .net 2003 [is possible?]

setting the master page static

treeview - controlling child nodes showing

dynamicmenuitemstyle doesn't work well together with dynamichoverstyle in menu control

how to get the list of themes?

different themes and skins based on culture info

themes includes all css files

sitemappath control / master page

asp2.0 wizard control, attach client script on finishbuttonclick

sitemap help - removing one separator

how to access a control in master page?

how to find <a ../> link in the master page

wizard controls

hyperlink only visible by rolemembers

error: content controls are allowed only in content page that references a master page.

master page option missing

how to update or change the master page variables

dropdownlist will not work in content page

treeview like msdn

   
  Privacy | Contact Us
All Times Are GMT