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)
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:
Add the following after:
Now search for the follow:
Add the following:
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.
The post SolidCP Error in Web Sites section after Windows updates appeared first on Web Hosting Blog.
This post first appeared on Web Hosting Blog - Web Hosting Discussion, please read the originial post: here