Making a subdirectory into an application causes inherits attribute to "lose" reference to .vb code

  • Thread starter Thread starter Novice
  • Start date Start date
N

Novice

Hi all, this is a fairly trivial question, but I can't seem to figure
it out.

My set up is I have a directory - let's say:
c:\blah\foo

That directory is mapped to the virtual directory:
http://localhost/test

I have a bunch of .aspx and .vb files in that directory and it all
works fine.

However, I created a subdirectory in the above directory called:
c:\blah\foo\another

The above directory is mapped to:
http://localhost/test/another

In that directory I put an additional .aspx file (something.aspx) and
..vb file (something.aspx.vb) and the .aspx file uses the "inherits"
attribute to inherit from the class contained in the .vb file. That
works fine.

However, I want to make the "another" subdirectory into an application
too. So I go into the Internet Information Services tool, right click
on the another subdirectory, go to properties, and create an
application named "another". Now that directory is also an
application.

HOWEVER, now when I access the web pages, I get this error:
Could not load type 'test.something'.

I checked the .dll and there is in fact a class "something" in the
namespace "test".

I've tried making the "inherits" attribute equal to:
"test.another.something"
and
"another.something"

but nothing seems to work.

Any suggestions?

Thanks,
Novice
 
I've had the same experience, fixed it by removing the application from the
subfolder.
 
It's because anything created in the new folder has a new namespace.

I'm not quite sure how VB handles namespaces (someone else can better
explain that), but the new class will be

<whatever>.newfolder

HTH
Brian W
 
Back
Top