G
Guest
Hi,
I recently moved the Global.asax.cs from the project root to the App_Code
folder and now I'm getting an error message
The type 'Hineynu3.Global' is ambiguous: it could come from assembly
'C:\Inetpub\wwwroot\Hineynu3\bin\Hineynu3.DLL' or from assembly
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\hineynu3\004e4978\f1eea5ba\App_Code.3cn2kgbp.DLL'. Please specify the
assembly explicitly in the type name.
I've tried the following and nothing works:
1) I closed VS 2005, stopped the IIS service, deleted the Temporary ASP.NET
files, deleted the dll from /bin, started IIS, started VS 2005 and recompiled
the project.
2) When I remove Global.asax from the project's root I don't get this error
but the event handlers in Global.asax.cs are never called.
3) I changed Global.asax from
<%@ Application Codebehind="App_Code/Global.asax.cs"
Inherits="Hineynu3.Global" Language="C#" %>
to
<%@ Application Codebehind="App_Code/Global.asax.cs"
Inherits="global::Hineynu3.Global" Language="C#" %>
but I get a message saying it is unable to load the global class.
I have not renamed the assembly. Does anyone have any suggestions?
I recently moved the Global.asax.cs from the project root to the App_Code
folder and now I'm getting an error message
The type 'Hineynu3.Global' is ambiguous: it could come from assembly
'C:\Inetpub\wwwroot\Hineynu3\bin\Hineynu3.DLL' or from assembly
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\hineynu3\004e4978\f1eea5ba\App_Code.3cn2kgbp.DLL'. Please specify the
assembly explicitly in the type name.
I've tried the following and nothing works:
1) I closed VS 2005, stopped the IIS service, deleted the Temporary ASP.NET
files, deleted the dll from /bin, started IIS, started VS 2005 and recompiled
the project.
2) When I remove Global.asax from the project's root I don't get this error
but the event handlers in Global.asax.cs are never called.
3) I changed Global.asax from
<%@ Application Codebehind="App_Code/Global.asax.cs"
Inherits="Hineynu3.Global" Language="C#" %>
to
<%@ Application Codebehind="App_Code/Global.asax.cs"
Inherits="global::Hineynu3.Global" Language="C#" %>
but I get a message saying it is unable to load the global class.
I have not renamed the assembly. Does anyone have any suggestions?