473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Can't load a web application - form

Hi everybody!
I'm trying to start a new proyect in asp.net web application. But Visual
Studio show me the following error message:

The class file 'WebForm1.aspx.cs' specified as the codebehind for
'WebForm1.aspx' could not be loaded. Make sure that the codebehind attribute
in the page or control directive properly references an existing code behind
file.

Can anybody help me?? Thanks a lot.

Jul 13 '06 #1
4 1288
Paola Zambudio wrote:
Hi everybody!
I'm trying to start a new proyect in asp.net web application. But
Visual Studio show me the following error message:

The class file 'WebForm1.aspx.cs' specified as the codebehind for
'WebForm1.aspx' could not be loaded. Make sure that the codebehind
attribute in the page or control directive properly references an
existing code behind file.

Can anybody help me?? Thanks a lot.
At the top of the page webform1.aspx in the HTML you should have a
<%@ Page ... %tag. There the code behind file is specified. that file
HAS TO BE present if you compile the project. Check if that file is
indeed available.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jul 14 '06 #2
Thank Frans for answering!
This file exists in the project, the visual studio create the three files
for each page, but when we want to open the .aspx, the message is thrown. We
are afraid of an error in VS IDE. Any idea?

"Frans Bouma [C# MVP]" wrote:
Paola Zambudio wrote:
Hi everybody!
I'm trying to start a new proyect in asp.net web application. But
Visual Studio show me the following error message:

The class file 'WebForm1.aspx.cs' specified as the codebehind for
'WebForm1.aspx' could not be loaded. Make sure that the codebehind
attribute in the page or control directive properly references an
existing code behind file.

Can anybody help me?? Thanks a lot.

At the top of the page webform1.aspx in the HTML you should have a
<%@ Page ... %tag. There the code behind file is specified. that file
HAS TO BE present if you compile the project. Check if that file is
indeed available.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jul 14 '06 #3
Paola Zambudio wrote:
Thank Frans for answering!
This file exists in the project, the visual studio create the three
files for each page, but when we want to open the .aspx, the message
is thrown. We are afraid of an error in VS IDE. Any idea?
there isn't some kind of typo somewhere? The .cs file is readable and
in the same folder?

FB
>
"Frans Bouma [C# MVP]" wrote:
Paola Zambudio wrote:
Hi everybody!
I'm trying to start a new proyect in asp.net web application. But
Visual Studio show me the following error message:
>
The class file 'WebForm1.aspx.cs' specified as the codebehind for
'WebForm1.aspx' could not be loaded. Make sure that the
codebehind attribute in the page or control directive properly
references an existing code behind file.
>
Can anybody help me?? Thanks a lot.
At the top of the page webform1.aspx in the HTML you should have a
<%@ Page ... %tag. There the code behind file is specified. that
file HAS TO BE present if you compile the project. Check if that
file is indeed available.

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jul 15 '06 #4
Thanks a lot, but the solution was reinstalling everything. We suspect from
McAfee Antivirus...

"Frans Bouma [C# MVP]" wrote:
Paola Zambudio wrote:
Thank Frans for answering!
This file exists in the project, the visual studio create the three
files for each page, but when we want to open the .aspx, the message
is thrown. We are afraid of an error in VS IDE. Any idea?

there isn't some kind of typo somewhere? The .cs file is readable and
in the same folder?

FB

"Frans Bouma [C# MVP]" wrote:
Paola Zambudio wrote:
>
Hi everybody!
I'm trying to start a new proyect in asp.net web application. But
Visual Studio show me the following error message:

The class file 'WebForm1.aspx.cs' specified as the codebehind for
'WebForm1.aspx' could not be loaded. Make sure that the
codebehind attribute in the page or control directive properly
references an existing code behind file.

Can anybody help me?? Thanks a lot.
>
At the top of the page webform1.aspx in the HTML you should have a
<%@ Page ... %tag. There the code behind file is specified. that
file HAS TO BE present if you compile the project. Check if that
file is indeed available.


--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jul 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Smith | last post by:
Under a certain circumstance, I want a form to display a messagebox in the load event, and then close. But apparently I cant close a form in the load event. Any ideas? Thanks
0
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've...
4
by: James Wong | last post by:
Hi everybody, I'm developing a web service using VB.NET which calls a web form to let user input something. In web service, I use Server.Execute ("WebForm.aspx") to load and execute the web...
1
by: Jeffrey Kelso | last post by:
I am having an issue where doing a PostBack in ASP.NET is losing the form information. This is happening in a NLB environment with two servers using Application Center When a user selects an...
12
by: Dean Slindee | last post by:
My project has a main form (frmMain, the startup object for the project) and several other "child" forms that are painted within a large panel on frmMain. In each form's Form_Load event, a Weak...
9
by: Piccolo Pete | last post by:
This is a bit "wordy", but here is the scoop. I'm using Microsoft Visual Studio for VC++ in Windows 2000. I made an application which had no form in it. So when I ran the application, I just...
2
by: Pascal | last post by:
bonjour/hello I have an application with several forms : form1 is loaded at first. Man makes some staff (filling text box, clicking radiobutton) in this window and then click nextbutton and so on...
4
by: DBC User | last post by:
I am writing an app which is a tray application. When the computer/application start, it should go directly to tray without showing the main form. I did hide on Load method and on initialization...
2
by: =?iso-8859-1?Q?H=E5vard_Olerud_Eriksen?= | last post by:
I've got a WinForm MDI application. A little while ago (probably after I made some changes) my Load method for the form stopped being executed. I had some initialization done there and I suddenly...
4
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
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...
0
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...
0
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.