locked
Getting error once after every 20 minutes idle time as Could not load file or assembly 'vjscor' RRS feed

  • Question

  • User256921954 posted

    Hi all,
    help needed for below issue. getting only in DEV and UAT environment

    Issue Details :  getting an assembly not loaded error for .net framework 3.5 based web site application. only every after 20 minutes of idle app pool time

    Login page is throwing Script manager error as 

    Source Error: 

    Line 38: <form id="form1" runat="server">

    Line 39:

    Line 40:     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">

    Line 41:     </asp:ToolkitScriptManager>

    Line 42:

    let me know if more details required

    Error details
    ------------------------------------------
    Could not load file or assembly 'vjscor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
       at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
       at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
       at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
       at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
       at System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit)
       at System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly)
       at System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly()
       at System.Web.UI.ScriptManager..ctor()
       at AjaxControlToolkit.ToolkitScriptManager..ctor() in C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 94
       at ASP.login_aspx.__BuildControlToolkitScriptManager1() in D:\Projects\AEDDO\login.aspx:line 40
       at ASP.login_aspx.__BuildControlform1() in D:\Projects\AEDDO\login.aspx:line 38
       at ASP.login_aspx.__BuildControlTree(login_aspx __ctrl) in D:\Projects\AEDDO\login.aspx:line 1
       at ASP.login_aspx.FrameworkInitialize() in D:\Projects\AEDDO\Login.aspx.vb:line 912308
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.login_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Wednesday, October 12, 2016 2:11 PM

All replies

  • User283571144 posted

    Hi deepakrajjaiswal,

    Issue Details :  getting an assembly not loaded error for .net framework 3.5 based web site application. only every after 20 minutes of idle app pool time

    As far as I know, IIS has "Idle Time-out Settings for an Application Pool" value.

    The default value of this setting is 20 minutes.

    If you don’t have any visitors to your site within 20 minutes, the application pool will shut down – freeing up those system resources.

    So I suggest you could try to change this setting and test your application again.

    More details about how to configure idle time-out settings for an application pool, you could refer to follow steps and link:

    1.Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7).

    2.In the Connections pane, expand the server node and click Application Pools.

    3.On the Application Pools page, select the application pool for which you want to specify idle time-out settings, and then click Advanced Settings in the Actions pane.

    4.In the Idle Time-out (minutes) box, type a number of minutes, and then click OK.

    Link:https://technet.microsoft.com/en-us/library/cc771956(v=ws.10).aspx

    Best Regards,

    Brando

    Thursday, October 13, 2016 3:00 AM
  • User256921954 posted

    Can you please elaborate about this missing dll error, because we have the same IIS pool setup in our production site which works fine never thrown any error like this.

    And suppose app pool is refreshing post idle time out then also this error should not appear.

    Thursday, October 13, 2016 6:24 AM
  • User283571144 posted

    Hi Deepak,

    Can you please elaborate about this missing dll error, because we have the same IIS pool setup in our production site which works fine never thrown any error like this.

    As far as I know, if you have installed other version of ajaxtoolkit will also cause this error.

    I suggest you could check the version of ajaxtookit, firstly.

    Besides, I suggest you could also check you have already add the reference of the ajaxtoolkit in your web application.

    If you have already add it, I suggest you could uninstall it and use Nuget Package manager to install it again.

    Best Regards,

    Brando

    Monday, October 17, 2016 8:27 AM