Hi all,
we recently converted from VS 2003 to 2005 and now when I try to run in 2005 I'm getting the following error
Could not load file or assembly 'TreeMenu' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'TreeMenu' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 205:
Line 206: //Use the default constructor to create an instance of the MenuHeader or subclass
Line 207: menuHeaderType = Type.GetType(menuHeaderNode.Attributes["Type"].Value, true);
Line 208:
Line 209: header = (MenuHeader)menuHeaderType.GetConstructor(Type.EmptyTypes).Invoke(null);
Source File: c:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\App_Code\Menu.cs Line: 207
Assembly Load Trace: The following information can be helpful to determine why the assembly 'TreeMenu' could not be loaded.
=== Pre-bind state information ===
LOG: User = VEENABHAVANAM\vbhavanam
LOG: DisplayName = TreeMenu
(Partial)
LOG: Appbase = file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/
LOG: Initial PrivatePath = C:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\bin
Calling assembly : App_Code.hg1craw7, Version=1.0.2846.28593, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu/TreeMenu.EXE.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu.EXE.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu/TreeMenu.EXE.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'TreeMenu' or one of its dependencies. The system cannot find the file specified.]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +72
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName, Boolean throwOnError) +57
TreeMenu.Menu.InitializeFromXml() in c:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\App_Code\Menu.cs:207
TreeMenu.Menu.CreateChildControls() in c:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\App_Code\Menu.cs:114
System.Web.UI.Control.EnsureChildControls() +134
System.Web.UI.Control.PreRenderRecursiveInternal() +109
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4435
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Can somebody tell me what is this.
Thanks,
we recently converted from VS 2003 to 2005 and now when I try to run in 2005 I'm getting the following error
Could not load file or assembly 'TreeMenu' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'TreeMenu' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 205:
Line 206: //Use the default constructor to create an instance of the MenuHeader or subclass
Line 207: menuHeaderType = Type.GetType(menuHeaderNode.Attributes["Type"].Value, true);
Line 208:
Line 209: header = (MenuHeader)menuHeaderType.GetConstructor(Type.EmptyTypes).Invoke(null);
Source File: c:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\App_Code\Menu.cs Line: 207
Assembly Load Trace: The following information can be helpful to determine why the assembly 'TreeMenu' could not be loaded.
=== Pre-bind state information ===
LOG: User = VEENABHAVANAM\vbhavanam
LOG: DisplayName = TreeMenu
(Partial)
LOG: Appbase = file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/
LOG: Initial PrivatePath = C:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\bin
Calling assembly : App_Code.hg1craw7, Version=1.0.2846.28593, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu/TreeMenu.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/treemenu.web/762ca46e/f86edd87/TreeMenu/TreeMenu.EXE.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu.EXE.
LOG: Attempting download of new URL file:///C:/TreeMenu/TreeMenu_Web/TreeMenu/TreeMenu.Web/bin/TreeMenu/TreeMenu.EXE.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'TreeMenu' or one of its dependencies. The system cannot find the file specified.]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +72
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName, Boolean throwOnError) +57
TreeMenu.Menu.InitializeFromXml() in c:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\App_Code\Menu.cs:207
TreeMenu.Menu.CreateChildControls() in c:\TreeMenu\TreeMenu_Web\TreeMenu\TreeMenu.Web\App_Code\Menu.cs:114
System.Web.UI.Control.EnsureChildControls() +134
System.Web.UI.Control.PreRenderRecursiveInternal() +109
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4435
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Can somebody tell me what is this.
Thanks,