It seems that the value of <input name='ufprt' type='hidden' .../> is encrypted different on the other server.
I understand that the 'ufprt' contains the routing (https://github.com/kgiszewski/LearnUmbraco7/blob/a97e85e5ad17e2ba9fc463f02c76885911046b57/Chapter%2006%20-%20Surface%2C%20WebAPI%20and%20RenderMVC%20Controllers/02%20-%20Surface%20Controllers.md#special-routing)
So how can I get the same ufprt value working on all environments?
Server Error in '/' Application.
Error occurred during a cryptographic operation.
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.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation.
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.
As the error suggests this related to forms authentication which is providing security measures to prevent things like man in the middle attacks when submitting form data. If you own both servers and consider each trusted to the other you could set the machine key in the web.config for both sites to the same value.
Specific form not working on different server ( cryptographic error)
I get this error(see below) after submitting a Umbraco.Forms specific form on a different server then where the form was origionally was created. ( see "Customizing for a specific form" on https://our.umbraco.org/projects/umbraco-pro/contour/documentation/developer/Custom-Markup/ )
It seems that the value of
<input name='ufprt' type='hidden' .../>
is encrypted different on the other server. I understand that the'ufprt
' contains the routing (https://github.com/kgiszewski/LearnUmbraco7/blob/a97e85e5ad17e2ba9fc463f02c76885911046b57/Chapter%2006%20-%20Surface%2C%20WebAPI%20and%20RenderMVC%20Controllers/02%20-%20Surface%20Controllers.md#special-routing)So how can I get the same ufprt value working on all environments?
Server Error in '/' Application.
Error occurred during a cryptographic operation.
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.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation.
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:
[CryptographicException: Error occurred during a cryptographic operation.] System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input) +246 System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) +386 Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value) +235 Umbraco.Web.Mvc.RenderRouteHandler.GetFormInfo(RequestContext requestContext) +555 Umbraco.Web.Mvc.RenderRouteHandler.GetHandlerForRoute(RequestContext requestContext, PublishedContentRequest publishedContentRequest) +71 System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +12411559 Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +571 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
As the error suggests this related to forms authentication which is providing security measures to prevent things like man in the middle attacks when submitting form data. If you own both servers and consider each trusted to the other you could set the machine key in the web.config for both sites to the same value.
is working on a reply...