Asked by:
Object reference & Could not load file or assembly

Question
-
User492458434 posted
we have asp.net application(.net 2.0) published in IISwindows server 2012 and working fine but in last week a new errors appeared and the site become down until we rest the iis pool
sample of errors :
1-<Msg>Could not load file or assembly 'xxxx1, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.</Msg>
<Trace> at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle) at System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle) at System.Reflection.RtFieldInfo.get_FieldType() at System.Web.UI.Util.GetNonPrivateFieldType(Type classType, String fieldName) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.MasterPageCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)</Trace>
2-<Msg>Object reference not set to an instance of an object.</Msg>
<Trace> at xxx1.InitializeCulture() in release path\filename.aspx.cs:line 213 at ASP.filename_aspx.__BuildControlTree(filename_aspx __ctrl) at ASP.filename_aspx.FrameworkInitialize() at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.filename_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)</Trace>
any one can help?
thanks
RamiTuesday, October 31, 2017 3:04 PM
All replies
-
User283571144 posted
Hi rami khalaf,
we have asp.net application(.net 2.0) published in IISwindows server 2012 and working fine but in last week a new errors appeared and the site become down until we rest the iis poolIt sounds strange you restart the iis pool and your application lose the permission to access the assembly.
Could you please tell us which things you have changed during the last week?
Besides, I suggest you could try to republish your application. Maybe it will work well.
Wednesday, November 1, 2017 3:05 AM -
User492458434 posted
t sounds strange you restart the iis pool and your application lose the permission to access the assembly.
Could you please tell us which things you have changed during the last week?
Besides, I suggest you could try to republish your application. Maybe it will work well.
there is no changes in the application, but i dont know if any in windows, anti virus..etc.
the problem that the site working fine after we reset the iis but after hours the problem return back!
Wednesday, November 1, 2017 6:40 AM -
User283571144 posted
Hi rami khalaf,
there is no changes in the application, but i dont know if any in windows, anti virus..etc.
the problem that the site working fine after we reset the iis but after hours the problem return back!
Could you please tell us which assembly the error shows? Which folder the assembly stored? Just according to your description, we couldn't directly find the reason why you get this error.
Thursday, November 2, 2017 1:50 AM -
User492458434 posted
please tell us which assembly the error shows? Which folder the assembly stored? Just according to your description, we couldn't directly find the reason why you get this error.
thank you Brando for your reply..
The error appeared for custom assembles but the error details as you can see in the first post its related to .net components.
yesterday i removed the asp.net temp files from all the servers and the error not appears until now, hope this is the solution.
Thursday, November 2, 2017 7:03 AM