473,396 Members | 1,834 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,396 software developers and data experts.

Inherits

Using visual studio.net I have made a set of aspx web forms. They work on the
iis webserver but when moved to the web I get a Inherits error. can some one
help out.

here is the code at the top of the first webform
<%@ Page language="c#" Codebehind="1.aspx.cs" AutoEventWireup="false"
Inherits="OArugby2.index" %>

If someone can guide me in the right direction.

Nov 16 '05 #1
6 1787
Hi,

Have you compiled the web application and copied the generated .dll
file(s) onto the webserver along with the aspx pages? They'll be in a
bin folder in your website folder.
Regards,

Peter Chadwick (MCP)
pe**@code-explorers.com

Nov 16 '05 #2
jonathan shepherd wrote:
Using visual studio.net I have made a set of aspx web forms. They work on the
iis webserver but when moved to the web I get a Inherits error. can some one
help out.

Have to deployed the assembly in the bin folder to the new web server?
This assembly contains the classes for all your codebehind classes.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
Nov 16 '05 #3
Hi,
Please remember that ASP.NET is not like ASP , it needs to be compiled,
Once you compile your project it will create a bin directory where you will
find at least one dll with the same name than the web project.

If you want to install the web app in another server you have two solutions
1- Copy the entire directory like c:\inetpub\www\MyWebApp to the server ,
that will copy all the necesary files.
2- Create a setup project and include the Project Output files of the web
app

The first solution will copy your source files as well ( .cs ) even if they
are not needed.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"jonathan shepherd" <jo**************@discussions.microsoft.com> wrote in
message news:10**********************************@microsof t.com...
Using visual studio.net I have made a set of aspx web forms. They work on
the
iis webserver but when moved to the web I get a Inherits error. can some
one
help out.

here is the code at the top of the first webform
<%@ Page language="c#" Codebehind="1.aspx.cs" AutoEventWireup="false"
Inherits="OArugby2.index" %>

If someone can guide me in the right direction.

Nov 16 '05 #4
Ignacio,

Sorry this is not true in my opinion.
Please remember that ASP.NET is not like ASP , it needs to be compiled,
Once you compile your project it will create a bin directory where you
will find at least one dll with the same name than the web project.

You can do it without a dll as well, see the bunch of samples about that.

That is confusing a lot of people. When you use VSNet you automaticly
compile, when you use by example the samples in GodDotNet you see scripting
ASPX.

The most confusing is that it seems as if there are two worlds, both using
ASPX and don't know about each other. (Strict are there three, there is as
well a group which really using the classic asp with aspx by using the
inline code and there is a group who does it clean and seperate the aspx
code on the page from the html code.)

Cor
Nov 16 '05 #5
Hi,

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uL**************@TK2MSFTNGP10.phx.gbl...
Ignacio,

Sorry this is not true in my opinion.
Yes it's, even if you do not use code behind, the pages are classes that
ARE compiled when they are first accessed, from that moment the "file" is
not used anymore, unless there is a change in the file; in that situation
the page/class are recompiled.

So there is a compilation involved, always.

Besides the original post DOES use code behind, so he needs to compile the
project BEFORE deploy it to the production server, otherwise the code
behind's classes will not be compiled.
You can do it without a dll as well, see the bunch of samples about that.
That is confusing a lot of people. When you use VSNet you automaticly
compile, when you use by example the samples in GodDotNet you see
scripting ASPX.

You don't automatically compiled in VSNET, you do if you need to like when
using code behind ( most of the time ); you can use VSNet and use scripting
only. VSNet is only a environment that facilitate the process of create a
project.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 16 '05 #6
Ignacio,

You did not answer this what you stated.
Please remember that ASP.NET is not like ASP , it needs to be compiled,

And this is than an answer when I said that this sentence is not true
Yes it's, even if you do not use code behind, the pages are classes that
ARE compiled when they are first accessed, from that moment the "file" is
not used anymore, unless there is a change in the file; in that situation
the page/class are recompiled.

So there is a compilation involved, always.

So you want to tell now that ASP is not compiled?

However for me it is not important, I wanted to inform you about it.
Therefore when you keep it with your statement, feel cool. It is not my
problem.

Cor
Nov 16 '05 #7

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

Similar topics

1
by: shine | last post by:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="shine.WebForm1" %> what does Inherits means in this tag, what is the use of it plz explain me regards...
4
by: Ben R. | last post by:
Between ClassName and Inherits, which attribute is set to specify the class that a page uses? I would think that would be inherits. Further, the description for ClassName is: Specifies the class...
0
by: Rob Meade | last post by:
Hi all, ok - the scenario... We have a secure login page known as the Clinical Portal (single login etc) - we have a web user control for this which checks if a session is available or not...
6
by: Todd A | last post by:
If I use the following in my code behind page: Public Class _Default Inherits System.Web.UI.Page The page will compile with no errors from the command line compiler (vbc.exe) But, If I...
0
by: Alex Nitulescu | last post by:
Hi, I have the following in project "RaducuCustomControls": Imports System.ComponentModel Imports System.Web.UI <DefaultProperty("Text"), ToolboxData("<{0}:Rotator1...
1
by: Roberto Bindini | last post by:
Hi with visual studio 2005 beta 2 i have created two form: frm1 (Inherits System.Web.UI.Page) frm2 (Inherits frm1) but in the line code : Inherits frm1 vs send error: type frm1 is not defined
10
by: Tony Abate | last post by:
I am working on an ASP.NET app that is going well except for one thing. I build my application and then move the .aspx file to a different directory. I can point the Codebehind property back to the...
2
by: Don | last post by:
1. Say I have three classes: A, B and C. 2. Class A can only be inherited, and B inherits it. C does not inherit anything. 3. I have a function that can have an object passed to it. Either B...
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
1
by: Arpan | last post by:
What's the difference between "Imports" & "Inherits"? For e.g. both the codes below work without any errors: Imports System Imports System.Data Imports System.Web.UI Namespace Constructors...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
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,...
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
tracyyun
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 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.