Asp.net not happy about multiple files with the same name?

S

SamIAm

Hi There

I am a directory structure similar to the following:

/images/
/Area1/Default.aspx
/Area2/Default.aspx
/Area3/Default.aspx
/Default.aspx

All the classes in the code behind files are named correctly i.e.
The class name in code behind for /Area1/Default.aspx is names
Area1Default, Area2Default etc

..Net does seem to like that fact that there are multiple Default.aspx files
in the project and I am getting all kinds of strange behaviour like code not
running and when I try set breakpoints while debugging the ide will try and
jump to other classes in other directories and set a random breakpoint??

All the aspx pages have the correct codebehind and inherits properties set
up.

Any ideas?

S
 
M

mikeb

SamIAm said:
Hi There

I am a directory structure similar to the following:

/images/
/Area1/Default.aspx
/Area2/Default.aspx
/Area3/Default.aspx
/Default.aspx

All the classes in the code behind files are named correctly i.e.
The class name in code behind for /Area1/Default.aspx is names
Area1Default, Area2Default etc

.Net does seem to like that fact that there are multiple Default.aspx files
in the project and I am getting all kinds of strange behaviour like code not
running and when I try set breakpoints while debugging the ide will try and
jump to other classes in other directories and set a random breakpoint??

All the aspx pages have the correct codebehind and inherits properties set
up.

Any ideas?

S

As far as I know, ASP.NET does not have any trouble with a setup like
this, but the debugger definitely does - it doesn't seem to take into
account the full path, only the base filename, when locating source files.

I suspect that you have other problems, but you might have to do some
renaming of files to allow you to use the debugger to track them down.
If that's not acceptable, tracing may be your best hope.
 
S

SamIAm

There is a documented problem with the debugger. I guess we will just rename
all the files when we go live.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top