Blog » SolidCP » SolidCP Error in Web Sites section after Windows updates

SolidCP Error in Web Sites section after Windows updates

After recent Microsoft .Net update, you may no longer able to access “Web sites” in your SolidCP. Accessing to Web sites section, you may receive the following error:

System.InvalidOperationException: There is an error in the XML document. —> System.InvalidOperationException: Type ‘SolidCP.Providers.ResultObjects.HeliconApeStatus, SolidCP.Providers.Base, Version=1.4.6.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081’ is not allowed here. See https://go.microsoft.com/fwlink/?linkid=2132227 for more information.
at System.Data.TypeLimiter.EnsureTypeIsAllowed(Type type, TypeLimiter capturedLimiter)
at System.Data.DataColumn.UpdateColumnType(Type type, StorageType typeCode)
at System.Data.DataColumn.set_DataType(Type value)
at System.Data.XSDSchema.SetProperties(Object instance, XmlAttribute[] attrs)
at System.Data.XSDSchema.HandleElementColumn(XmlSchemaElement elem, DataTable table, Boolean isBase)
at System.Data.XSDSchema.HandleParticle(XmlSchemaParticle pt, DataTable table, ArrayList tableChildren, Boolean isBase)
at System.Data.XSDSchema.HandleComplexType(XmlSchemaComplexType ct, DataTable table, ArrayList tableChildren, Boolean isNillable)
at System.Data.XSDSchema.InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, Boolean isRef)
at System.Data.XSDSchema.HandleTable(XmlSchemaElement node)
at System.Data.XSDSchema.HandleDataSet(XmlSchemaElement node, Boolean isNewDataSet)
at System.Data.XSDSchema.LoadSchema(XmlSchemaSet schemaSet, DataSet ds)
at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)
at System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderesPackages.Read112_Item()
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
— End of inner exception stack trace —
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.EnterpriseServer.esPackages.GetRawPackageItemsPaged(Int32 packageId, String groupName, String typeName, Int32 serverId, Boolean recursive, String filterColumn, String filterValue, String sortColumn, Int32 startRow, Int32 maximumRows)
at SolidCP.Portal.ServiceItemsHelper.GetServiceItemsPaged(Int32 packageId, String groupName, String typeName, Int32 serverId, Boolean recursive, String filterColumn, String filterValue, Int32 maximumRows, Int32 startRowIndex, String sortColumn)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
SolidCP Error in Web Sites section

The root cause of the above error is recent Windows .Net update. As per SolidCP community, this should be fixed in their upcoming release SolidCP 1.4.7 but there is a workaround available to resolve this.

Workarounds

There is a quick fix for this issue as follow:

[1] First take a backup of the SolidCP Portal web.config.

[2] Open SolidCP portal web.config in text editor like notepad++ or any other text editor.

[3] Next up look for the section: 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="bundleTransformer">
<section name="core" type="BundleTransformer.Core.Configuration.CoreSettings, BundleTransformer.Core" />
<section name="less" type="BundleTransformer.Less.Configuration.LessSettings, BundleTransformer.Less" />
</sectionGroup>

Add the following after:

<sectionGroup name="system.data.dataset.serialization" type="System.Data.SerializationSettingsSectionGroup, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="allowedTypes" type="System.Data.AllowedTypesSectionHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>

Now search for the follow: 

</configSections>

Add the following:

<system.data.dataset.serialization>
<allowedTypes>
<add type="SolidCP.Providers.ResultObjects.HeliconApeStatus, SolidCP.Providers.Base, Version=1.4.6.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081" />
</allowedTypes>
</system.data.dataset.serialization>

In the above code, there is important note. If you are using different SolidCP version then 1.4.6, make sure that you update the value for “Version=1.4.6.0” in the above code.

4 thoughts on “SolidCP Error in Web Sites section after Windows updates”

  1. Thanks for providing quick fix. I had similar issue with SolidCP after apply recent Windows updates. This helped to fix this immediately.. Thanks!

  2. I was struggling all day to resolve this and finally I have found this solution to resolve this SolidCP error.

    Thank you!

  3. And Finally, my search ends here.I was searching for this same ans from the last many hours.I did the Update,and as mentioned above it giving me errors. Now it’s working fine. A special thanks to you and for your great efforts.Def, I will visit again:)

Leave a Comment

Your email address will not be published. Required fields are marked *