ASPX Frameworks 2.0 "Parser Error" WHY?
Question: HI,i get the following error when i try to publish my aspx c# application to a webserver, when i test my application on vs 2005 or using IIS it works FINE!! but when i try to Publish a website from VS 2005 iget the following error :
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_8f-yqnr4'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="C#" autoeventwireup="true" inherits="Index, App_Web_8f-yqnr4" debug="true" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-t...
Does any one knows what can be done to fix this and or what makes this problum.
Answer:
Your "inherits" attribute in the @Page directive is pointing to something that likely doesn't exist. If you are using a code-behind, you need to specify that in the directive. If not, just remove the inherits attribute altogether.
Good question-- I do not know the answer.
Did you try using a different compiler?
There should be a library named App_WEB_8f-yqnr4 in your remote server.
If there isn't, get rid of the reference in your inherits attribute of the @page directive, or put the Apps_Web_8f-yqnr4 library in your remote server.
It's self-explanatory. This is basic .Net development fundamentals. You should probably take some tutorials online or get a book to learn .Net. You're obviously copying code (since you don't understand the inherits attribute), so you might want to simply ask the person you got it from.
More Questions & Answers...