Click here to Skip to main content
16,019,043 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys I am new to ASP.NET.

When I run my WEBSITE in Visual Studio everything seam to work fine.

Publish the website, copy files to Server and then I get this error.

I found if I change the App_Web_0nk2gezv to one of the other files that gets compiled everything works.

Why is this? I am trying to understand the link between compiled DLL and the web pages?

Im sure this is easy to answer, but frustrating when your trying to learn......

Thanks anyone who can help.... Very much appreciate it.

<pre lang="xml">Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load the assembly 'App_Web_0nk2gezv'. Make sure that it is compiled before accessing the page.

Source Error:


Line 1:  <%@ master language="VB" inherits="Site, App_Web_0nk2gezv" %>
Line 2:
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /Site.Master    Line: 1
</pre>
Posted

Just make sure that correct .NET Framework is used to run the application hosted. If you have made it in 2.0 then the hosted version too should use .NET 2.0.

For IIS5 or 6, you can see and set the .NET framework directly for application. For IIS7 you also need to see the application pool being used and .NET framework assigned to it.
 
Share this answer
 
Comments
StephanGumpert 10-Jun-12 19:47pm    
I have checked the Web.Config and it says it is 4.0 and in the Service Provider it says Framework Version is 4.0.30319.1

Snippet from Web.Config

<compilation debug="true" strict="false" explicit="true" targetframework="4.0">
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
Sandeep Mewara 11-Jun-12 1:54am    
You say 4.0 but share 3.5 config entry!
StephanGumpert 11-Jun-12 2:16am    
i think it is an error in my pages as i download a sample from this website and it runs fine.
Sandeep Mewara 11-Jun-12 4:16am    
Good to know that issue resolved.
StephanGumpert 11-Jun-12 20:23pm    
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.

I'll add the code for the 2 Files below
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[<%@ MasterType VirtualPath="~/gmeMaster.Master" %>]]>

<asp:content id="Content1" contentplaceholderid="MainDataFrame" runat="Server" xmlns:asp="#unknown">

</asp:content>


Code Behind
VB
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
HTML
<![CDATA[<%@ Master Language="VB" CodeFile="gmeMaster.master.vb" Inherits="gmeMaster" %>]]>
 
Share this answer
 
Master Page
ASP.NET
<![CDATA[<%@ Page Language="VB" MasterPageFile="~/gmeMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_index" Title="Untitled Page" %>]]>
<![CDATA[<%@ MasterType VirtualPath="~/gmeMaster.Master" %>]]>

<asp:content id="Content1" contentplaceholderid="MainDataFrame" runat="Server" xmlns:asp="#unknown">

</asp:content>


Code Behind
VB
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


Content Pages DEFAULT.ASPX
HTML
<![CDATA[<%@ Master Language="VB" CodeFile="gmeMaster.master.vb" Inherits="gmeMaster" %>]]>
 
Share this answer
 
ASP Net was not installed correctly on IIS
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900