Gdy robie najprostsza strone master wszystko dziala pieknie. Problem powstaje gdy dodaje css'a.
Wówczas zamiast mojej strony po postawieniu servera moge obejrzec taka tresc:
Directory Listing -- /WebSite3/
Wednesday, April 30, 2008 07:59 PM <dir> App_Data
Wednesday, April 30, 2008 11:55 PM 264 content.aspx
Wednesday, April 30, 2008 09:53 PM 405 content.aspx.cs
Thursday, May 01, 2008 12:06 AM 550 Default.master
Wednesday, April 30, 2008 09:52 PM 412 Default.master.cs
Friday, July 15, 2005 10:39 AM 14 StyleSheet.css
Wednesday, April 30, 2008 09:51 PM 1,585 Web.Config
Version Information: ASP.NET Development Server 8.0.0.0
Odpalajac strone Default.master dostaje:
Server Error in '/WebSite3' 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: /WebSite3/Default.master
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Css uzywam w nastepujacy sposob:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Default.master.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="~/StyleSheet.css" rel="Stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
</html>