Can't load a web application - form

G

Guest

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.
 
F

Frans Bouma [C# MVP]

Paola said:
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#)
------------------------------------------------------------------------
 
G

Guest

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?
 
F

Frans Bouma [C# MVP]

Paola said:
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


--
------------------------------------------------------------------------
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#)
------------------------------------------------------------------------
 
G

Guest

Thanks a lot, but the solution was reinstalling everything. We suspect from
McAfee Antivirus...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top