By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

continuous parser error

P: n/a
hello,
i just converted old .net project (it was a solution with web project and
class project) built in .net 1.0 and 1.1 framework to .net 2.0.
as i expected, when i clicked on the solution file from vs 2005, it went
through a conversion process and all seemed to go ok.
when i attempt to run, i get first parser error on global.asax and cs. i
still have global.asax and global.asax.cs attached together (as code-behind).
after few attempts, i just decided to remove the global.asax and code-behind
just for now in order to run the app first.
now i am getting a parser error on some user control.

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 type 'mytest.sk.customHeader'.

Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="True"
Codebehind="customHeader.ascx.cs" inherits="'mytest.sk.customHeader"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
Line 2: <table width="100%">
Line 3: <tr>
Source File: /sk/customHeader.ascx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.210

any suggestions?

thanks
-a
Feb 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
i found a fix (thanx to my buddy, dotnetjunky!).
..net 2.0 does not support codebehind so i replaced them all to codefile and
the problem is gone.
however, i am still getting parser error around global.asax. i am going to
remove global.asax and do some work around.

-a

"Ace" wrote:
hello,
i just converted old .net project (it was a solution with web project and
class project) built in .net 1.0 and 1.1 framework to .net 2.0.
as i expected, when i clicked on the solution file from vs 2005, it went
through a conversion process and all seemed to go ok.
when i attempt to run, i get first parser error on global.asax and cs. i
still have global.asax and global.asax.cs attached together (as code-behind).
after few attempts, i just decided to remove the global.asax and code-behind
just for now in order to run the app first.
now i am getting a parser error on some user control.

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 type 'mytest.sk.customHeader'.

Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="True"
Codebehind="customHeader.ascx.cs" inherits="'mytest.sk.customHeader"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
Line 2: <table width="100%">
Line 3: <tr>
Source File: /sk/customHeader.ascx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.210

any suggestions?

thanks
-a
Feb 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.