Ok I have dumbed down my pages to almost nothing and I cant seam to get it to work.
I have down loaded an example from this WebSite and it works fine only difference I can see if the C# and I am using VB.
Article 333650 Beginners Tutorial on Master Pages in Asp NET.
Below I have added the snippets from my files. I have a Content Pages Default.aspx and a Master Page.
As I said it works find in VS2010 (Windows 7 64bit) but when I publish to my IIS 7.5 site I get the message:
Handler "PageHandlerFactory-Intergrated" has a bad module "ManagedPipeLineHandler" in it module List.
<![CDATA[<%@ Page Language="VB" MasterPageFile="~/gmeMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_index" Title="Untitled Page" %>]]>
<![CDATA[
<asp:content id="Content1" contentplaceholderid="MainDataFrame" runat="Server" xmlns:asp="#unknown">
</asp:content>
Code Behind
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Partial Class _index
Inherits System.Web.UI.Page
Public Sub New()
End Sub
End Class
Master Page
<![CDATA[<%@ Master Language="VB" CodeFile="gmeMaster.master.vb" Inherits="gmeMaster" %>]]>