ASPX page Inherits problem


I have an ASP.NET application developed in Visual Studio 2005. Because the project is called "Sistema", all .APSX pages have the top
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="Sistema._Default" %>.

When It was in a physical path of an IIS application, works ok. But, I need to move it to a subfolder in the physical path of other IIS application, and I can not create a new IIS application pointing to the new folder.

Then, see below what I did:

- I have an IIS application called "ehst" with the physical path in "C:\EHS" and URL equal "http://localhost/ehst";
- I created the subfolder "C:\EHST\TEST" and copied all folders annd files of the old IIS aplication.
- In Internet Explorer, I use the URL "http://localhost/ehst/test".

But the following error occurs:

Am I doing something wrong? Is not possible call a webpage if it is not set in an IIS application?

Thanks in advance,

Marcelo Camarate
Marcelo CamarateAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hope you checked below information:


"Sistema" - is namespace name
"_Default" - is class name which is inherited from Page.
Marcelo CamarateAuthor Commented:
Hi Mrunal,

Thanks for your reply.

Yes, you are right. "Sistema" is the namespace name, as you can see below:
NAMESPACE.JPGAnd "Default" is the ASPX page name.


Marcelo camarate
Ok then you can check for other steps like:

1. Check your dll of application in bin folder, it should not be in bin/debug.

2. Have you specified your _Default class is under the namespace "Sistema" in Default.aspx.cs file

3. Have you done "Convert to Application" in IIS for new sub folder ?

Hope this helps.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.