473,406 Members | 2,705 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,406 software developers and data experts.

The type '_Default' is ambiguous

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 resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The type '_Default' is ambiguous: it could come from
assembly
'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_defa ult.aspx.cdcab7d2.DLL' or
from assembly
'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_pict uresneeded.aspx.cdcab7d2.DLL'. Please specify the assembly explicitly in the type name.

Source Error:
Line 1: <%@ page language="VB" autoeventwireup="false" inherits="_Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Source File: /Pictures/Default.aspx Line: 1

Nov 19 '05 #1
4 6152
Hi, basically it is saying that there are two objects called _Default and
you are wanting to use one of them but it does not know which one to
instantiate.
Use the namespace of the _Default object you want to use when you reference
the object in your page (Find which one by using the object browser to
browse the referenced objects (Dlls)).

I see that you are not the only one having this problem
http://blog.davidyack.com/archive/2005/06/07/568.aspx
hth
Cheers
Mark

"TdarTdar" <Td******@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
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 resource required to service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The type '_Default' is ambiguous: it could come from
assembly
'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_defa ult.aspx.cdcab7d2.DLL' or from assembly
'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_pict uresneeded.aspx.cdcab7d2.D
LL'. Please specify the assembly explicitly in the type name.
Source Error:
Line 1: <%@ page language="VB" autoeventwireup="false" inherits="_Default" %> Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Source File: /Pictures/Default.aspx Line: 1

Nov 19 '05 #2
Yeah I saw that web page..

"Use the namespace of the _Default object you want to use"

What does that mean thou :(
"Mark" wrote:
Hi, basically it is saying that there are two objects called _Default and
you are wanting to use one of them but it does not know which one to
instantiate.
Use the namespace of the _Default object you want to use when you reference
the object in your page (Find which one by using the object browser to
browse the referenced objects (Dlls)).

I see that you are not the only one having this problem
http://blog.davidyack.com/archive/2005/06/07/568.aspx
hth
Cheers
Mark

"TdarTdar" <Td******@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
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 resource required

to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The type '_Default' is ambiguous: it could come from
assembly
'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_defa ult.aspx.cdcab7d2.DLL'

or
from assembly

'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_pict uresneeded.aspx.cdcab7d2.D
LL'. Please specify the assembly explicitly in the type name.

Source Error:
Line 1: <%@ page language="VB" autoeventwireup="false"

inherits="_Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Source File: /Pictures/Default.aspx Line: 1


Nov 19 '05 #3
Hi, take a look at this link re namespaces

http://www.csharphelp.com/archives/archive99.html

The problem you are having is that an object is being instantiated by your
application and the compiler does not know which class to use.

The way around that is to explicitly specify the namespace that the class is
associated with

e.g. If I created an image object in code and I had referenced the
System.Drawing namespace in my project then I would receive a similiar error
because the compiler does not know if I want a image object (Ala drag and
drop from the IDE) or a System.Drawing.Image object.

To make it clear that I wanted a System.Drawing.Image object I would have to
explicitly tell the compiler that (To avoid ambiguity, hence your error
message)

so instead of doing this

image myImage = new image...

I would go
System.Drawing.Image = new .... etc

I am explicitly telling the compiler what type of image object I want to
instantiate.
HTH
Cheers
Mark

"TdarTdar" <Td******@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Yeah I saw that web page..

"Use the namespace of the _Default object you want to use"

What does that mean thou :(
"Mark" wrote:
Hi, basically it is saying that there are two objects called _Default and you are wanting to use one of them but it does not know which one to
instantiate.
Use the namespace of the _Default object you want to use when you reference the object in your page (Find which one by using the object browser to
browse the referenced objects (Dlls)).

I see that you are not the only one having this problem
http://blog.davidyack.com/archive/2005/06/07/568.aspx
hth
Cheers
Mark

"TdarTdar" <Td******@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
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 resource
required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The type '_Default' is ambiguous: it could come
from assembly

'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_defa ult.aspx.cdcab7d2.DLL' or
from assembly

'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_pict uresneeded.aspx.cdcab7d2.D LL'. Please specify the assembly explicitly in the type name.

Source Error:
Line 1: <%@ page language="VB" autoeventwireup="false"

inherits="_Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Source File: /Pictures/Default.aspx Line: 1


Nov 19 '05 #4
I jsut removed "inherits="_Default"" and it works fine. I have no special
need for
it. So just removeing this from the

<%@ page language="VB" autoeventwireup="false"
inherits="_Default" %>
solves the problem.
"Mark" wrote:
Hi, take a look at this link re namespaces

http://www.csharphelp.com/archives/archive99.html

The problem you are having is that an object is being instantiated by your
application and the compiler does not know which class to use.

The way around that is to explicitly specify the namespace that the class is
associated with

e.g. If I created an image object in code and I had referenced the
System.Drawing namespace in my project then I would receive a similiar error
because the compiler does not know if I want a image object (Ala drag and
drop from the IDE) or a System.Drawing.Image object.

To make it clear that I wanted a System.Drawing.Image object I would have to
explicitly tell the compiler that (To avoid ambiguity, hence your error
message)

so instead of doing this

image myImage = new image...

I would go
System.Drawing.Image = new .... etc

I am explicitly telling the compiler what type of image object I want to
instantiate.
HTH
Cheers
Mark

"TdarTdar" <Td******@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Yeah I saw that web page..

"Use the namespace of the _Default object you want to use"

What does that mean thou :(
"Mark" wrote:
Hi, basically it is saying that there are two objects called _Default

and you are wanting to use one of them but it does not know which one to
instantiate.
Use the namespace of the _Default object you want to use when you reference the object in your page (Find which one by using the object browser to
browse the referenced objects (Dlls)).

I see that you are not the only one having this problem
http://blog.davidyack.com/archive/2005/06/07/568.aspx
hth
Cheers
Mark

"TdarTdar" <Td******@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
> 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 resource required to
> service this request. Please review the following specific parse error
> details and modify your source file appropriately.
>
> Parser Error Message: The type '_Default' is ambiguous: it could come from > assembly
> 'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_defa ult.aspx.cdcab7d2.DLL' or
> from assembly
>
'E:\Webs\Silverqueen\WWW\Pictures\bin\App_Web_pict uresneeded.aspx.cdcab7d2.D LL'. Please specify the assembly explicitly in the type name.
>
> Source Error:
>
>
> Line 1: <%@ page language="VB" autoeventwireup="false"
inherits="_Default" %>
> Line 2:
> Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>
>
> Source File: /Pictures/Default.aspx Line: 1
>


Nov 19 '05 #5

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

Similar topics

1
by: Alex Zhitlenok | last post by:
Hi, My question is how to resolve in C# ambiguous overloaded operators? Let say, I have two unrelated classes A and B, each one implements overloaded operator + with the first parameter of type...
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...
3
by: Wayne Brantley | last post by:
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...
2
by: RKT | last post by:
(Web Developer Express 2005, CSharp, C#) I've searched high and low... If have the typical _Default page. In it is a MultiView that contains another MultiView - in both of those are Views...
2
by: 3Dfelix | last post by:
Hello, I'm starting with Visual Web Developper and ASP.NET 2.0. In order to test my remote server, I created an "hello word" aplication, that is working on local server. I have copied all...
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 =...
1
by: santosh | last post by:
Hello all, In section 7.18.1.5 the Standard says that intmax_t and uintmax_t designate signed and unsigned integer types capable of representing any value of any signed or unsigned integer type,...
2
by: =?Utf-8?B?TWluaS1Ub29scyBUaW1t?= | last post by:
I have an odd web services problem. I have a shared assembly (shared.dll) that is referenced both by a C# WinForms client (client.exe) and a C# Web Service (service.dll). When I upload the web...
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
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
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
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
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
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...

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.