Reference required to assembly Error


https://forum.kartris.com/Topic2184.aspx
Print Topic | Close Window

By rob@giantpeachdesign - Thu 11 Jul 2013
I am currently building a site for a client who requested we use the Kartris system. All was going well until I came in this morning to find that the DNS and SQL services had crashed on the server that this site is hosted on. Once these were back up and running I am greeted with this error when going to default.aspx or a product page.

-----------------------------------------------------------------------------
>> URL:http://pet-tags.eu/default.aspx
>> Page:
-----------------------------------------------------------------------------
>> 11/07/2013 09:37:26
>> 188.66.92.205
>> DESCRIPTION:
System.Web.HttpCompileException: D:\Plesk\VHOSTS\pet-tags.eu\httpdocs\Skins\PetTags\HomePage.master(117): error BC30652: Reference required to assembly 'App_Code.pcfqatxs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'BasketBLL'. Add one to your project.
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.Page.get_Master()
at System.Web.UI.Page.ApplyMasterPage()
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

==================================================


We don't use ASP.Net here so this means absolutely nothing to me or my colleagues. Tried a Google search but that didn't come up with a solution.

Any ideas?

Thanks
By Paul - Thu 11 Jul 2013
It looks like something cached badly, maybe related to the crash. I don't think it is a code issue at all. If you don't have admin control of the server, try restarting the site (you can do this from data admin inthe back end if you can access that, if not, with FTP just edit the web.config in the root and save it with some minor change like an added space - this should force the site to restart).
By rob@giantpeachdesign - Fri 12 Jul 2013
Thanks for the reply. Tried both of these but still no luck, throwing the same error as before.

Any other ideas? We were so close to finishing this project and then this has happened!

Thanks
By Paul - Fri 12 Jul 2013
If you have control over the server, try setting it up as a new site. I've seen something similar happen to another customer using Plesk (though I don't think is related to Plesk), and it seemed something bad got cached. Creating a new site seemed to fix it, presumably because it rebuilds whatever assemblies got cached badly.

This might also help:

http://stackoverflow.com/questions/496269/asp-net-page-says-i-need-to-reference-an-assembly-that-does-not-exist
By rob@giantpeachdesign - Mon 15 Jul 2013
I tried one of the suggestions in that link which said to add something to the web.config, which I did, but that gave me a runtime error. I deleted what I originally added and now it is working!

Thanks for your help,
By Paul - Mon 15 Jul 2013
Can you mark your last post as answer if the problem was fixed/solved. You should be able to hover on it and then see an option to mark as answer.