473,503 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with IIS 6

I've recently set up IIS6 on a Windows 2003 server and am trying to migrate
over my ASP.NET applications. I'm not using VS and my page's aspx file
ususally contains something of the following: <%@ Page Src="Default.cs"
Inherits="MyNamespace.Default" %> which worked fine previously. However
now I keep getting the error The base type 'MyNamespace.Default' does not
exist in the source file 'Default.cs'.

Is this a problem with IIS 6?

Nov 17 '05 #1
8 1293
> Is this a problem with IIS 6?

No. It has nothing to do with IIS, as the ASP.Net ISAPI does the processing.
My guess is that your CodeBehind page doesn't define the class "Default" as
belonging to a NameSpace. However, you didn't post that code, so that is
merely a guess. To have the CodeBehind which you are not compiling to a DLL
define "Default" as beloning to the NameSpace "MyNameSpace" your code would
have to look something like this:

namespace MyNameSpace
{
public class Default
{
...
}
}

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Janaka" <ja****@magicalia.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I've recently set up IIS6 on a Windows 2003 server and am trying to migrate over my ASP.NET applications. I'm not using VS and my page's aspx file
ususally contains something of the following: <%@ Page Src="Default.cs"
Inherits="MyNamespace.Default" %> which worked fine previously. However
now I keep getting the error The base type 'MyNamespace.Default' does not
exist in the source file 'Default.cs'.

Is this a problem with IIS 6?

Nov 17 '05 #2
Kevin,

I have got this defined in the codebehind. I think the main thing I should
have mentioned though was that the site works fine locally but it is now
running off a UNC virtual share on another Windows 2003 server. Any ideas?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
Is this a problem with IIS 6?
No. It has nothing to do with IIS, as the ASP.Net ISAPI does the

processing. My guess is that your CodeBehind page doesn't define the class "Default" as belonging to a NameSpace. However, you didn't post that code, so that is
merely a guess. To have the CodeBehind which you are not compiling to a DLL define "Default" as beloning to the NameSpace "MyNameSpace" your code would have to look something like this:

namespace MyNameSpace
{
public class Default
{
...
}
}

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Janaka" <ja****@magicalia.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I've recently set up IIS6 on a Windows 2003 server and am trying to

migrate
over my ASP.NET applications. I'm not using VS and my page's aspx file
ususally contains something of the following: <%@ Page Src="Default.cs"
Inherits="MyNamespace.Default" %> which worked fine previously. However now I keep getting the error The base type 'MyNamespace.Default' does not exist in the source file 'Default.cs'.

Is this a problem with IIS 6?


Nov 17 '05 #3
To run web app from UNC share you must do following:
1)Define domain user with appropriate rights to asp.net directories.
2)Create new app pool in IIS6 which uses this account
3)Allow full trust to all dlls which comes from share on IIS PC
HTH

"Janaka" <ja****@magicalia.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
Kevin,

I have got this defined in the codebehind. I think the main thing I should have mentioned though was that the site works fine locally but it is now
running off a UNC virtual share on another Windows 2003 server. Any ideas?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
Is this a problem with IIS 6?


No. It has nothing to do with IIS, as the ASP.Net ISAPI does the

processing.
My guess is that your CodeBehind page doesn't define the class "Default"

as
belonging to a NameSpace. However, you didn't post that code, so that is
merely a guess. To have the CodeBehind which you are not compiling to a

DLL
define "Default" as beloning to the NameSpace "MyNameSpace" your code

would
have to look something like this:

namespace MyNameSpace
{
public class Default
{
...
}
}

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Janaka" <ja****@magicalia.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I've recently set up IIS6 on a Windows 2003 server and am trying to

migrate
over my ASP.NET applications. I'm not using VS and my page's aspx file ususally contains something of the following: <%@ Page Src="Default.cs" Inherits="MyNamespace.Default" %> which worked fine previously. However now I keep getting the error The base type 'MyNamespace.Default' does not exist in the source file 'Default.cs'.

Is this a problem with IIS 6?



Nov 17 '05 #4
Thanks Anatoly,

I've run through these steps and unfortuanately still have the same problem.
Does it matter that we haven't got a domain? I've created a user on both
machines and granted it appropriate permissions.

"Anatoly" <an*****@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
To run web app from UNC share you must do following:
1)Define domain user with appropriate rights to asp.net directories.
2)Create new app pool in IIS6 which uses this account
3)Allow full trust to all dlls which comes from share on IIS PC
HTH

"Janaka" <ja****@magicalia.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
Kevin,

I have got this defined in the codebehind. I think the main thing I

should
have mentioned though was that the site works fine locally but it is now
running off a UNC virtual share on another Windows 2003 server. Any

ideas?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
> Is this a problem with IIS 6?

No. It has nothing to do with IIS, as the ASP.Net ISAPI does the

processing.
My guess is that your CodeBehind page doesn't define the class "Default"
as
belonging to a NameSpace. However, you didn't post that code, so that
is merely a guess. To have the CodeBehind which you are not compiling to
a DLL
define "Default" as beloning to the NameSpace "MyNameSpace" your code

would
have to look something like this:

namespace MyNameSpace
{
public class Default
{
...
}
}

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Janaka" <ja****@magicalia.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> I've recently set up IIS6 on a Windows 2003 server and am trying to
migrate
> over my ASP.NET applications. I'm not using VS and my page's aspx file > ususally contains something of the following: <%@ Page Src="Default.cs" > Inherits="MyNamespace.Default" %> which worked fine previously.

However
> now I keep getting the error The base type 'MyNamespace.Default'

does not
> exist in the source file 'Default.cs'.
>
> Is this a problem with IIS 6?
>
>
>



Nov 17 '05 #5
Pay attention on stage 3, which is critical.
Recheck if URL you write in Net Framework configuration EXACTLY the same
like
in IIS in "share located on another computer".
"Janaka" <ja****@magicalia.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Thanks Anatoly,

I've run through these steps and unfortuanately still have the same problem. Does it matter that we haven't got a domain? I've created a user on both
machines and granted it appropriate permissions.

"Anatoly" <an*****@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
To run web app from UNC share you must do following:
1)Define domain user with appropriate rights to asp.net directories.
2)Create new app pool in IIS6 which uses this account
3)Allow full trust to all dlls which comes from share on IIS PC
HTH

"Janaka" <ja****@magicalia.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
Kevin,

I have got this defined in the codebehind. I think the main thing I should
have mentioned though was that the site works fine locally but it is now running off a UNC virtual share on another Windows 2003 server. Any

ideas?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
> > Is this a problem with IIS 6?
>
> No. It has nothing to do with IIS, as the ASP.Net ISAPI does the
processing.
> My guess is that your CodeBehind page doesn't define the class "Default" as
> belonging to a NameSpace. However, you didn't post that code, so that is
> merely a guess. To have the CodeBehind which you are not compiling
to
a DLL
> define "Default" as beloning to the NameSpace "MyNameSpace" your
code would
> have to look something like this:
>
> namespace MyNameSpace
> {
> public class Default
> {
> ...
> }
> }
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Big Things are made up of
> Lots of Little Things.
>
> "Janaka" <ja****@magicalia.com> wrote in message
> news:%2****************@TK2MSFTNGP09.phx.gbl...
> > I've recently set up IIS6 on a Windows 2003 server and am trying to > migrate
> > over my ASP.NET applications. I'm not using VS and my page's aspx

file
> > ususally contains something of the following: <%@ Page

Src="Default.cs"
> > Inherits="MyNamespace.Default" %> which worked fine previously.
However
> > now I keep getting the error The base type 'MyNamespace.Default'

does not
> > exist in the source file 'Default.cs'.
> >
> > Is this a problem with IIS 6?
> >
> >
> >
>
>



Nov 17 '05 #6
Thanks after going through Caspol and setting permissions to the UNC share
its now working

"Anatoly" <an*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Pay attention on stage 3, which is critical.
Recheck if URL you write in Net Framework configuration EXACTLY the same
like
in IIS in "share located on another computer".
"Janaka" <ja****@magicalia.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Thanks Anatoly,

I've run through these steps and unfortuanately still have the same

problem.
Does it matter that we haven't got a domain? I've created a user on both
machines and granted it appropriate permissions.

"Anatoly" <an*****@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
To run web app from UNC share you must do following:
1)Define domain user with appropriate rights to asp.net directories.
2)Create new app pool in IIS6 which uses this account
3)Allow full trust to all dlls which comes from share on IIS PC
HTH

"Janaka" <ja****@magicalia.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
> Kevin,
>
> I have got this defined in the codebehind. I think the main thing I
should
> have mentioned though was that the site works fine locally but it is

now > running off a UNC virtual share on another Windows 2003 server. Any
ideas?
>
> "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
> news:OF**************@TK2MSFTNGP10.phx.gbl...
> > > Is this a problem with IIS 6?
> >
> > No. It has nothing to do with IIS, as the ASP.Net ISAPI does the
> processing.
> > My guess is that your CodeBehind page doesn't define the class

"Default"
> as
> > belonging to a NameSpace. However, you didn't post that code, so that
is
> > merely a guess. To have the CodeBehind which you are not compiling

to
a
> DLL
> > define "Default" as beloning to the NameSpace "MyNameSpace" your

code > would
> > have to look something like this:
> >
> > namespace MyNameSpace
> > {
> > public class Default
> > {
> > ...
> > }
> > }
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > http://www.takempis.com
> > Big Things are made up of
> > Lots of Little Things.
> >
> > "Janaka" <ja****@magicalia.com> wrote in message
> > news:%2****************@TK2MSFTNGP09.phx.gbl...
> > > I've recently set up IIS6 on a Windows 2003 server and am trying to > > migrate
> > > over my ASP.NET applications. I'm not using VS and my page's aspx file
> > > ususally contains something of the following: <%@ Page
Src="Default.cs"
> > > Inherits="MyNamespace.Default" %> which worked fine previously.
> However
> > > now I keep getting the error The base type 'MyNamespace.Default'

does
> not
> > > exist in the source file 'Default.cs'.
> > >
> > > Is this a problem with IIS 6?
> > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #7
Say, the User.Identity.Name returns actual user or configured in app pool?
"Janaka" <ja****@magicalia.com> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Thanks after going through Caspol and setting permissions to the UNC share
its now working

"Anatoly" <an*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Pay attention on stage 3, which is critical.
Recheck if URL you write in Net Framework configuration EXACTLY the same
like
in IIS in "share located on another computer".
"Janaka" <ja****@magicalia.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Thanks Anatoly,

I've run through these steps and unfortuanately still have the same

problem.
Does it matter that we haven't got a domain? I've created a user on both machines and granted it appropriate permissions.

"Anatoly" <an*****@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
> To run web app from UNC share you must do following:
> 1)Define domain user with appropriate rights to asp.net directories.
> 2)Create new app pool in IIS6 which uses this account
> 3)Allow full trust to all dlls which comes from share on IIS PC
> HTH
>
> "Janaka" <ja****@magicalia.com> wrote in message
> news:eI**************@TK2MSFTNGP12.phx.gbl...
> > Kevin,
> >
> > I have got this defined in the codebehind. I think the main thing I > should
> > have mentioned though was that the site works fine locally but it is
now
> > running off a UNC virtual share on another Windows 2003 server.
Any > ideas?
> >
> > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message > > news:OF**************@TK2MSFTNGP10.phx.gbl...
> > > > Is this a problem with IIS 6?
> > >
> > > No. It has nothing to do with IIS, as the ASP.Net ISAPI does the
> > processing.
> > > My guess is that your CodeBehind page doesn't define the class
"Default"
> > as
> > > belonging to a NameSpace. However, you didn't post that code, so

that
is
> > > merely a guess. To have the CodeBehind which you are not compiling
to
a
> > DLL
> > > define "Default" as beloning to the NameSpace "MyNameSpace" your

code
> > would
> > > have to look something like this:
> > >
> > > namespace MyNameSpace
> > > {
> > > public class Default
> > > {
> > > ...
> > > }
> > > }
> > >
> > > --
> > > HTH,
> > >
> > > Kevin Spencer
> > > Microsoft MVP
> > > .Net Developer
> > > http://www.takempis.com
> > > Big Things are made up of
> > > Lots of Little Things.
> > >
> > > "Janaka" <ja****@magicalia.com> wrote in message
> > > news:%2****************@TK2MSFTNGP09.phx.gbl...
> > > > I've recently set up IIS6 on a Windows 2003 server and am
trying to
> > > migrate
> > > > over my ASP.NET applications. I'm not using VS and my page's

aspx > file
> > > > ususally contains something of the following: <%@ Page
> Src="Default.cs"
> > > > Inherits="MyNamespace.Default" %> which worked fine

previously. > > However
> > > > now I keep getting the error The base type 'MyNamespace.Default' does
> > not
> > > > exist in the source file 'Default.cs'.
> > > >
> > > > Is this a problem with IIS 6?
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #8
depends on your authentication type
but usually the actual user
"Anatoly" <an*****@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Say, the User.Identity.Name returns actual user or configured in app pool?
"Janaka" <ja****@magicalia.com> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Thanks after going through Caspol and setting permissions to the UNC share
its now working

"Anatoly" <an*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Pay attention on stage 3, which is critical.
Recheck if URL you write in Net Framework configuration EXACTLY the same like
in IIS in "share located on another computer".
"Janaka" <ja****@magicalia.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
> Thanks Anatoly,
>
> I've run through these steps and unfortuanately still have the same
problem.
> Does it matter that we haven't got a domain? I've created a user on both
> machines and granted it appropriate permissions.
>
> "Anatoly" <an*****@hotmail.com> wrote in message
> news:er**************@TK2MSFTNGP12.phx.gbl...
> > To run web app from UNC share you must do following:
> > 1)Define domain user with appropriate rights to asp.net directories. > > 2)Create new app pool in IIS6 which uses this account
> > 3)Allow full trust to all dlls which comes from share on IIS PC
> > HTH
> >
> > "Janaka" <ja****@magicalia.com> wrote in message
> > news:eI**************@TK2MSFTNGP12.phx.gbl...
> > > Kevin,
> > >
> > > I have got this defined in the codebehind. I think the main thing I > > should
> > > have mentioned though was that the site works fine locally but
it
is now
> > > running off a UNC virtual share on another Windows 2003 server. Any > > ideas?
> > >
> > > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message > > > news:OF**************@TK2MSFTNGP10.phx.gbl...
> > > > > Is this a problem with IIS 6?
> > > >
> > > > No. It has nothing to do with IIS, as the ASP.Net ISAPI does
the > > > processing.
> > > > My guess is that your CodeBehind page doesn't define the class
> "Default"
> > > as
> > > > belonging to a NameSpace. However, you didn't post that code, so that
> is
> > > > merely a guess. To have the CodeBehind which you are not compiling to
> a
> > > DLL
> > > > define "Default" as beloning to the NameSpace "MyNameSpace" your code
> > > would
> > > > have to look something like this:
> > > >
> > > > namespace MyNameSpace
> > > > {
> > > > public class Default
> > > > {
> > > > ...
> > > > }
> > > > }
> > > >
> > > > --
> > > > HTH,
> > > >
> > > > Kevin Spencer
> > > > Microsoft MVP
> > > > .Net Developer
> > > > http://www.takempis.com
> > > > Big Things are made up of
> > > > Lots of Little Things.
> > > >
> > > > "Janaka" <ja****@magicalia.com> wrote in message
> > > > news:%2****************@TK2MSFTNGP09.phx.gbl...
> > > > > I've recently set up IIS6 on a Windows 2003 server and am trying to
> > > > migrate
> > > > > over my ASP.NET applications. I'm not using VS and my
page's aspx
> > file
> > > > > ususally contains something of the following: <%@ Page
> > Src="Default.cs"
> > > > > Inherits="MyNamespace.Default" %> which worked fine

previously. > > > However
> > > > > now I keep getting the error The base type 'MyNamespace.Default' > does
> > > not
> > > > > exist in the source file 'Default.cs'.
> > > > >
> > > > > Is this a problem with IIS 6?
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #9

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

Similar topics

11
3733
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
7102
by: Peter Olcott | last post by:
www.halting-problem.com
18
6138
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
28
5170
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
3785
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
4870
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
4530
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
2929
by: =?Utf-8?B?am8uZWw=?= | last post by:
Hello All, I am developing an Input Methop (IM) for PocketPC / Windows Mobile (PPC/WM). On some devices the IM will not start. The IM appears in the IM-List but when it is selected from the...
1
5100
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
9
3621
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
0
7204
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
7091
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
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
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
5586
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,...
1
5018
isladogs
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...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.