I have some working code that makes use of the System.Web.Security.Roles.Provider that requires me to enable the role provider in web.config.
I have configured the role provider thusly:
In my VS 2010 test project, I created a simple TestPage.aspx page with the following single statement in the Page_Load method:
I make this page my default start page for the project and run it. The following exception occurs before Page_Load even executes:
Type 'Telerik.Sitefinity.Security.SitefinityIdentity' in assembly 'Telerik.Sitefinity, Version=4.0.992.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' is not marked as serializable.
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.Runtime.Serialization.SerializationException: Type 'Telerik.Sitefinity.Security.SitefinityIdentity' in assembly 'Telerik.Sitefinity, Version=4.0.992.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' is not marked as serializable.
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:
[SerializationException: Type 'Telerik.Sitefinity.Security.SitefinityIdentity' in assembly 'Telerik.Sitefinity, Version=4.0.992.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' is not marked as serializable.]
Microsoft.VisualStudio.WebHost.Connection.get_LocalIP() +0
Microsoft.VisualStudio.WebHost.Request.GetLocalAddress() +65
Microsoft.VisualStudio.WebHost.Request.GetServerName() +38
System.Web.HttpRequest.get_Url() +140
System.Web.HttpRequestWrapper.get_Url() +11
System.Web.UI.ControlExtensions.IsBackend(Control control) +252
System.Web.UI.ControlExtensions.IsBackend() +25
Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase httpContext) +504
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +285
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
|