Hi all,
A friend of mine just gave me his project from a 1.1 .net app, and
I converted it 'successfully' into a 2.0 app in my environment, then
rebuild it. I did not get any errors. However, when I try to view the
initial page in the browser I get a parser error:
Could not load type <appname.classname>
I did not see any errors in the rebuild step, and the class exists for the
page that I try to browse.
Can anybody give me a tip on what may be happening?
Thanks,
Carlos 3 1006
Did you remember to change the syntax at the top of the .aspx files? http://msdn2.microsoft.com/en-us/library/ms227671.aspx
"Web pages using the CodeBehind and Inherits attributes of the @ Page
directive will continue to work in the .NET Framework 2.0. However, you must
compile code-behind files and put the resulting assembly in the Bin folder.
"
Ken
Microsoft MVP [ASP.NET]
"Carlos" <ch******@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hi all,
A friend of mine just gave me his project from a 1.1 .net app, and I converted it 'successfully' into a 2.0 app in my environment, then rebuild it. I did not get any errors. However, when I try to view the initial page in the browser I get a parser error:
Could not load type <appname.classname>
I did not see any errors in the rebuild step, and the class exists for the page that I try to browse.
Can anybody give me a tip on what may be happening?
Thanks,
Carlos
Oops wrong quote: http://msdn2.microsoft.com/en-us/library/ms227671.aspx
"If you choose to migrate to the ASP.NET 2.0 code-behind model, you must
make coordinated changes to your .aspx file and code-behind file. In your
..aspx file, you will replace the CodeBehind attribute with the CodeFile
attribute. In your code-behind files, you will use a partial class. The
advantage of using the new code-behind model is that you do not have to
explicitly compile the code-behind files because the ASP.NET compiler will
do this automatically."
"Carlos" <ch******@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hi all,
A friend of mine just gave me his project from a 1.1 .net app, and I converted it 'successfully' into a 2.0 app in my environment, then rebuild it. I did not get any errors. However, when I try to view the initial page in the browser I get a parser error:
Could not load type <appname.classname>
I did not see any errors in the rebuild step, and the class exists for the page that I try to browse.
Can anybody give me a tip on what may be happening?
Thanks,
Carlos
Hi Ken,
thanks for the prompt reply. I think that I have both.
The amazing thing is that the wizard to convert the app from
1.1 to 2.0 already did all of that syntax change, and the re-buit process
worked fine. But still gives me that error..
"Ken Cox - Microsoft MVP" <BA**********@hotmail.com> wrote in message
news:ug**************@TK2MSFTNGP11.phx.gbl... Oops wrong quote:
http://msdn2.microsoft.com/en-us/library/ms227671.aspx
"If you choose to migrate to the ASP.NET 2.0 code-behind model, you must make coordinated changes to your .aspx file and code-behind file. In your .aspx file, you will replace the CodeBehind attribute with the CodeFile attribute. In your code-behind files, you will use a partial class. The advantage of using the new code-behind model is that you do not have to explicitly compile the code-behind files because the ASP.NET compiler will do this automatically."
"Carlos" <ch******@yahoo.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Hi all,
A friend of mine just gave me his project from a 1.1 .net app, and I converted it 'successfully' into a 2.0 app in my environment, then rebuild it. I did not get any errors. However, when I try to view the initial page in the browser I get a parser error:
Could not load type <appname.classname>
I did not see any errors in the rebuild step, and the class exists for the page that I try to browse.
Can anybody give me a tip on what may be happening?
Thanks,
Carlos
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Karalius, Joseph |
last post by:
Can anyone explain what is happening here? I haven't found any useful info
on Google yet.
Thanks in advance.
mmagnet:/home/jkaralius/src/zopeplone/Python-2.3.5 # make
gcc -pthread -c...
|
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: Marc Gravell |
last post by:
In Linq, you can apparently get a meaningful body from and
expression's .ToString(); random question - does anybody know if linq
also includes a parser? It just seemed it might be a handy way to...
|
by: ups_genius |
last post by:
Hi everyone!
I created an error parser using the existing CDT stuff by basically
copying some of the GNU / make / ... error parsers' code. I also added
the extension point for the new error...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |