none
Intermittent problem at http://SingaporeBestSite.com using Entity Data Source with MS SQL RRS feed

  • Question

  • i encountered intermittent problem at my website http://SingaporeBestSite.com , any suggestion on how to solve this please? 
    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
    System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
    System.Reflection.RuntimeModule.GetTypes() +4
    System.Reflection.Assembly.GetTypes() +78
    System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +32
    System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +25
    System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +160
    System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +166
    System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +316
    System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +53
    System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +93
    System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +130
    System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +585
    System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +76
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
    System.Web.UI.WebControls.ListView.PerformSelect() +114
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
    System.Web.UI.WebControls.ListView.CreateChildControls() +53
    System.Web.UI.Control.EnsureChildControls() +102
    System.Web.UI.Control.PreRenderRecursiveInternal() +42
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

    Thanks.

    KennyTan
    Tuesday, February 1, 2011 3:41 AM

All replies

  •  

    Hi KennyTan,

     

    Not sure whether you're using .NET 4.0, but here is a known issue on connect site, which contains a workaround:

     

    I am able to get around this error by copying the file:

    "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\NuGet.Core\v4.0_1.0.0.0__31bf3856ad364e35\NuGet.Core.dll" into the bin folder on my deployment server.

     

    However, the error message is insufficient for us to find out which assembly is missed, could you please try fuslogvw.exe to get more detail information?


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 2, 2011 2:47 AM
  • i tried fusion logger. no more error after some "troubleshooting". but the intermittent problem still persists.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
      System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
      System.Reflection.RuntimeModule.GetTypes() +4
      System.Reflection.Assembly.GetTypes() +78
      System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +32
      System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +25
      System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +160
      System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +166
      System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +316
      System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +53
      System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +93
      System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +130
      System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +572
      System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +77
      System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
      System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
      System.Web.UI.WebControls.ListView.PerformSelect() +114
      System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
      System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
      System.Web.UI.WebControls.ListView.CreateChildControls() +53
      System.Web.UI.Control.EnsureChildControls() +102
      System.Web.UI.Control.PreRenderRecursiveInternal() +42
      System.Web.UI.Control.PreRenderRecursiveInternal() +175
      System.Web.UI.Control.PreRenderRecursiveInternal() +175
      System.Web.UI.Control.PreRenderRecursiveInternal() +175
      System.Web.UI.Control.PreRenderRecursiveInternal() +175
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    Server Error in '/' Application.

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

     

     


    KennyTan
    Tuesday, February 8, 2011 1:33 PM
  •  

    You may surround your code with a try...catch block, catch the ReflectionTypeLoadException exception, and examine its LoaderExceptions property, from which we can know what types cannot be loaded, see this post:

     

    try

    {  

    // Your logic...

     }

    catch(ReflectionTypeLoadException ex)

    {  

    foreach(Exception e in ex.LoaderExceptions) 

     {     Debug.WriteLine(e.ToString());   }

    }


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 9, 2011 5:55 AM
  • Eric,
    hi, thanks for replying.  What do u mean by "surround", do i put it on all page load functions? all CS functions?

    "Managed" to get 3 error messages on Fusion Logger after another try.  As follows, how to get these latest dlls? or go about resolving these? I try reinstalling .NET4 etc, it did not help. Could not get VS2010 DLLs on the net.

     

    *** Assembly Binder Log Entry (2/10/2011 @ 12:47:26 PM) ***
    
    The operation failed.
    Bind result: hr = 0x80131040. No description available.
    
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: User = JOHN-PC\xcube
    LOG: DisplayName = Microsoft.VisualStudio.Data.Interop, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
     (Fully-specified)
    LOG: Appbase = file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/
    LOG: Initial PrivatePath = C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\bin
    LOG: Dynamic Base = C:\Users\xcube\AppData\Local\Temp\Temporary ASP.NET Files\root\04356fe2
    LOG: Cache Base = C:\Users\xcube\AppData\Local\Temp\Temporary ASP.NET Files\root\04356fe2
    LOG: AppName = c714a474
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\web.config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///C:/Users/xcube/AppData/Local/Temp/Temporary ASP.NET Files/root/04356fe2/c714a474/Microsoft.VisualStudio.Data.Interop.DLL.
    LOG: Attempting download of new URL file:///C:/Users/xcube/AppData/Local/Temp/Temporary ASP.NET Files/root/04356fe2/c714a474/Microsoft.VisualStudio.Data.Interop/Microsoft.VisualStudio.Data.Interop.DLL.
    LOG: Attempting download of new URL file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/bin/Microsoft.VisualStudio.Data.Interop.DLL.
    LOG: Assembly download was successful. Attempting setup of file: C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\bin\Microsoft.VisualStudio.Data.Interop.dll
    LOG: Entering download cache setup phase.
    LOG: Assembly Name is: Microsoft.VisualStudio.Data.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    WRN: Comparing the assembly name resulted in the mismatch: Major Version
    ERR: The assembly reference did not match the assembly definition found.
    ERR: Setup failed with hr = 0x80131040.
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
    
    

    KennyTan
    Thursday, February 10, 2011 5:08 AM
  • *** Assembly Binder Log Entry (2/10/2011 @ 12:47:26 PM) ***
    
    The operation failed.
    Bind result: hr = 0x80131040. No description available.
    
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: User = JOHN-PC\xcube
    LOG: DisplayName = Microsoft.VisualStudio.DataTools.Interop, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
     (Fully-specified)
    LOG: Appbase = file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/
    LOG: Initial PrivatePath = C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\bin
    LOG: Dynamic Base = C:\Users\xcube\AppData\Local\Temp\Temporary ASP.NET Files\root\04356fe2
    LOG: Cache Base = C:\Users\xcube\AppData\Local\Temp\Temporary ASP.NET Files\root\04356fe2
    LOG: AppName = c714a474
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\web.config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: The same bind was seen before, and was failed with hr = 0x80131040.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80131040).
    
    

    KennyTan
    Thursday, February 10, 2011 5:08 AM
  • *** Assembly Binder Log Entry (2/10/2011 @ 12:47:19 PM) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.
    
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: User = JOHN-PC\xcube
    LOG: DisplayName = VJSharpCodeProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
     (Fully-specified)
    LOG: Appbase = file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/
    LOG: Initial PrivatePath = C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\bin
    LOG: Dynamic Base = C:\Users\xcube\AppData\Local\Temp\Temporary ASP.NET Files\root\04356fe2
    LOG: Cache Base = C:\Users\xcube\AppData\Local\Temp\Temporary ASP.NET Files\root\04356fe2
    LOG: AppName = c714a474
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\xcube\Documents\Visual Studio 2010\Projects\HealthCare\Number3\Number3\web.config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: VJSharpCodeProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///C:/Users/xcube/AppData/Local/Temp/Temporary ASP.NET Files/root/04356fe2/c714a474/VJSharpCodeProvider.DLL.
    LOG: Attempting download of new URL file:///C:/Users/xcube/AppData/Local/Temp/Temporary ASP.NET Files/root/04356fe2/c714a474/VJSharpCodeProvider/VJSharpCodeProvider.DLL.
    LOG: Attempting download of new URL file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/bin/VJSharpCodeProvider.DLL.
    LOG: Attempting download of new URL file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/bin/VJSharpCodeProvider/VJSharpCodeProvider.DLL.
    LOG: Attempting download of new URL file:///C:/Users/xcube/AppData/Local/Temp/Temporary ASP.NET Files/root/04356fe2/c714a474/VJSharpCodeProvider.EXE.
    LOG: Attempting download of new URL file:///C:/Users/xcube/AppData/Local/Temp/Temporary ASP.NET Files/root/04356fe2/c714a474/VJSharpCodeProvider/VJSharpCodeProvider.EXE.
    LOG: Attempting download of new URL file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/bin/VJSharpCodeProvider.EXE.
    LOG: Attempting download of new URL file:///C:/Users/xcube/Documents/Visual Studio 2010/Projects/HealthCare/Number3/Number3/bin/VJSharpCodeProvider/VJSharpCodeProvider.EXE.
    LOG: All probing URLs attempted and failed.
    
    

    KennyTan
    Thursday, February 10, 2011 5:08 AM
  •  

    > What do u mean by "surround", do i put it on all page load functions? all CS functions?

    No need, please check the stack trace, any of those method is called explicitly in your code? put the method to a try...catch block.

     

     The fusion log shows that following assemblies cannot be found:

     

    Microsoft.VisualStudio.Data.Interop.dll  (should be under "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE")

    Microsoft.VisualStudio.DataTools.Interop.dll (should be under "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE")

     

    If you cannot find those assemblies, you can install Visual Studio 2010 SDK, and retry, hope it can helps.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Edited by eryang Wednesday, February 16, 2011 2:14 AM
    Thursday, February 10, 2011 9:20 AM
  • Firstly, on Fusion Log, the Microsoft.VisualStudio.Data.Interop.dll, Microsoft.VisualStudio.DataTools.Interop.dll has been cleared(i.e.status shown as success on log).  Left with the last error, as shown above, i.e. VJSharpCodeProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.  

    How to access this code, and will this J# errror cause the failure in my web?

    Secondly, i have added the TRY and CATCH lines on those few CS code that i have.  The error still can not be captured, and the Intermittent problem is still there.

    Thanks.

     

     

     

     


     


    KennyTan
    Saturday, February 12, 2011 4:24 AM
  • After checking, confirm that code that trigger this are related (directly or indirectly) to EntityDataSource standard configuration.
    KennyTan
    Monday, February 14, 2011 12:58 PM
  • installed Visual Studio SDK, no more error at Fusion logger, but the INTERMITTENT problem is still there. Sigh!!!
    KennyTan
    Tuesday, February 15, 2011 1:20 PM
  • Kenny, could you please contact support at http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone?
    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 16, 2011 2:20 AM