This is a migrated thread and some comments may be shown as answers.

Error when activating (after using UriChanger)

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ed
Top achievements
Rank 1
Ed asked on 06 Nov 2013, 06:54 PM

Hello,

We installed TeamPulse, ran through the trial activation, and everything worked fine up until we used UriChanger to change the URL, Port, and HTTPS requirement. Once the config files were updated, we accessed the new URL and got the following error message:

An error occurred while processing your request

The log file shows:


2013-11-06 12:37:06,051 [52] ERROR TeamPulse.Client.Host.Global - TeamPulse.Client.Host.Global - Unhandled Exception.  System.Security.Cryptography.CryptographicException: Bad Data.

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)

   at System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)

   at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)

   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()

   at Telerik.Licensing.Utilities.Encryption.(String )

   at Telerik.Licensing.Utilities.Encryption.Decrypt(String data)

   at TeamPulse.Server.Licensing.Authorization.GetMachineID()

   at TeamPulse.Client.Host.Areas.Admin.ViewModels.ActivationViewModel.get_MachineID()

   at ASP._Page_Areas_Admin_Views_Activation_Index_cshtml.Execute() in c:\Program Files (x86)\Telerik\TeamPulse\wwwroot\Areas\Admin\Views\Activation\Index.cshtml:line 200

   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()

   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()

   at System.Web.WebPages.StartPage.RunPage()

   at System.Web.WebPages.StartPage.ExecutePageHierarchy()

   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)

   at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)

   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)

   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)

   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)

   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()

   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)

   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()

   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)

   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()

   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)

 

2013-11-06 12:37:06,196 [55] WARN  TeamPulse.Client.Host.Global - TeamPulse.Client.Host.Global - Page not found.  System.Web.HttpException (0x80004005): The controller for path '/Content/teampulse.css' could not be found or it does not implement IController.

   at TeamPulse.Client.Host.UnityControllerFactory.CreateController(RequestContext requestContext, String controllerName)

   at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)

   at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)

   at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)

   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Any ideas?

Thanks,

Ed


1 Answer, 1 is accepted

Sort by
0
Diana
Telerik team
answered on 07 Nov 2013, 01:39 PM
Hello,

 in the web.config we have a machine id value which is encrypted according machine configuration. It seems that the machine id value could not be decrypted right now. The UriChanger doesn't change this setting but anyway you could check the files before and after the tool changes wherer they have same value:
Open the files:
C:\Program Files (x86)\Telerik\TeamPulse\wwwroot\Web.config
and
 C:\Program Files (x86)\Telerik\TeamPulse\wwwroot\Web.config-OriginalCopy.back
Compare the values for:
<add key="MachineID" value="{machineidvalue}" />

If they are different copy the value from the .bak and update the web.config.

I hope that will help.
If you have any other questions do not hesitate to contact us again.


Regards,
Diana
Telerik
Tags
General Discussions
Asked by
Ed
Top achievements
Rank 1
Answers by
Diana
Telerik team
Share this question
or