IsNewSession problem

gabbri
Member Posts: 6
SYSTEM:
WINDOWS SERVER 2003 R2
DYNAMICS NAV 4.0 SP3
DYNAMICS NAV EMPLOYEE PORTAL 5.0
WINDOWS SHAREPOINT SERVICES 3
SYMPTOMS:
When I click on Save, Create New or Delete from Customer Card Web Part (installed with Employee Portal)
ERROR:
[SecurityException: Session timeout occured. Please reopen the current page to proceed.]
Microsoft.Navision.EmployeePortal.WebPartLibrary.DetailPart.Action_Command(Object o, CommandEventArgs e) +2778
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +105
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +132
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP._catalogs_masterpage_defaultlayout_aspx.ProcessRequest(HttpContext context) +4
Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context) +153
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
CODE:
public sealed class DetailPart : BasePart
…
internal override void Action_Command(object o, CommandEventArgs e)
…
if (this.Context.Session.IsNewSession)
{
throw new SecurityException(ErrorLibrary.GetError(ErrorNumber.UpdateSessionTimeout, false));
}
…
We have some problem with IsNewSession: is always true.
Any idea?
WINDOWS SERVER 2003 R2
DYNAMICS NAV 4.0 SP3
DYNAMICS NAV EMPLOYEE PORTAL 5.0
WINDOWS SHAREPOINT SERVICES 3
SYMPTOMS:
When I click on Save, Create New or Delete from Customer Card Web Part (installed with Employee Portal)
ERROR:
[SecurityException: Session timeout occured. Please reopen the current page to proceed.]
Microsoft.Navision.EmployeePortal.WebPartLibrary.DetailPart.Action_Command(Object o, CommandEventArgs e) +2778
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +105
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +132
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP._catalogs_masterpage_defaultlayout_aspx.ProcessRequest(HttpContext context) +4
Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context) +153
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
CODE:
public sealed class DetailPart : BasePart
…
internal override void Action_Command(object o, CommandEventArgs e)
…
if (this.Context.Session.IsNewSession)
{
throw new SecurityException(ErrorLibrary.GetError(ErrorNumber.UpdateSessionTimeout, false));
}
…
We have some problem with IsNewSession: is always true.
Any idea?
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions