I did publish to a local file on my computer. When I tried to upload the files Compiled to my hosting using FileZilla, the project uploaded successfully but i get an error on the first page as below:

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_tuwlsmxq'. Make sure that it is compiled before accessing the page.

Source Error: 


Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="welcome, App_Web_tuwlsmxq" %>
Line 2:  
Line 3:  <!DOCTYPE html>

I don't know why i could face this error, probably related to the fact i did compile locally. For your information, I'm using Hostforlife.eu hosting and i have windows account that supports .NET 4.5.
what do i need to change? or what is the best way uploading a ASP.NET website project to a Hostforlife hosting ?

Dani AI

Generated

Quick, practical notes for (and building on 's point about the page Inherits):

The runtime message about a missing App_Web_... assembly means the page markup expects a compiled assembly that the server can't find. That usually happens when a Web Site was precompiled locally (the pages reference an App_Web_xxx assembly) but the corresponding DLL(s) in the site’s bin folder were not uploaded — or when the project type and publish method don’t match the markup’s Inherits format.

Checklist and fixes (in order of easiest to try)

  • Confirm the project type: a Web Application has a .csproj; a Web Site does not. That determines the publish workflow.
  • If it’s a Web Application: rebuild and publish to a folder, then upload the entire output including bin\YourProject.dll. The page directive should use the fully qualified type name only (for example Inherits="MyCompany.Web.Welcome").
  • If it’s a Web Site and you precompiled: upload the entire precompiled output (all files plus the bin folder that contains App_Web_*.dll). If you didn’t precompile, either upload source files so the server can compile them, or precompile before deployment.
  • Make sure the folder on the host is an IIS application (some control panels require you to “create application” for the web root or subfolder).

Quick examples (do not copy the exact strings from the thread)

/* Web Application page directive */
<%@ Page Language="C#" Inherits="MyNamespace.Welcome" %>

/* Precompiled Web Site page directive */
<%@ Page Language="C#" Inherits="Welcome, App_Web_ABC123" %>

If problems persist: verify the bin folder actually contains the expected DLLs (look for App_Web_*.dll or your project DLL), confirm the host is set to the correct .NET version, and enable detailed errors temporarily (<customErrors mode="Off"/> and <compilation debug="true"/>) to get the full stack trace. If needed, republish using Visual Studio’s Publish to File System or run aspnet_compiler to produce a precompiled folder and upload that.

<%@ page language="C#" autoeventwireup="true" inherits="welcome, App_Web_tuwlsmxq" %>

Do you have the welcome, App_Web_tuwlsmxq in your own code? Inherits should contain the class name of your page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.