Parser Error Could Not Load The Assembly
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have could not load the assembly ''. make sure that it is compiled before accessing the page. Meta Discuss the workings and policies of this site About Us
Could Not Load The Assembly 'app_web
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
App_web Dll
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parser Error: Could not load the assembly 'App_Web_ah9y-lsc' up vote 1 down vote favorite 2 The site works fine when I'm running it locally, I published it and hosted to a hosting space hired by my company via SMART FTP.There is a folder with my company's name eg. 'MyCompany'. It has sub folders such as App Data, App Code, Bin, Httpdocs,Httpsdocs...etc. I transferred my published project'UtilityServices' to Httpdocs. Then i enter www.MyCompany.net/UtilityServices/Customer_Login.aspx i got the following error. Server Error in '/' Application. 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_ah9y-lsc'. Make sure that it is compiled before accessing the page. Source Error: Line 1: <%@ page language="C#" autoeventwireup="true" inherits="Customer_Login, App_Web_ah9y-lsc" %> Line 2: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> Line 3: Source File: /UtilityServices/Customer_Login.aspx Line: 1 Httpdocs has a bin folder and a webconfig, the hosted UtilityServices has a bin and webconfig. Is this the reason for this error. I am using VS2008 C# 3.5 Framework. c# asp.net web-hosting parse-error web-publishing share|improve this question edited Apr 26 at 23:42 madhead 7,98754787 asked Nov 3
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 Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a 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 http://stackoverflow.com/questions/7997237/parser-error-could-not-load-the-assembly-app-web-ah9y-lsc '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. http://stackoverflow.com/questions/295919/could-not-load-the-assembly-app-web-kh7-x3ka-make-sure-that-it-is-compiled-be 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/t
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... Linux questions C# questions ASP.NET http://www.codeproject.com/Questions/191006/Getting-an-error-could-not-load-the-assembly-App-w questions SQL questions fabric questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / could not Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise could not load with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Getting an error'could not load the assembly'App_web' Rate this: Please Sign up or sign in to vote. See more: ASP.NET I am getting an error when trying to run a website deployed in IIS. parser error message-could not load the assemble'App_web_doc8x9lk'.make sure it is compiled before accesing the page. What may have gone wrong? Please help, I am stuck with this. Posted 3-May-11 20:52pm bsb25927 Updated 3-May-11 21:37pm Dalek Dave433.3K v2 Add a Solution Comments Dalek Dave 4-May-11 3:37am Edited for Grammar, Syntax, Spelling and Readability. 3 solutions Top Rated Most Recent Rate this: Please Sign up or sign in to vote. Solution 1 Accept Solution Reject Solution This error occurs when u have different version of .net on same IIS To solve this problem Create your Application Pool. After that assign pool to ur application using this 1) Go to Properties of your application in IIS 2) In that, use Application pool dropdown to select your pool. try with this. Hope it helps. Permalink Posted 3-May-11 21:03pm Ashishmau5.3K Comments bsb25 4-May-11 3:10am Wont work.... Dalek Dave 4-May-11 3:43am Don't see why that would be downvoted. Rate this: Please