Reference error on deployed site when RegisterSiteMapInformation

Topics: Web Client Software Factory
Mar 2, 2009 at 5:29 PM
We have a working site on our developer workstations but whn we try to deploy to the test environment we are getting a Reference error during the RegisterSiteMapInformation a shown: (we specialise our WebApplication fromthe WCSF's event broker WebClientApplication...Please help!

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 68:         ''' <param name="e">The <see cref="System.EventArgs" /> instance containing the event data.</param>
Line 69:         Protected Overrides Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Line 70: MyBase.Application_Start(sender, e)Line 71: 
Line 72:             'Create a simple boolean lock for access to the single threaded ERDM

Source File: C:\Inetpub\wwwroot\App_Code\WebApplication.vb    Line: 70

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   CIRMT.Shell.ShellModuleInitializer.RegisterSiteMapInformation(ISiteMapBuilderService siteMapBuilderService) +68
   CIRMT.Shell.ShellModuleInitializer.Load(CompositionContainer container) +208
   Microsoft.Practices.CompositeWeb.Services.ModuleLoaderService.Load(CompositionContainer rootContainer, IModuleInfo[] modulesInfo) +453

[ModuleLoadException: Failed to load module from assembly Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Error was:
Failed to load module from assembly Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Error was:
Object reference not set to an instance of an object.]
   Microsoft.Practices.CompositeWeb.Services.ModuleLoaderService.ThrowModuleLoadException(Exception innerException, Assembly assembly) +202
   Microsoft.Practices.CompositeWeb.Services.ModuleLoaderService.Load(CompositionContainer rootContainer, IModuleInfo[] modulesInfo) +476
   Microsoft.Practices.CompositeWeb.WebClientApplication.LoadModules() +209
   Microsoft.Practices.CompositeWeb.WebClientApplication.Application_Start(Object sender, EventArgs e) +125
   Website.MACCSWebApplication.Application_Start(Object sender, EventArgs e) in C:\Inetpub\wwwroot\App_Code\WebApplication.vb:70


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Mar 9, 2009 at 4:52 PM

Hi,

Were you able to solve this problem? Perhaps, you may have forgotten  to copy a required assembly of your application to the test environment. You can try checking if you have all the required assemblies in the Bin folder or in the GAC (Global Assembly Cache) in the new location where you are installing the application to test it.

 

Please, let me know if this helps or provide more information if the problem persists. This way, we can get more context and try to help you to solve this. If you could explain the RegisterSiteMapInformation method functionality, it will be useful for us to research and find the problem.

 

Ezequiel Sculli

http://blogs.southworks.net/esculli/