Parser Error Message Could Not Load The Assembly
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack could not load the assembly ''. make sure that it is compiled before accessing the page. Overflow the company Business Learn more about hiring developers or posting ads with us
Could Not Load The Assembly 'app_web
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a app_web dll community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Could not load the assembly 'App_Web_kh7-x3ka'. Make sure that it is compiled before accessing the page up vote 12 down vote favorite 2 I can't seem to figure out what I am doing wrong here. I publish my website to my server and when I try to run it I get the following exception: Could not load the assembly 'App_Web_kh7-x3ka'. Make sure that it is compiled before accessing the page. Has anyone else ever encountered this? asp.net share|improve this question edited Oct 5 '12 at 6:17 hims056 17.9k1764101 asked Nov 17 '08 at 15:43 Collin Estes 1,62463361 add a comment| 4 Answers 4 active oldest votes up vote 25 down vote accepted This can also happen when you've taken a pre-compiled aspx page and edited it as if uncompiled, such as copying it from the Live server and overwriting your dev/working version. On the first line of your aspx page within the <%@Page /> tag you'll probably see an attribute like: inherits="yourPageClass, App_Web_kh7-x3ka". Delete the "App_Web_XXXX" part and add the CodeFile attribute pointing to your code behind file: CodeFile="yourPageFile.aspx.cs" The <%@Page /> tag should now look similar to when you create a new page from scratch. When your Asp.Net pages are precompiled for release to the production server, references to the code behind are replaced with references to the compiled DLLs which have the App_Web_XXXX name. share|improve this answer answered Nov 17 '08 at 17:41 ChrisAnnODell 1,1831121 add a comment| up vote 1 down vote A quick google for "Make sure that it is compiled before accessing the page." led me to the following http://www.velocityreviews.com/forums/t301533-could-not-load-assembly-make-sure-that-it-is-compiled-before-accessing-the-page.html And the problem might be as described that the application pool / website is not set to the correct version of .NET The following question has another solution as the last reply http://forums.asp.net/t/1131537.a
to learn C# and ASP.NET 2.0, and I'm find myself running into a serious roadblock. Since I'm new to both C# and .NET it's very hard for me to troubleshoot the problem, and even days of searching the net for a clue has proven fruitless. I'm working through some tutorials found on ASP.NET, but I am stuck at 'codebehind'. I can get any example to work locally (of course), but I'm finding that I can not get anything to work remotely on my new shared hosting plan. http://stackoverflow.com/questions/295919/could-not-load-the-assembly-app-web-kh7-x3ka-make-sure-that-it-is-compiled-be The error: [B]Parser Error Message: Could not load the assembly 'App_Web_???????'. Make sure that it is compiled before accessing the page.[/B] Source Error: Line 1: <%@ page language="VB" masterpagefile="~/Default.master" title="Your Name Here | Home" inherits="Default_aspx, App_Web_gphmnbth" stylesheettheme="White" %> Line 2: Line 3: Sovereign Order