Last post Dec 05, 2008 03:23 AM by Thomas Sun – MSFT
Dec 02, 2008 05:52 PM|mase|LINK
Hi, I'm on ASP.NET 2.0 and using Web Deployment Project to build assemblies by folder. I have been using these just fine and all of the sudden I've started receiving this error.
Could not load file or assembly 'App_Web_c4z8pqdo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Exception type 'System.IO.FileNotFoundException' was caught.
Target Site: Void __BuildControlTree(ASP.artists_controls_artistheader_ascx)
at ASP.artists_controls_artistheader_ascx.__BuildControlTree(artists_controls_artistheader_ascx __ctrl)
at System.Web.UI.UserControl.InitializeAsUserControl(Page page)
at ASP._artists_artist_master.__BuildControlctlContent(Control __ctrl)
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at ASP.master_myApp_master.__BuildControlTree(master_myApp_master __ctrl)
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.MasterPage.ApplyMasterRecursive(MasterPage master, IList appliedMasterFilePaths)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The app has been working fine and there are not any errors on the page or control.
App_Web_c4z8pqdo may have been the name of the assembly before WDP ran and merged the assemblies into folder specific names, but now the assembly is called Artists.Controls.dll. It shows FileNotFoundException, but the file is certainly
As soon as I copy over the exact same assemblies (without even rebuilding) into the live bin folder, everything starts working again just fine. Could the dll files be getting corrupt on that particular folder/file? Why doesn't it reference the name of
the assembly as it is?
cannot load assembly
Web Deployment Project
Dec 05, 2008 03:23 AM|Thomas Sun – MSFT|LINK
It seems that your website uses older assembly. If we use Web Deployment project with prefix, the name of assembly should not contain random name (c4z8pqdo).
So we can try to delete the template folder in local ("C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files").
I look forward to hearing from you.