Biztalk 2013 <string xmlns='http://schemas.microsoft.com/2003/10/Serialization/'> was not expected - wcf

I have a BizTalk 2013 orchestration which I published as a WCF service. The orchestration has a Request-Response port accepting a string and returning an entity which I have defined in a schema.
When I try use the service and pass a string to it, I get the error
http://schemas.microsoft.com/2003/10/Serialization/'> was not expected.
Does anyone have any ideas how to fix this?
Thanks
Full error details below:
xlang/s engine event log entry: Uncaught exception (see the 'inner
exception' below) has suspended an instance of service
'CAA.POC.ESB.BizTalk.Orchestrations.RetrieveAllCases(c408d4a7-3795-f6c7-dc95-c02edfe00740)'.
The service instance will remain suspended until administratively
resumed or terminated. If resumed the instance will continue from its
last persisted state and may re-throw the same unexpected exception.
InstanceId: 6b9cbf6a-2a63-4401-b3a1-05a870da963c Shape name:
ConstructCases ShapeId: 189c5a7f-2306-49dc-bd07-8430e638ba45 Exception
thrown from: segment 1, progress 7 Inner exception: There is an error
in XML document (1, 2).
Exception type: InvalidOperationException Source: System.Xml Target Site: System.Object Deserialize(System.Xml.XmlReader,
System.String, System.Xml.Serialization.XmlDeserializationEvents) The
following is a stack trace that identifies the location where the
exception occured
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader
textReader) at Microsoft.XLANGs.Core.Value.GetObject(Type t) at
Microsoft.XLANGs.Core.Value.RetrieveAs(Type t) at
Microsoft.XLANGs.Core.Part.ProtectedRetrieveAs(Type t) at
Microsoft.XLANGs.Core.Part.RetrieveAs(Type t) at
CAA.POC.ESB.BizTalk.Orchestrations.System_String.get_TypedValue()
at
CAA.POC.ESB.BizTalk.Orchestrations.RetrieveAllCases.segment1(StopConditions
stopOn) at
Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s,
StopConditions stopCond, Exception& exp) Additional error information:
<string xmlns='http://schemas.microsoft.com/2003/10/Serialization/'> was not
expected.
Exception type: InvalidOperationException Source: System.Xml Target Site: System.Object Read_string() The following is a stack
trace that identifies the location where the exception occured
at
System.Xml.Serialization.XmlSerializationPrimitiveReader.Read_string()
at
System.Xml.Serialization.XmlSerializer.DeserializePrimitive(XmlReader
xmlReader, XmlDeserializationEvents events) at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)

Related

Ektron: synchronization between two servers stopped

We have problem with Ektron synchronization between two servers.
It stopped couple days ago. We tried the “Pause/Resume” button, but that didn’t work.
Do you know where to look for errors and how to troubleshoot this problem?
Please advise.
Updates :
version Ektron 8.6.1
synchronization schedule : daily at 11PM
Restarted services on both machines.
Found error in C:\Program Files (x86)\Ektron\EktronWindowsService40\log\errors
Type : System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The security identifier is not allowed to be the owner of this object.
Source : mscorlib
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Persist(System.String, System.Runtime.InteropServices.SafeHandle, System.Security.AccessControl.AccessControlSections, System.Object)
HResult : -2146233079
Stack Trace : at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
at Ektron.FileSync.Common.FileSyncUtils.ChangePermissions(String filePath, String dirPath)
Stack Trace : at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
at Ektron.FileSync.Common.FileSyncUtils.ChangePermissions(String filePath, String dirPath)
Severity: Error
Title:EktronWindowsServices Exception
Application Domain: Ektron.ASM.EktronServices40.exe
Process Id: 1568
Process Name: E:\Program Files (x86)\Ektron\EktronWindowsService40\Ektron.ASM.EktronServices40.exe

Sitefinity Backend not working - 404 Page not found

I am using Sitefinity CMS for my project. I am developing project on localhost. Uptill now all were going well. but, before 2 days when I try to open Sitefinity backend by entering http://localhost:60879/sitefinity, I am getting 404 Page not found error and redirect me to http://localhost:60879/404?aspxerrorpath=/Sitefinity/Authenticate/SWT
moreover, when I host this website on IIS with same physical path, it starts working. What I have tried so far
clear browsing history and restart
restart visual studio and run the code
check App_Data/Error.log
Error.log
Timestamp: 1/18/2017 7:04:00 AM
Message: HandlingInstanceID: 350f050d-ae62-4d9e-b491-d43e0cfa2c5f
An exception of type 'System.InvalidOperationException' occurred and was caught.
01/18/2017 12:34:00
Type : System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Stack empty.
Source : System
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowInvalidOperationException(System.ExceptionResource)
HResult : -2146233079
Stack Trace : at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Stack`1.Pop()
at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject)
at System.Web.UI.RenderTraceListener.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Additional Info:
MachineName : BRVM120
TimeStamp : 1/18/2017 7:04:00 AM
FullName : Telerik.Sitefinity.Utilities, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/17/ROOT-1-131291960014867668
ThreadIdentity :
WindowsIdentity : BRSOBO\hardik.gondalia
Requested URL : http://localhost:60879/Sitefinity/Authenticate/SWT?realm=http://localhost:60879/&redirect_uri=/sitefinity&deflate=true
Category: ErrorLog
Priority: 0
EventId: 90000
Severity: Error
Title:Enterprise Library Exception Handling
Machine: BRVM120
App Domain: /LM/W3SVC/17/ROOT-1-131291960014867668
ProcessId: 10520
Process Name: C:\Program Files (x86)\IIS Express\iisexpress.exe
Thread Name:
Win32 ThreadId:12936
Extended Properties:
I don't know how to make it work as it is the sitefinity in-box functionality.
Have a look at this blog post: http://www.sitefinitytipsandtricks.net/2016/08/18/fix-for-sitefinity-backend-issue-iis-detailed-error-404-0-not-found/
It suggests to follow all steps from the Sitefinity Documentation portal for configuring IIS to host your site:
http://docs.sitefinity.com/configure-the-iis-to-host-sitefinity-projects#windows-server-2012-r2-and-windows-8-1-with-iis-8-5
and if that does not help to check this article as well:
http://therobgregory.com/sitefinity-backend-issue-iis-detailed-error-404-0-not-found/

Getting "java.lang.UnsatisfiedLinkError was thrown" while opening pdf file in vb.net

I am developing an application in vb.net it was working perfectly fine until this error occurred. I have tried everything but its of no use. Please Help me
ERROR:
Server Error in '/CNS/pdf' Application.
Exception of type java.lang.UnsatisfiedLinkError was thrown.
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: java.lang.UnsatisfiedLinkError: Exception of type
java.lang.UnsatisfiedLinkError was thrown.
Source Error:
Line 1165: CheckedByName = dr.GetString(1)
Line 1166: CheckedByDesig = dr.GetString(2)
Line 1167: Case 3
Line 1168: ApprovedByName = dr.GetString(1)
Line 1169: ApprovedByDesig = dr.GetString(2)
Source File: C:\Inetpub\wwwroot\CNS\pdf\PdfForms.aspx.vb Line: 1167
Stack Trace:
[UnsatisfiedLinkError: Exception of type java.lang.UnsatisfiedLinkError was
thrown.]
java.lang.ExceptionInInitializerError.checkAndThrowException(Throwable
thrown) +59
java.io.File..cctor() +246
[TypeInitializationException: The type initializer for "java.io.File" threw an
exception.]
java.io.FileOutputStream..ctor(String path) +28
pdf.PdfForms.ShowPO(String PONo) in
C:\Inetpub\wwwroot\CNS\pdf\PdfForms.aspx.vb:1167
pdf.PdfForms.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\CNS\pdf\PdfForms.aspx.vb:52
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

NServiceBus Could not load file or assembly

I am getting the below error when i call "NServiceBus.Host.exe". The issue appears to be itextsharp.dll. I've read that i can use
"Configure.With(AllAssemblies.Except("itextsharp.dll"))... // rest of your config"
But i'm using the following sample and not sure where to add this property.
http://docs.particular.net/samples/web/asp-mvc-application/
#
Unhandled Exception: Magnum.StateMachine.StateMachineException: Exception occurr
ed in Topshelf.Internal.ServiceController1[[NServiceBus.Host.Internal.GenericHo
st, NServiceBus.Host, Version=2.6.0.1504, Culture=neutral, PublicKeyToken=9fc386
479f8a226c]] during state Initial while handling OnStart ---> System.Exception:
Exception when starting endpoint, error has been logged. Reason: Could not load
file or assembly 'file:///D:\dev\MYSITE\MYSITE.EStore\EStore.Server\bin\Debug\itexts
harp.dll' or one of its dependencies. Operation is not supported. (Exception fro
m HRESULT: 0x80131515)
at NServiceBus.Host.Internal.GenericHost.Start() in d:\BuildAgent-02\work\20b
5f701adefe8f8\src\host\NServiceBus.Host\Internal\GenericHost.cs:line 90
at Magnum.StateMachine.EventActionList1.Execute(T stateMachine, Event event,
Object parameter) in :line 0
--- End of inner exception stack trace ---
Server stack trace:
at Magnum.StateMachine.ExceptionActionDictionary1.HandleException(T stateMac
hine, Event event, Object parameter, Exception exception) in :line 0
at Magnum.StateMachine.EventActionList1.Execute(T stateMachine, Event event,
Object parameter) in :line 0
at Magnum.StateMachine.State1.RaiseEvent(T instance, BasicEvent1 eevent, Ob
ject value) in :line 0
at Magnum.StateMachine.StateMachine`1.RaiseEvent(Event raised) in :line 0
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(
IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInCont
ext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMes
sage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
at Topshelf.Internal.ServiceControllerProxy.Start()
at Topshelf.Internal.ServiceCoordinator.Start() in d:\dev\open-source\topshel
f\src\Topshelf\Internal\ServiceCoordinator.cs:line 54
at Topshelf.Internal.Hosts.ConsoleHost.Run() in d:\dev\open-source\topshelf\s
rc\Topshelf\Internal\Hosts\ConsoleHost.cs:line 53
at NServiceBus.Host.Program.Main(String[] args) in d:\BuildAgent-02\work\20b5
f701adefe8f8\src\host\NServiceBus.Host\Program.cs:line 103
When NserviceBus host starts it tries to retrieve all types from assemblies you specify.
In the sample you provide it uses NServiceBus.Configure.WithWeb() method.
This is the same as to call NServiceBus.Configure.With(AppDomain.CurrentDomain.DynamicDirectory)
You get the excpetion because "itextsharp.dll" cannot be loaded to AppDomain (this is done by calling Assembly.LoadFrom(file.FullName) method).
To fix the issue, you may manually specify assemblies you need to scan by using one of NServiceBus.Configure.With() overloads.

WCF Application "Unable to find assembly" for SQLite

Note: This is a solved problem, but I just spend 4 hours at this issue, so I wanted to share the solution.
When I attempt to access a WCF service, the service never responds, and the event log shows the following:
An unhandled exception occurred and
the process was terminated.
Application ID: DefaultDomain
Process ID: 3180
Exception:
System.Runtime.Serialization.SerializationException
Message: Unable to find assembly
'System.Data.SQLite, Version=1.0.66.0,
Culture=neutral,
PublicKeyToken=db937bc2d44ff139'.
StackTrace: at
System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo
assemblyInfo, String name) at
System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String
objectName, String[] memberNames,
BinaryTypeEnum[] binaryTypeEnumA,
Object[] typeInformationA, Int32[]
memberAssemIds, ObjectReader
objectReader, Int32 objectId,
BinaryAssemblyInfo assemblyInfo,
SizedArray assemIdToAssemblyTable)
at
System.Runtime.Serialization.Formatters.Binary._BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped
record) at
System.Runtime.Serialization.Formatters.Binary._BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum
binaryHeaderEnum) at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser,
Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage
methodCallMessage) at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler
handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage
methodCallMessage) at
System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream
stm) at
System.AppDomain.Deserialize(Byte[]
blob) at
System.AppDomain.UnmarshalObject(Byte[]
blob)
Solution
In my case, the problem ended up being a simple incorrect database path. However, the error message in no way reflects the actual cause, so YMMV.
The reason the "bad connection string" exception didn't make it to the event log seems related to this KB article. If the connection string isn't your problem, then your best course may be to follow the steps in this article, which will cause IIS to write exceptions to the event log.