Hi,
I just installed .Net 2.0 and converted my web application. when I build the app I get the following error. Any ideas please.
Error 2 The type 'Crossmark.ExchangeBridge.Core.Web.Global' is ambiguous: it could come from assembly 'C:\Inetpub\wwwroot\ExchangeBridge\bin\Crossmark.ExchangeBridge.Core.Web.DLL' or from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\exchangebridge\90f16ac8\8c1f437a\App_Code.zatf9c-k.DLL'. Please specify the assembly explicitly in the type name. C:\Inetpub\wwwroot\ExchangeBridge\Global.asax 1
The error you are getting is that the C:\Inetpub\wwwroot\ExchangeBridge\Global.asax file has an inherits atribute that is pointing to the 'Crossmark.ExchangeBridge.Core.Web.Global' class.
Right now you have this class defined both in a compiled assembly Crossmark.ExchangeBridge.Core.Web.DLL as well as in a class within your app_code directory (or inline within your Global.asax file). You should only have one or the other in your application
-- not both.
Could the Crossmark.ExchangeBridge.Core.Web.DLL file be from your previous (V1.1?) build of your application?
I have the same problem too. I have imported a web project from 1.1 to 2.0 with the tool integrated in visual studio 2005 and when I try to regenerate all solution a type in my project is ambiguous. I have tried to clear all files in temporary folder and
reimported the solution but the same problem occourred. Can anyone help me? I don't know how to solve this problem.
Thank you
I was getting the same error. I solved it by going into my Inetpub/wwwroot/(app name) directory and getting rid of the global.asax file, and into the /bin subdirectory and getting rid of the (app name).dll file.
I was getting the same error. I solved it by going into my Inetpub/wwwroot/(app name) directory and getting rid of the global.asax file, and into the /bin subdirectory and getting rid of the (app name).dll file.
BAM. That fixed my issue. Thanks for the reply, I was pulling my hair out trying to figure this out. Thanks again.
<div>viperfish:</div> <div>I was getting the same error. I solved it by going into my Inetpub/wwwroot/(app name) directory and getting rid of the global.asax file, and into the /bin subdirectory and getting rid of the (app name).dll file.</div>
Thank you, great post, quick fix to an annoyimg problem. Deleted my global.asax after converting from 1.1 to 2.0, closed VS and re-opened, error gone.
sabu21s
Member
50 Points
14 Posts
ambiguous type eror...
Dec 07, 2005 03:38 AM|LINK
I just installed .Net 2.0 and converted my web application. when I build the app I get the following error. Any ideas please.
Error 2 The type 'Crossmark.ExchangeBridge.Core.Web.Global' is ambiguous: it could come from assembly 'C:\Inetpub\wwwroot\ExchangeBridge\bin\Crossmark.ExchangeBridge.Core.Web.DLL' or from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\exchangebridge\90f16ac8\8c1f437a\App_Code.zatf9c-k.DLL'. Please specify the assembly explicitly in the type name. C:\Inetpub\wwwroot\ExchangeBridge\Global.asax 1
Thanks
Sabu
csharppointe...
Participant
1360 Points
260 Posts
Re: ambiguous type eror...
Dec 07, 2005 05:35 AM|LINK
You did't mentioned which tool you are using to build the application
check the imports/using in the global.asax file
also remove the contents of 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files' before building the application.
Krishna Kishore.
Please Mark as answer if it helps you, and help the Community.
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: ambiguous type eror...
Dec 07, 2005 06:06 AM|LINK
Hi Sabu,
The error you are getting is that the C:\Inetpub\wwwroot\ExchangeBridge\Global.asax file has an inherits atribute that is pointing to the 'Crossmark.ExchangeBridge.Core.Web.Global' class.
Right now you have this class defined both in a compiled assembly Crossmark.ExchangeBridge.Core.Web.DLL as well as in a class within your app_code directory (or inline within your Global.asax file). You should only have one or the other in your application -- not both.
Could the Crossmark.ExchangeBridge.Core.Web.DLL file be from your previous (V1.1?) build of your application?
Hope this helps,
Scott
bknraj
Member
5 Points
1 Post
Re: ambiguous type eror...
Feb 13, 2006 06:06 AM|LINK
Hi Scott,
I'm having the same problem. I converted the application from .Net 1.1 to .Net 2.0
While debugging it shows the error. I can't understand your solution. Please help me to fix this error.
regards,
bknraj[:)]
mirkomes
Member
25 Points
7 Posts
Re: ambiguous type eror...
May 26, 2006 02:56 PM|LINK
Thank you
Mirko
viperfish
Member
15 Points
3 Posts
Re: ambiguous type eror...
Oct 26, 2006 03:10 PM|LINK
BrownR
Member
77 Points
23 Posts
Re: ambiguous type eror...
Nov 21, 2006 06:12 PM|LINK
BAM. That fixed my issue. Thanks for the reply, I was pulling my hair out trying to figure this out. Thanks again.
Oger_Shrek
Member
52 Points
11 Posts
Re: ambiguous type eror...
Feb 12, 2007 03:00 PM|LINK
Sandy1234
Member
228 Points
541 Posts
Re: ambiguous type eror...
Jul 21, 2008 02:04 PM|LINK
Dear,
This has solved my problem, after this i am not able to Publish My Site.
I had created two pages. Now when i am trying to publish it is showing
Error 7 Handles clause requires a WithEvents variable defined in the containing type or one of its base
Error 8 Name 'txtfromdate' is not declared.
So manu other also.
Please suggest what to do.
wjbarton
Member
7 Points
2 Posts
Re: ambiguous type eror...
Aug 06, 2008 02:27 PM|LINK
Thank you, great post, quick fix to an annoyimg problem. Deleted my global.asax after converting from 1.1 to 2.0, closed VS and re-opened, error gone.