Upgrade to 6 causes undefined pop up and can't publish/d

Posted by Community Admin on 04-Aug-2018 15:49

Upgrade to 6 causes undefined pop up and can't publish/delete pages

All Replies

Posted by Community Admin on 22-May-2013 00:00

I upgraded from 5.4 to 6. When I open a page to edit I get an undefined pop up. I can't publish. I can't delete a page. 

ISSUE ONE

The error I received from the browser was: 
Failed to load resource: the server responded with a status of 500 (Failed to create a 'Settings' from the text 'Assembly references and imported namespaces serialized as XML namespaces'.)
http://[---my site---]/Sitefinity/Services/Workflow/WorkflowService.svc/bfb4440a-0a31-4235-8bb6-adc2c392f5fd/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&unv_tstmp_prm=1369235641608

The error from the log:
Timestamp: 5/22/2013 3:42:52 PM

Message: HandlingInstanceID: c7212baf-9d1c-4027-ae7b-5df58dcefa86
An exception of type 'System.Xaml.XamlObjectWriterException' occurred and was caught.
-------------------------------------------------------------------------------------
05/22/2013 10:42:52
Type : System.Xaml.XamlObjectWriterException, System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Failed to create a 'Settings' from the text 'Assembly references and imported namespaces serialized as XML namespaces'.
Source : System.Xaml
Help link : 
LineNumber : 0
LinePosition : 0
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Object Logic_CreateFromValue(MS.Internal.Xaml.Context.ObjectWriterContext, System.Xaml.Schema.XamlValueConverter`1[System.ComponentModel.TypeConverter], System.Object, System.Xaml.XamlMember, System.String, MS.Internal.Xaml.Runtime.IAddLineInfo)
Stack Trace :    at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter`1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)
   at System.Xaml.XamlObjectWriter.Logic_CreatePropertyValueFromValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndMember()
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Xaml.XamlServices.Load(XamlReader xamlReader)
   at System.Xaml.XamlServices.Load(Stream stream)
   at Telerik.Sitefinity.Workflow.WorkflowManager.LoadContentApprovalWorkflow(String workflowServiceVirtualPath)
   at Telerik.Sitefinity.Workflow.WorkflowManager.GetContentServiceFlowchartInspector(Type type)
   at Telerik.Sitefinity.Workflow.WorkflowManager.GetCurrentDecisions(String itemId, Type itemType, String providerName, CultureInfo itemStatusCulture)
   at Telerik.Sitefinity.Workflow.Services.WorkflowService.GetWorkflowVisualElementsInternal(String itemType, String providerName, String itemId, String itemCulture)
   at Telerik.Sitefinity.Workflow.Services.WorkflowService.GetWorkflowVisualElements(String itemType, String providerName, String itemId, String itemCulture)
   at SyncInvokeGetWorkflowVisualElements(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Additional Info:

MachineName : FISDWEB1
TimeStamp : 5/22/2013 3:42:52 PM
FullName : Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/715259039/Root-1-130137083368551103
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : http://[---my site---]/Sitefinity/Services/Workflow/WorkflowService.svc/cebc8f61-b326-4520-9dce-6f7a7e01478a/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&unv_tstmp_prm=1369237377608
Inner Exception
---------------
Type : System.IO.FileLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Source : mscorlib
Help link : 
FileName : System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes
FusionLog : WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Data : System.Collections.ListDictionaryInternal
TargetSite : Void ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
Stack Trace :    at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
  at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
  at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
  at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
  at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
  at System.Reflection.CustomAttribute.IsDefined(RuntimeAssembly assembly, RuntimeType caType)
  at System.Reflection.RuntimeAssembly.IsDefined(Type attributeType, Boolean inherit)
  at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicExpressionConverter.AssemblyCache.EnsureInitialized()
  at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicExpressionConverter.CollectXmlNamespacesAndAssemblies(ITypeDescriptorContext context)
  at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicSettingsConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateObjectWithTypeConverter(ServiceProviderContext serviceContext, XamlValueConverter`1 ts, Object value)
  at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter`1 ts, Object value, XamlMember property)
  at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter`1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)



Category: ErrorLog

Priority: 0

EventId: 90000

Severity: Error

Title:Enterprise Library Exception Handling

Machine: FISDWEB1

App Domain: /LM/W3SVC/715259039/Root-1-130137083368551103

ProcessId: 2800

Process Name: c:\windows\system32\inetsrv\w3wp.exe

Thread Name: 

Win32 ThreadId:3492

Extended Properties: 
----------------------------------------

ISSUE TWO

If I try to publish a draft or delete a page from the "Pages" home page I get a pop up that says:

0 item(s) are successfully deleted. 1 item(s) cannot be deleted (see below).

Page [page name]: The requested service, 'http://[---my site---]/DefaultWorkflows/PagesApprovalWorkflow.xamlx' could not be activated. See the servers diagnostic trace logs for more information.

From the error log when I tried to delete from the "Pages" page:

05/22/2013 10:27:11
Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : 0 item(s) are successfully deleted. 1 item(s) cannot be deleted (see below).

Page News & Announcements: The requested service, 'http://[---my site---]/DefaultWorkflows/PagesApprovalWorkflow.xamlx' could not be activated. See the server's diagnostic trace logs for more information.
Source : Telerik.Sitefinity
Help link : 
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowAccumulatedError(Int32, System.String, System.String, System.String)
Stack Trace :    at Telerik.Sitefinity.Workflow.WorkflowBatchExceptionHandler.ThrowAccumulatedError(Int32 proccessItemsCount, String operationName, String singularItemTypeName, String pluralItemTypeName)
   at Telerik.Sitefinity.Workflow.WorkflowBatchExceptionHandler.ThrowAccumulatedErrorForPages(Int32 proccessItemsCount, String operationName)
   at Telerik.Sitefinity.Modules.Pages.Web.Services.PagesService.CallWorkflowBatch(String[] pageIDs, String operationName, String providerName, String deletedLanguage)
   at Telerik.Sitefinity.Modules.Pages.Web.Services.PagesService.BatchDeleteContent(String[] Ids, String providerName, String deletedLanguage)
   at SyncInvokeBatchDeleteContent(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Additional Info:

MachineName : FISDWEB1
TimeStamp : 5/22/2013 3:27:11 PM
FullName : Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/715259039/Root-1-130137083368551103
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : http://[---my site---]/Sitefinity/Services/Pages/PagesService.svc/batch/?root=f669d9a7-009d-4d83-ddaa-000000000002&managerType=&providerName=&itemType=Telerik.Sitefinity.Pages.Model.PageNode&hierarchyMode=true&provider=


Category: ErrorLog

Priority: 0

EventId: 90000

Severity: Error

Title:Enterprise Library Exception Handling

Machine: FISDWEB1

App Domain: /LM/W3SVC/715259039/Root-1-130137083368551103

ProcessId: 2800

Process Name: c:\windows\system32\inetsrv\w3wp.exe

Thread Name: 

Win32 ThreadId:3248

Extended Properties: 
----------------------------------------




Please help.

Thanks

Posted by Community Admin on 23-May-2013 00:00

I created a brand new 6.0.4200.0 project from scratch. Just finished the install. The first thing I do is create a page. I received the same errors/issues as I did on the upgrade project. Can't publish/delete a page. So this probably means that there may be a server configuration issue. Did I miss some instructions somewhere on any changes with 6.0?

Posted by Community Admin on 23-May-2013 00:00

Dear Jaime

Is the new project on the same envirement as older projects you created?

Make sure you have followed this: www.sitefinity.com/.../configuring-the-iis-to-host-sitefinity-projects

Last project I deployed was on a new 2012 IIS 7.5 server and I forgot to make the needed changes.

Markus

Posted by Community Admin on 23-May-2013 00:00

Both projects are in the same environment. I have followed the IIS steps to host Sitefinity. Sitefinity has been working properly on the original project with 5.2 and 5.4. 6.0 doesn't work now.

Posted by Community Admin on 27-May-2013 00:00

Hi Jaime,

 The problem is most probably related to the your service endpoints not being found. In order to fix this, you should go to your backend and set the WorkflowBaseUrl property. 
Here's a blogpost that explains the issue and guides through the possible fix:
http://www.sitefinity.com/developer-network/knowledge-base/pages-cannot-be-published-after-installation

Regards,
Svetoslav Petsov
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 31-May-2013 00:00

Svetoslav,

This didn't fix my issue. 

Jaime

Posted by Community Admin on 03-Jun-2013 00:00

Hi Jaime,

 I responded to you in your support ticket. We will probably need your project to determine the exact issue.

Regards,
Svetoslav Petsov
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 06-Jun-2013 00:00

I'm actually seeing the same error after upgrading to 6.x as well; I happened across this thread in my search for assistance.  If there is a generalized solution for this it would be great if it were posted to the thread.  Thanks!

Posted by Community Admin on 07-Jun-2013 00:00

Hi Christopher,

 The problem comes from the Telerik.Everlive.Sdk.dll and could be easily fixed by just deleting the .dll and disabling the EverliveConnector if you are not using it. Another fix is an upgrade of your .Net framework to 4.0.3.

Regards,
Svetoslav Petsov
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 07-Aug-2013 00:00

The solution Svetoslav suggested did not work for me (deleting the dll and disabling EverliveConnector), so this is now under investigation by Support. Is there anyone who managed to fix this issue? 

Posted by Community Admin on 28-Oct-2013 00:00

I am having what seems to be the same issue.  I have taken some snapshots of the errors as well. I just upgraded my local project to 6.2.4900 and I can not publish products programmatically or through the backend and I get Undefined alert windows pop up when I go to create a product in backend.

My Symptoms:
-In the Backend, when I click "Create Product" it takes me to the create product page although the "More Options" drop down does not work and two little "Undefined" alert windows pop up. I attached a snapshot.
-In the backend, when I click "Publish" on products that have been drafted I get a error messages that I have taken a snapshot of and attached to this post.
-When I programmatically attempt to "Publish" a product It fails on this line of code:

WorkflowManager.MessageWorkflow(p.Id, p.GetType(), "OpenAccessDataProvider", workflowOperation, false, contextBag);


When the program fails on that line of code I get a generic message stating something like: "The remote host forcibly closed connection"

I will most likely throw a support ticket in on this but I thought it was good for people to see the resolve here as well. This thread must be related to these problems I am having.

If anyone has any answers let me know. Things I have tried: I have deleted my "Telerik.Everlive.Sdk.dll". I have also tried to add the workflowbaseUrl to local host but I think this solution is more relevant to published sites. Mine is still local for now.

Thanks,
James

Posted by Community Admin on 31-Oct-2013 00:00

Just FYI,
I was developing my first Sitefinity site on dev. environment and it worked fine.
After deploying it onto production device, I've got this issue (WorkflowService.svc has 500 error and got undefined popup on client side); and Svetoslav's solution here www.sitefinity.com/.../Tt9mYwGWOU-HEUxAt9sNSw solved the problem.

Thanks.

Posted by Community Admin on 31-Oct-2013 00:00

Hi all,

 @James

I am transferring the response from the support ticket for all to view:
"Please try the following code in order to create an eCommerce product:"

CatalogManager manager = CatalogManager.GetManager();
           EcommerceManager ecommerceManager = EcommerceManager.GetManager();
 
           ProductType productType = ecommerceManager.GetProductTypes().Where(t => t.Title =="Book").SingleOrDefault();
 
 
           Product product = manager.CreateProduct(productType.ClrType);
           product.ClrType = productType.ClrType;
 
           product.Title = "Title";
           product.AssociateBuyerWithRole = Guid.Empty;
           product.DateCreated = DateTime.Now;
           product.Price = 12;
 
           product.SalePrice = 4;
           product.Sku = "6";
           product.UrlName = Regex.Replace("Title".ToLower(), @"[^\w\-\!\$\'\(\)\=\@\d_]+""-");
           product.Visible = true;
           product.Weight = 89;
 
           product.Status = ContentLifecycleStatus.Master;
 
           manager.Provider.RecompileItemUrls(product);
           manager.SaveChanges();
 
           manager.Lifecycle.Publish(product);
           manager.SaveChanges();
Regards,
Ivan D. Dimitrov
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 14-Mar-2014 00:00

Hi Ivan

I'm having the same problem but am on standard edition of Sitefinity. Since the  standard edition does not support the e-commerce module, can you please give an alternative API code that can fix the problem?

 Thanks

Posted by Community Admin on 17-Mar-2014 00:00

Hi all,

@Yosief,

The nature of this problem is highly project specific, meaning that what worked for James will not necessarily work for your particular case. Your issue is currently being addressed in your Support ticket. Please expect a solution there and feel free to share it with the rest.

Regards,
Ivan D. Dimitrov
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 19-Mar-2014 00:00

Hi Ivan

There was a custom-developed Sitefinity module that was de-actiavted. The module was built using an old version of the SDK (5.4). Sitefinity was not happy with the module’s dll sitting in the bin folder. After I removed the dll, I can publish pages.

Thanks a lot for the help.

This thread is closed