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>
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
It 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.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
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.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
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.
None
0 Points
3 Posts
Object reference & Could not load file or assembly
Oct 31, 2017 03:04 PM|rami khalaf|LINK
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
Rami
Star
9831 Points
3120 Posts
Re: Object reference & Could not load file or assembly
Nov 01, 2017 03:05 AM|Brando ZWZ|LINK
Hi rami khalaf,
It 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.
None
0 Points
3 Posts
Re: Object reference & Could not load file or assembly
Nov 01, 2017 06:40 AM|rami khalaf|LINK
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!
Star
9831 Points
3120 Posts
Re: Object reference & Could not load file or assembly
Nov 02, 2017 01:50 AM|Brando ZWZ|LINK
Hi rami khalaf,
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.
None
0 Points
3 Posts
Re: Object reference & Could not load file or assembly
Nov 02, 2017 07:03 AM|rami khalaf|LINK
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.