CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 12/28/2005 1:59:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
reav3r
Asp.Net User
How to handle ambiguous dll references ?12/28/2005 1:59:19 PM

0/0

Hello,

I've already read a lot of stuff on this problem, and I've still not found a suitable solution ...
The problem is the following :

Error    1    The type 'Aub.Global' is ambiguous: it could come from assembly 'C:\Mess\Work\Aub\bin\Aub.DLL' or from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6520e7e\11786928\App_Code.85yyellu.DLL'. Please specify the assembly explicitly in the type name.    C:\Mess\Work\Aub\Global.asax    1   


If I exclude the dll from the bin folder, the application doesn't compile anymore because reference is missing; if I include it, I get the error above. Any help would be so much appreciated ... thanks ;-)
StrongTypes
Asp.Net User
Re: How to handle ambiguous dll references ?12/28/2005 3:23:35 PM

0/0

Have you tried deleting it from the Temporary ASP.NET folder (the path specified in the error)?
Ryan Olshan
Microsoft MVP, ASP.NET
Blog | Group | Website | Strong Coders Community

How to ask a question
reav3r
Asp.Net User
Re: How to handle ambiguous dll references ?12/28/2005 3:25:50 PM

0/0

I forgot to mention ... I've already tried to remove the include from global.asax,  which solve THIS problem but make appear a new one, the same kind .. I'll try to load the project with VS 2003, and will tell you how it goes.
reav3r
Asp.Net User
Re: How to handle ambiguous dll references ?12/28/2005 3:37:04 PM

0/0

StrongTypes wrote:
Have you tried deleting it from the Temporary ASP.NET folder (the path specified in the error)?


Yes, I've already tried, but still the same problem ..
ScottGu
Asp.Net User
Re: How to handle ambiguous dll references ?12/30/2005 1:57:35 AM

0/0

Hi Reav,

I think the problem you have is that you have an old copy of a VS 2003 generated dll in your bin directory (specifically a file called aub.dll).   VS 2005 uses a different compilation model now, and when it compiles it isn't deleting or overwriting this file -- and as a result you end up having two "Global" class files in your application.  One is the old one in aub.dll, and the other is the new one that is generated by VS 2005.  The ambiguous error is happening because ASP.NET/VS doesn't know which one to use.

Can you try deleting the aub.dll file from your \bin directory and then re-compiling the project using VS 2005?

Hope this helps,

Scott

reav3r
Asp.Net User
Re: How to handle ambiguous dll references ?1/2/2006 2:13:09 PM

0/0

I've tried, and ... that works !!!
many thanks Scott ;-)

cheers
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional VB 2005 Authors: Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Rama Ramachandran, Kent Sharkey, Bill Sheldon, Pages: 1066, Published: 2006
Professional VB.NET Authors: Fred Barwell, Richard Case, Bill Forgey, Billy Hollis, Jonathan Pinnock, Tim McCarthy, Richard Blair, Jonathan Crossland, Whitney Hankison, Jan Narkiewicz, Rockford Lhotka, Rama Ramachandran, Matthew Reynolds, John Roth, Bill Sheldon, Bill Sempf, Pages: 1032, Published: 2002
C# in a Nutshell: A Desktop Quick Reference Authors: Peter Drayton, Ben Albahari, Ted Neward, Safari Tech Books Online, Pages: 897, Published: 2002
Programming with Managed Extensions for Microsoft Visual C++ .NET Authors: Richard Grimes, Pages: 450, Published: 2002
Beginning .NET Game Programming in VB .NET: From Novice to Professional Authors: David Weller, Alexandre Santos Lobao, Ellen Hatton, Pages: 414, Published: 2004

Web:
Web Services Stumper: Ambiguous Type - Cincinnati .Net Users Group It might help people get a handle on the problem. Michael Wood ... My application client.exe references client.dll, and since client.dll is not uploaded to ...
vbCity/DevCity.NET Forums :: .NET :: .NET Newbies :: [RESOLVED ... Data.dll. That's why you received the ambiguous namespace error when you included a reference to both System.Data and System.Data.SqlClient. ...
TheMSsForum.com >> Asp >> The type '_Default' is ambiguous - The ... How should I do this, is there any code that handle logging I can check? ..... ( The DLL references are pointing to the right place, and have "Copy local" ...
Creating a Reference to an Object Executable (.exe) files and dynamic link libraries (dlls) can also supply type ... The best way to handle potentially ambiguous references is to explicitly ...
Library (computing) - Wikipedia, the free encyclopedia The shared library term is slightly ambiguous, because it covers at least .... DLL files are dynamically linkable libraries. Other file name patterns may be ...
Type ambiguous in namespace 'System' in VS 2005, web-site ... ambiguous in namespace 'System' messages have flooded the Visual Studio error section. ... Do you have any reference to that dll? There shouldn't be any, ...
Proparse - Using The API The parser API uses integers as references to pointers to nodes. ... By releasing a node handle, all you are doing is telling the DLL that it can now re -use ...
Set In Stone : Net ambiguous reference, one solution to the ambiguous reference problem was ... to find out why ASP.net did not want to use its one and only dll reference. ...
RemObjects Software: Changes in 'Joyride' 4090: command line compiler should handle multiple references in one /ref parameter ..... 3338: No error message emitted for missing reference dll ...
TheMSsForum.com >> VB >> 'Exception' is ambiguous in the namespace ... NullReferenceException' occurred in system.data.dll Additional information: Object reference not set to an instance of an object. ...




Search This Site:










my vs 2005 does not work well with 'go to definition' and 'find all references'

dnn3.0.10 deployment

asp.net framework 2.0

style sheets

wrapping text around the image

password policy enforcement...

missing classifiedsdb_log.ldf

domain name does not exist in the database

hosting asp.net web application with odbc connections

not doing modules as user controls

multi portal - single sign-on.

any plans to enhance document control?

contents/change log of service pack 1?

is there a way to hide treeview node value from showing up in the page for security? thanks!

passport authentication help needed

extending membership properties

file upload error

logging in with https:, and then switching to http:

need help on setting breakpoint in mdbg

child portal problems

installation error

in depth .net security resources

membership issue

problem with mutliple postbacks

traincert videos for 3.0 coming up

new to authentification, need advice on good pratices

roles - not working for domain user ??

resource files

treeview inside scrollable panel control

profileprovider license

 
All Times Are GMT