.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SPWeb error on navigation configuration

Posted By:      Posted Date: October 24, 2010    Points: 0   Category :SharePoint
    Hi. I have a problem regarding the SPWeb error ("Trying to use an SPWeb object that has been closed or disposed and is no longer valid"). I am a site administrator, and we keep gettin that problem on a few sites. After doing some research on the net, they recommend everywhere to not dispose the SPWeb object, but we haven't made no code modifications, so we still have no clue as why this is happening.

    We get the error when trying to access to the AllItems page of a list or document library. We noticed that this only happens when you select 'show navigation under current site' on Site Configuration > Exploration, and there are no other sites created under the current one. Then, if you clic on some list on the 'All Site Content' page, it shows the SPWeb error message.
    The easiest way to solve this was to create empty sites under the ones on which we wanted to choose that navigation configuration, and then hide them. It seems like having a site under itself helps to recover the reference to the SPWeb object.
    I don't know if this is a bug, the masterpage or site templates are corrupted, or maybe it's just like this, and Sharepoint doesn't allows you to choose 'show navigation under current site' when there are no subsites under this one.


View Complete Post

More Related Resource Links

Weird security configuration error message


Recently something has gone wrong with our website so that whenever you try to access an aspx file, it shows the following error:


Server Error in '/RALSWeb' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'RalsWeb'.

Source Error:

Line 256:                <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257:                <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258:                <add assembly="*"/>
Line 259:            </assemblies>

Error with ASP.NET Configuration Tool


I'm trying to make an MVC 2 site, and I've run into a bit of a snag.  I want to add user roles to my system via the configuration tool, but every time I click the Security tab I get the following error:

"There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Could not load type 'HandiGamer.MvcApplication'."

When I click on the 'Choose Data Store' button, it tells me I'm already using AspNetSqlProvider.

I have a .mdf file for the rest of the site's db, but didn't make any tables for membership as I thought all of that would be handled by the configuration tool.

Am I missing a step?

MOSS 2007 configuration error


Hi Experts,

I installed sharepoint 2007 successfully but while configure the sharepoint it gives following error:

The following services may have to be started or reset during configuration:

1. internet Information services

2.Sharepoint Adminstration services

3.Sharepoint Timer service

But already run ISS in my server. how can i solve this problem

Error in Step 8 of Share point configuration wizard

HI Team,        I am getting an error in step 8 of Share point Configuration wizard, Its running for ever its running in the step 8 for ever later i need to kill the configuration wizard Please advise Thanks Kumar

Error "Object reference not set" when I try to set a Navigation Property

I'm using Entity Framework. The following code throws a runtime error "System.NullReferenceException: Object reference not set to an instance of an object." The line before the error, it looks like newControl is in fact instantiated.My model has a Control entity and a ControlType entity. Control includes the Navigation Property "ControlType." I'm trying to set ControlType.Type = 2.SurveyFormControlsModel.Control newControl = new SurveyFormControlsModel.Control(); newControl = CreateControl(childTokenName, ControlTypeEnum.TextBox); newControl.ControlType.Type = 2; // <<--ERROR HERE context.Controls.AddObject(newControl);                                SurveyFormControlsModel.Control newControl = new SurveyFormControlsModel.Control();                                 if (listItems.Count == 0)                                 {                                     newControl = CreateControl(childTokenName, ControlTypeEnum.TextBox);                    &

Sharepoint 2010 COnfiguration Wizard Error Step 3 of 10

I am trying to install Sharepoint 2010 on a Windows 2008 R2 Hyper V Instance.  The database is SQL Server 2008 R2.  All them are RTM I am getting this error Failed to Create the configuration Database An exception of type Syste.InvalidCastException was thrown.  Additional exception information: Unable to cast object of type "Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection' to type "Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection' to diagnose the problem, review the logs at so after reviewing the logs this is what I find Resource retrieved id PostSetupConfigurationFailedEventLog is Configuration of SharePoint Products failed.   This is the error from the event logs Log Name:      Application Source:        SharePoint 2010 Products Configuration Wizard Date:          4/26/2010 11:30:09 PM Event ID:      104 Task Category: None Level:         Error Keywords:      Classic User:          N/A Computer:      jedicouncil.endor.local Description: Failed to create the configuration database. An exception of type System.InvalidCastException was thrown. 

when used with other Tags gives Error in Configuration

Hi,I am using appsettings to store some key-value pairs to be used in my application.I am also using log4net, a logging ToolHence for log4net to work i need to add below tag into the app.config file along with <appSettings>. <?   xml version="1.0" encoding="utf-8" ?><configuration><appSettings><add key="path" value="C:\\localhost.txt"/></appSettings><log4net><appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"><file value="C:\temp\calleguas\DataUpdateLogger.log" /><appendToFile value="true" /><rollingStyle value="Size" /><maxSizeRollBackups value="10" /><maximumFileSize value="1000KB" /><staticLogFileName value="true" /><layout type="log4net.Layout.PatternLayout"><param name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss} %-5p - %m%n" /></layout></appender><root><level value="Error" />Use Info value for any debugging purpose only<appender-ref ref="RollingFileAppender" /><appender-ref ref="ColoredConsoleAppender" /></root></log4net></configuration>When i remove the log4net tag then only the appSetting values can be retrie

Error in step 5 - Sharepoint 2010 Configuration Wizard

I can't proced througt the step 5 of the configuration wiz.I have installed in a VM.Please, i need some help.. The error: After installing the Sharepoint Search Server in the wizard. Gives the following exception. Failed to register SharePoint services. An exception of type System.ServiceProcess.TimeoutException was thrown. Additional exception information: Time out has expired and the operation has not been completed. System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed. at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout) at Microsoft.SharePoint.Win32.SPAdvApi32.StartService(String strServiceName) at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Start() at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Provision(Boolean start) at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Provision() at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInstanceInConfigDB(Boolean provisionTheServiceInstanceToo, String serviceInstanceRegistryKeyName, Object sharepointServiceObject) at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInstances(Boolean provisionTheServiceInstancesToo, String serviceRegistryKeyName, Object sharepointServiceObject) at Microsoft.SharePoint.PostSetupConfiguration

SMS reporting server configuration error: The MemoryLimit Element is not a configuration file elemen

Attempting to configure reporting services for SCCM 2007 SP2 R2. Installed SQL Standard 2008 reporting services. Attempting to configure reporting services, but service will not start w/ error: System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.    at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)    at ReportServicesConfigUI.Panels.ServerInformationPanel.StartStopServiceTask(Boolean start) Digging into Reporting Services logs reveals: rshost!rshost!1900!09/08/2010-14:50:25:: i INFO: CLR runtime is initialized. rshost!rshost!1900!09/08/2010-14:50:25:: i INFO: Derived memory configuration based on physical memory as 16775112 KB appdomainmanager!DefaultDomain!1b54!09/08/2010-14:50:25:: i INFO: Entered managed ServiceMain in DefaultDomain. configmanager!DefaultDomain!5ac!09/08/2010-14:50:26:: e ERROR: Error loading configuration file: The configuration file contains an element that is not valid. The MemoryLimit element is not a configuration file element. library!DefaultDomain!5ac!09/08/2010-14:50:26:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: , Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.&nb

Export-SPWeb "cannot find spweb object with id or url" error

How do we just export and import a library or a list using Export-SPWeb and Import-SPWeb? I tried exporting just a library with Export-SPWeb, but it throws an error : Could not find an SpWeb Object with Id or URL “http://<server:port>/Shared Documents”. The same thing goes for a simple list like Tasks: "http://<server:port>/Lists/Tasks". Any help would be much appreciated

Error configuration Wizard WSS3 "The Language is not supported on teh server"

The following error happens during step 2 of the Configuration Wizard.

****** Error MSG from log******
  Task configdb has failed with an unknown exception
Exception: Microsoft.SharePoint.SPException: The language is not supported on the server. ---> System.Runtime.InteropServices.COMException (0x8102005E): The language is not supported on the server.


If I start the Wizard again I now get:
Exception: System.InvalidOperationException: Windows SharePoint Services configuration infrastructure is not initialized.  You must wait until completion before joining another server to the farm.

If I delete the databases and start again I get the first error msg again. 
I have uninstalled and reinstalled WSS3  SP2 numerous times.
The DBServer is the same machine.

TFS 2010 RC is also running on this server.

Any suggestions or help would be appreciated.

Error when running configuration wizard for sharepoint 2007 on windows 2008 r2

I am trying to install sharepoint 2007 on windows 2008 r2,the setup file ran ok but when I ran the configuration wizard I received this error "Failed to start the database service MSSQL$OfficeServers. Repair this product
by selecting it from the Add/Remove Programs menu."

Error tab displayed in top link bar navigation after deleting a subsite: An error ocurred while rend


In my site definition (root web site) I have set the publishingWeb.Navigation.GlobalSubSite =  true and I have activated following site collection features:

  • SharePoint Server Publishing Infrastructure
  • SharePoint Server Standard Site Collection features

Also I have activated following web site features:

  • SharePoint Server Publishing
  • SharePoint Server Standard Site features

The top link navigation bar is being displayed and all subsites are being correctly displayed.

After the deletion of a subsite the top level web site is being displayed and in the top link navigation bar the link to the deleted site is still present!!. If I refresh the page the first time I get an 'Error' tab and if I refresh a second time this 'Error' tab is gone.

When the 'Error' tab is displayed I'm able to see part of the error message when the mouse is over the tab:

"An error ocurred while rendering navigation for requested URL: /. Exception message: Object reference not set to an instance of an object. Stack trace: at Microsoft.SharePoint.Publishing.Navigation.PortalWebSiteMapNode.get_IsVisible() at  Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode.GetNavigationChildren(...." 

Any ideas o

Could not generate configuration file error



I am trying to create an xml configuration file for a very simple SSIS package, but I get an error "Could not generate configuration file."

While creating the config file using the Package configuration wizard, I do get an error saying "The properties tree could not be initialized" for one of the steps. I am sure this is somehow related to not being able to create the config file. The package was created on test server 01 and then copied to test server 02. When trying to create a new configuration file, I am getting this above error. I searched others who had similar questions. I am not using any user variables that store objects either. I am just storing the connection strings in the xml file.

Can someone please help?

Thank you


Technical Details


Could not complete wizard actions. (Microsoft Visual Studio)


Could not generate the configuration file. (Microsoft.DataTransformationServices.Wizards)

For help, click:

Error configuring Claims configuration SharePoint 2010


Hi All,


I am facing a problem configuring Claims Based authentication for a SharePoint application. The users access the application from a domain other that where the SharePoint is installed. The SharePoint server is in Domain A and the users are from Domain B. I am using ADFS 2.0 for user authentication. The claim rules i have configured in ADFS2.0 are as below


1.       Domain A


SharePoint Navigation Null Error


We are getting a strange error in our Navigation settings:

09/27/2010 16:26:58.95 	w3wp.exe (0x12F8)            	0x17EC	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Name=Request (GET:http://SERVER:80/Corporate/IT/_layouts/AreaNavigationSettings.aspx)	33c30f96-011f-4655-9713-27396efd79ab
09/27/2010 16:26:59.02 	w3wp.exe (0x12F8)            	0x17EC	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Site=/	33c30f96-011f-4655-9713-27396efd79ab
09/27/2010 16:26:59.20 	w3wp.exe (0x12F8)            	0x17EC	Web Content Management    	Publishing          	ck1b	Medium 	Populating navigation children for web: /CORPORATE/IT	33c30f96-011f-4655-9713-27396efd79ab
09/27/2010 16:26:59.20 	w3wp.exe (0x12F8)            	0x17EC	SharePoint Foundation     	SPRequest           	8e3n	Medium 	token timestamp is in the future. probably machine clock out of sync	33c30f96-011f-4655-9713-27396efd79ab
09/27/2010 16:26:59.20 	w3wp.exe (0x12F8)            	0x17EC	SharePoint Foundation     	General            	8e2s	Medium 	Unknown SPRequest error occurred. More information: 0x80090317	33c30f96-011f-4655-9713-27396efd79ab
09/27/2010 16:26:59.20 	w3wp.exe (0x12F8)            	0x17EC	SharePoint Foundation     	Runtime            	tkau	Unexpected	System.NullReferenceException: Object reference not set to an instance of an object.  at Microsoft.SharePoint.Pu

SharePoint Error on Configuration - Server execution failed



I'm installing a fresh copy of SharePoint 2010 Standard on a fresh install of Win Server 2008 R2.  I have 8 GB of ram installed on the server.  I run the SharePoint 2010 Products Configuration Wizard and on Step 10 of 10 it fails with the following error:


09/28/2010 15:01:49  14  ERR                               

An exception of type System.ServiceProcess.TimeoutException was thrown.  Additional exception information: System error.
System.ServiceProcess.TimeoutException: System error.
   at Microsoft.SharePoint.PostSetupConfiguration.Common.RunCommand(String commandToRun, String args, Int32 maxMillisecondsWait, Int32& commandReturnCode)
   at Microsoft.SharePoint.PostSetupConfiguration.Common.TryToRestartIIS()
09/28/2010 15:01:49  14  WRN                                Failed to run iisreset with return code -1.  We will just eat this for now and see if we can start W3SVC

09/28/2010 15:03:04  14  ERR   

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend