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

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

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
Nov 17 '05 #1
2 1076
SamIAm wrote:
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.

--
mikeb

Nov 17 '05 #2
There is a documented problem with the debugger. I guess we will just rename
all the files when we go live.

Thanks

"mikeb" <ma************@mailnull.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
SamIAm wrote:
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.

--
mikeb

Nov 17 '05 #3

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

Similar topics

59
by: seberino | last post by:
I've heard 2 people complain that word 'global' is confusing. Perhaps 'modulescope' or 'module' would be better? Am I the first peope to have thought of this and suggested it? Is this a...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
43
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail...
4
by: MoroccoIT | last post by:
Greetings - I saw somewhat similar code (pls see link below) that does mupltiple files upload. It works fine, but I wanted to populate the database with the same files that are uploaded to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.