Asp.net application hosted inside SharePoint environment
Hi, I have a asp.net website deployed inside _vit_bin folder of SharePoint 2007. It works normally good. I want to access the website with different URL. So I added host entry in IIS. It works good in my local VM but in production I was running with issue Server Error in '/_vti_bin/Enfatico/UserManagement' 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: 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: [NullReferenceException: Object reference not set to an instance of an object.] Microsoft.Office.Server.Administration.SqlSessionStateResolver.System.Web.IPartitionResolver.ResolvePartition(Object key) +135 System.Web.PartitionManager.GetPartition(IPartitionResolver partitionResolver, String id) +853 System.Web.SessionState.SqlSessionStateStore.GetConnection(String id, Boolean& usePooling) +68 System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +207 System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +775 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 I google the error, some suggest to add following entry to web.config <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" partitionResolverType="" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="true" timeout="20"/> After adding this, crashing issue resolved. The new problem is some extra weired string appending in url Original URL: https://um.com/_vti_bin/company/um/newuserstep1.aspx Current URL: https://um.com/_vti_bin/company/(some unexpected hasvalue)um/newuserstep1.aspx Thanks S.M. Rabiul Islam
June 23rd, 2011 2:24pm

Hi, According to your description, can you make sure that session is enabled from SSP. I have found a good KB link about Enable Session State in SharePoint 2007, please refer to: http://vspug.com/erickraus/2007/12/09/enable-session-state-in-sharepoint-2007/ I hope it can help you a little. Best Regards David Hu
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2011 9:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics