473,326 Members | 2,337 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,326 software developers and data experts.

new asp.net project - codebehind class file missing

Hi,

i want to create a simple asp.net-applikation, so i choose new c# project -
asp.net-webapplication. After creating the project files on the webserver a
message appears:

The class file "WebForm1.aspx.cs" specified as the codebehin 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.

The first line of the WebForm1.aspx looks like that:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>

I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322

What's wrong? Many thanks for help

Hilmar
Nov 18 '05 #1
8 5523
Is there a webForm1.aspx.cs file? Go to your solution explorer, at the top
you should se 6 little icons, if you hover over them one should say "show
all files" (it should be the 2nd last), click on it. A + should appear
next to your webform1.aspx...hit the plus and make sure there's a
webform1.aspx.cs...if there isn't...I dunno, maybe try again from scratch?

Karl

"Hilmar Demant" <hilmar.dêma**@web.de> wrote in message
news:cg**********@news1.wdf.sap-ag.de...
Hi,

i want to create a simple asp.net-applikation, so i choose new c# project - asp.net-webapplication. After creating the project files on the webserver a message appears:

The class file "WebForm1.aspx.cs" specified as the codebehin 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.

The first line of the WebForm1.aspx looks like that:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>

I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322

What's wrong? Many thanks for help

Hilmar

Nov 18 '05 #2
Hi,

no there is no .cs-file. I tried it several times from scratch - it is just
one click new project - so sad that this simple task dont work for me.

Has anybody an explanation?

"Karl" <none> wrote in message news:OJ**************@TK2MSFTNGP09.phx.gbl...
Is there a webForm1.aspx.cs file? Go to your solution explorer, at the top
you should se 6 little icons, if you hover over them one should say "show
all files" (it should be the 2nd last), click on it. A + should appear
next to your webform1.aspx...hit the plus and make sure there's a
webform1.aspx.cs...if there isn't...I dunno, maybe try again from scratch?

Karl

"Hilmar Demant" <hilmar.dêma**@web.de> wrote in message
news:cg**********@news1.wdf.sap-ag.de...
Hi,

i want to create a simple asp.net-applikation, so i choose new c# project -
asp.net-webapplication. After creating the project files on the

webserver a
message appears:

The class file "WebForm1.aspx.cs" specified as the codebehin 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.

The first line of the WebForm1.aspx looks like that:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"

AutoEventWireup="false"
Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>

I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322

What's wrong? Many thanks for help

Hilmar


Nov 18 '05 #3
All I was able to find was this

" webform1.aspx/cs are files that are created automatically by visual studio
when you create a new project.

If it works fine when you log in as Administrator it sounds like you've got
a faulty installation. I would recommend you reinstall visual studio. You
should have admistrative access (belong to the administrators group) when
you install software.

Good luck. "

Sorry
Karl

"Hilmar Demant" <hilmar.dêma**@web.de> wrote in message
news:cg**********@news1.wdf.sap-ag.de...
Hi,

no there is no .cs-file. I tried it several times from scratch - it is just one click new project - so sad that this simple task dont work for me.

Has anybody an explanation?

"Karl" <none> wrote in message

news:OJ**************@TK2MSFTNGP09.phx.gbl...
Is there a webForm1.aspx.cs file? Go to your solution explorer, at the top you should se 6 little icons, if you hover over them one should say "show all files" (it should be the 2nd last), click on it. A + should appear
next to your webform1.aspx...hit the plus and make sure there's a
webform1.aspx.cs...if there isn't...I dunno, maybe try again from scratch?
Karl

"Hilmar Demant" <hilmar.dêma**@web.de> wrote in message
news:cg**********@news1.wdf.sap-ag.de...
Hi,

i want to create a simple asp.net-applikation, so i choose new c#

project -
asp.net-webapplication. After creating the project files on the

webserver
a
message appears:

The class file "WebForm1.aspx.cs" specified as the codebehin 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.

The first line of the WebForm1.aspx looks like that:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"

AutoEventWireup="false"
Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>

I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322

What's wrong? Many thanks for help

Hilmar



Nov 18 '05 #4
i am member of the admin-group. very weird.
All I was able to find was this
" webform1.aspx/cs are files that are created automatically by visual studio when you create a new project.
If it works fine when you log in as Administrator it sounds like you've got a faulty installation. I would recommend you reinstall visual studio. You
should have admistrative access (belong to the administrators group) when
you install software.

no there is no .cs-file. I tried it several times from scratch - it is

just
one click new project - so sad that this simple task dont work for me.

Has anybody an explanation?
Is there a webForm1.aspx.cs file? Go to your solution explorer, at the top you should se 6 little icons, if you hover over them one should say "show all files" (it should be the 2nd last), click on it. A + should appear next to your webform1.aspx...hit the plus and make sure there's a
webform1.aspx.cs...if there isn't...I dunno, maybe try again from scratch? > i want to create a simple asp.net-applikation, so i choose new c#
project -
> asp.net-webapplication. After creating the project files on the

webserver
a
> message appears:
>
> The class file "WebForm1.aspx.cs" specified as the codebehin 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.
>
> The first line of the WebForm1.aspx looks like that:
> <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false"
> Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>
>
> I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322
>
> What's wrong? Many thanks for help

Nov 18 '05 #5
i do first a repair of visualstudio and then i uninstall und reinstall
studio complete.
Nothing changes... :(
"Hilmar Demant" <hilmar.dêma**@web.de> wrote in message
news:cg**********@news1.wdf.sap-ag.de...
i am member of the admin-group. very weird.
All I was able to find was this
" webform1.aspx/cs are files that are created automatically by visual

studio
when you create a new project.
If it works fine when you log in as Administrator it sounds like you've

got
a faulty installation. I would recommend you reinstall visual studio. You
should have admistrative access (belong to the administrators group) when you install software.

no there is no .cs-file. I tried it several times from scratch - it is

just
one click new project - so sad that this simple task dont work for me.

Has anybody an explanation? Is there a webForm1.aspx.cs file? Go to your solution explorer, at
the
top
> you should se 6 little icons, if you hover over them one should say

"show
> all files" (it should be the 2nd last), click on it. A + should

appear > next to your webform1.aspx...hit the plus and make sure there's a
> webform1.aspx.cs...if there isn't...I dunno, maybe try again from

scratch?
> > i want to create a simple asp.net-applikation, so i choose new c#
> project -
> > asp.net-webapplication. After creating the project files on the
webserver
> a
> > message appears:
> >
> > The class file "WebForm1.aspx.cs" specified as the codebehin 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.
> >
> > The first line of the WebForm1.aspx looks like that:
> > <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
> AutoEventWireup="false"
> > Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>
> >
> > I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322
> >
> > What's wrong? Many thanks for help


Nov 18 '05 #6
in my despair i have reinstalled all relevant components:
- visual studio
- iis
- asp.net

nothing changes. All files except the code-behind source file (doesnt matter
to use c# or vb) are created.

Has nobody experienced the same problem?
"Hilmar Demant" <hilmar.dêma**@web.de> wrote in message
news:cg**********@news1.wdf.sap-ag.de...
Hi,

i want to create a simple asp.net-applikation, so i choose new c# project - asp.net-webapplication. After creating the project files on the webserver a message appears:

The class file "WebForm1.aspx.cs" specified as the codebehin 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.

The first line of the WebForm1.aspx looks like that:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="SpreadsheetIntegrationDemoApp.WebForm1" %>

I use VisualStudio.NET 2003 (7.1.3088) and .NET Framework 1.1.4322

What's wrong? Many thanks for help

Hilmar

Nov 18 '05 #7
I got the problem on 2 PCs. They have Windows 200 SP4, Visual Studio
2003 and Framework 1.1.
We are doing asp.net with vb langage.
When I try to open design, even after recompiling solution, I got the
message "The class file 'page.aspx' specified as the codebehind for
'page.aspx.vb' could not be loaded. Make sure that the codebehind
attribute in the page or control directive properly references an
existing code behind file."
My solution is working well on other PC, the codebehind is correct and
the project compile and execute correctly.

More over, in the solution explorer when you are on the vb file, click
on the design icon, the previous message appears followed by this
french message :
"Aucun éditeur disponible for 'c:\inetpub\wwwroot\page.aspx'. Vérifiez
que l'application correspond au type de fichier (.aspx) est
installée."
in english something like :
"No editor available for 'c:\inetpub\wwwroot\page.aspx'. Please verify
that your application for aspx file is installed."

I try to do a new empty solution,
I try to repair Visual Studio 2003,
I try to uninstall and install newly Visual studio 2003 and framework

but the problem still there.

Please help I have no more idea except reinstall the whole PC.

Nov 18 '05 #8
This thread might help you:
http://groups.google.com/groups?hl=e...p04%26rnum%3D2

Sincerely
Svein Terje Gaup

"jandry" <gb****@sopragroup-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
I got the problem on 2 PCs. They have Windows 200 SP4, Visual Studio
2003 and Framework 1.1.
We are doing asp.net with vb langage.
When I try to open design, even after recompiling solution, I got the
message "The class file 'page.aspx' specified as the codebehind for
'page.aspx.vb' could not be loaded. Make sure that the codebehind
attribute in the page or control directive properly references an
existing code behind file."
My solution is working well on other PC, the codebehind is correct and
the project compile and execute correctly.

More over, in the solution explorer when you are on the vb file, click
on the design icon, the previous message appears followed by this
french message :
"Aucun éditeur disponible for 'c:\inetpub\wwwroot\page.aspx'. Vérifiez
que l'application correspond au type de fichier (.aspx) est
installée."
in english something like :
"No editor available for 'c:\inetpub\wwwroot\page.aspx'. Please verify
that your application for aspx file is installed."

I try to do a new empty solution,
I try to repair Visual Studio 2003,
I try to uninstall and install newly Visual studio 2003 and framework

but the problem still there.

Please help I have no more idea except reinstall the whole PC.

Nov 18 '05 #9

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

Similar topics

12
by: A.M | last post by:
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali
1
by: Michael | last post by:
Hello, I'm trying to implement sample I found on page templates, so I do not have to maintain "<html><head>..." on all my documents. But don't let that confuse you, this is an inheritance...
3
by: nevets2001uk | last post by:
Hi. I've just started my second ASP.NET (VB) app and I'm using codebehind this time. I'm not using visual studio but am instead coding it all in notepad (HTML, ASP.NET and CSS) I'm trying to...
4
by: John G. | last post by:
I am getting the following error when attempting to browse a page, "WebForm1.aspx", in a web forms project sub-folder, "/FormsAuth1/Protected/". Parser Error Message: Could not load type...
4
by: moondaddy | last post by:
I have a vb.net asp 1.1 project where when I step through the code behind of a page, a new codebehind with the same name appears in the IDE and executes. so now I have 2 classes open in the IDE...
8
by: vinesh | last post by:
I have sample Asp.Net Web Application project. Let me know how to keep the files related to this project (like the webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder within a...
2
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I've just opened an old web project in VS2005 for the first time, and it went through the conversion wizard with 0 errors. However, I can't seem to get intellisense to work in the C#...
4
by: olduncleamos | last post by:
Hi all, I am running into the following problem that I am just plain stuck. Can't even find a starting point to look: I originally had a "web site" created in VS2005. Within the site I have a...
20
by: cmrchs | last post by:
Hi, I have in my web application project (VS.NET 2008) : - a webform (webform2.aspx, webform2.aspx.cs, webform2.aspx.designer.cs) - a code-file Product.cs. But i can't use the definition of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.