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

The type '_Default' conflicts with the imported type '_Default'

I get a warning when I build my web app in VS2005 RTM. This error occurs
for every page that is called default.aspx. (I have one in each folder of
my web application).

Pulling up the files it references, shows both files are code generated and
appear to be identical. At the top of each file is
#pragma checksum [originalfilethisisfor.aspx] and they both refer to the
same file.

How do I get rid of this warning?

Warning 1 The type '_Default' in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\site\3f4ac539\1f8cc57b\App_Web_k46k7dwr.2.cs ' conflicts with the
imported type '_Default' in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\miniter\3f4ac539\1f8cc57b\App_Web_0ilzep2v.d ll'. Using the one in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\site\3f4ac539\1f8cc57b\App_Web_k46k7dwr.2.cs '.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\site\3f4ac539\1f8cc57b\App_Web_k46k7dwr.2.cs 128
Dec 15 '05 #1
3 6264
Wayne,

I think something went wrong here. Are you converting a project from
asp.net 1.1 to 2.0 using VS 2005?

I just created the same senario and by default VS will pre-pend the
containing folder names before the page class name when it is declaring
the codebeside file.

E.g

FileName CodeBeside Classname
-----------------------------------------------------------------------------------------

default.aspx --> parital class _default

/subfolder1/default.aspx --> partial class subfolder1_default

/subfolder1/sub1/default.aspx --> partial class
subfolder1_sub1_default

/subfolder2/default.aspx --> partial class subfolder2_default
So, this is the trend you will see going. However, if you are
converting a old project then I don't know if the conversion tool will
take care of this for you.

I hope this helps.

Dec 15 '05 #2
I had the same, while default.aspx wasn't in the same folder (obviously :) )
VWD complaints about the (class)names.

"tdavisjr" <td******@gmail.com> schreef in bericht
news:11**********************@g43g2000cwa.googlegr oups.com...
Wayne,

I think something went wrong here. Are you converting a project from
asp.net 1.1 to 2.0 using VS 2005?

I just created the same senario and by default VS will pre-pend the
containing folder names before the page class name when it is declaring
the codebeside file.

E.g

FileName CodeBeside Classname
-----------------------------------------------------------------------------------------

default.aspx --> parital class _default

/subfolder1/default.aspx --> partial class subfolder1_default

/subfolder1/sub1/default.aspx --> partial class
subfolder1_sub1_default

/subfolder2/default.aspx --> partial class subfolder2_default
So, this is the trend you will see going. However, if you are
converting a old project then I don't know if the conversion tool will
take care of this for you.

I hope this helps.

Dec 16 '05 #3
Found it. My master page was called defaut.master - the code behind was
named default! So, I just renamed my codebehind class. That will do it!

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43***********************@text.nova.planet.nl ...
I had the same, while default.aspx wasn't in the same folder (obviously
:) ) VWD complaints about the (class)names.

"tdavisjr" <td******@gmail.com> schreef in bericht
news:11**********************@g43g2000cwa.googlegr oups.com...
Wayne,

I think something went wrong here. Are you converting a project from
asp.net 1.1 to 2.0 using VS 2005?

I just created the same senario and by default VS will pre-pend the
containing folder names before the page class name when it is declaring
the codebeside file.

E.g

FileName CodeBeside Classname
-----------------------------------------------------------------------------------------

default.aspx --> parital class _default

/subfolder1/default.aspx --> partial class subfolder1_default

/subfolder1/sub1/default.aspx --> partial class
subfolder1_sub1_default

/subfolder2/default.aspx --> partial class subfolder2_default
So, this is the trend you will see going. However, if you are
converting a old project then I don't know if the conversion tool will
take care of this for you.

I hope this helps.


Dec 21 '05 #4

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

Similar topics

15
by: torched_smurf | last post by:
I have a java program in a package called 'cmd'. This of course conflicts with the builtin python package of the same name. The thing is, I need to be able to import from both of these packages in...
0
by: Bertrand | last post by:
Hi, I have imported several unmanaged C++ LIBs into a mixed C++ DLL. Two LIBs have the class name (CLog) without namespace. Is there a way to assign a namespace to each imported LIB in the...
0
by: M | last post by:
Hi There, I am having lot of trouble getting out the ASP.NET "dll hell", i hope i can find the help here. i have coded a simple page using Visual Studio compiled it. keep on getting works on my...
4
by: TdarTdar | last post by:
Hi, How do you solve this problem, I seen a web page about this but I still very new to asp.net so please elaborate thanks ? Parser Error Description: An error occurred during the parsing of a...
0
by: Steve Franks | last post by:
Every time I rebuild my ASP.NET site (2005 beta 2) I get the following warning, and I cannot figure out where it is coming from and how to resolve it: Warning 1 The type 'myquicktest' in...
1
by: somequestion | last post by:
Warning message like this and when run time sometimes occur this message. what kind fo error message is this? how should i solve? ...
22
by: Vagif Abilov | last post by:
We have several Web projects where we suddenly began experiencing various problems after porting them to .NET 2.0. I debugged one of them and here's what I've found: In one of referenced...
3
by: John | last post by:
How do I cast a type that can be a number of different calling pages in asp.net. _Default is used in the example but it could be another page type. Example : _Default myPage =...
0
by: Rob Meade | last post by:
Hi all, I have an application which has been running successfully on our old Windows 2000 Server .Net 1.1. We have on several occasions tried to rebuild our infrastructure, and even a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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
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...

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.