Error publishing document 'System.StackOverflowException' occurred in mscorlib.dll
I am using the api and trying to publish a document that has had its properties updated. Using Save, Publish, or PublishSingleNode methods thows the following error:
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
my code is as follows:
Document doc = new Document(UniqueId); doc.getProperty("individuals").Value = bizdata.Individuals;
Hi, I cannot I am affraid as it gives this message: {Cannot evaluate expression because the current thread is in a stack overflow state.}
I dont have an event handlers hooked up at the moment.
Currently I am testing this on my local pc to a database that is hosted on a remote server. It pulls the document out okay but saving them back to the database is causing the issues.
Message: Type 'umbraco.DataLayer.SqlHelperException' in Assembly 'umbraco.DataLayer, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
StackTrace: at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm) at System.AppDomain.Serialize(Object o) at System.AppDomain.MarshalObject(Object o)
Is your connection string correct? I see that error a lot when the connection string for Umbraco is incorrect, it'll get itself into an infinite loop and things go bad :P
Error publishing document 'System.StackOverflowException' occurred in mscorlib.dll
I am using the api and trying to publish a document that has had its properties updated. Using Save, Publish, or PublishSingleNode methods thows the following error:
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
my code is as follows:
Document doc = new Document(UniqueId);
doc.getProperty("individuals").Value = bizdata.Individuals;
doc.UpdateDate =DateTime.Now;
//doc.Save();
//doc.SendToPublication(umbraco.BusinessLogic.User.GetUser(0));
doc.Publish(new User(0));
umbraco.library.UpdateDocumentCache(doc.Id);
return doc;
Can anyone help please?
Do you have any event handlers wired up?
Can you provide the full stack trace?
Hi, I cannot I am affraid as it gives this message: {Cannot evaluate expression because the current thread is in a stack overflow state.}
I dont have an event handlers hooked up at the moment.
Currently I am testing this on my local pc to a database that is hosted on a remote server. It pulls the document out okay but saving them back to the database is causing the issues.
I went into the application log of my computer and found these two errors that may make some sense to someone:
An unhandled exception occurred and the process was terminated.
Application ID: WebDev.WebServer.exe
Process ID: 5396
Exception: System.Runtime.Serialization.SerializationException
Message: Type 'umbraco.DataLayer.SqlHelperException' in Assembly 'umbraco.DataLayer, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
StackTrace: at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)
at System.AppDomain.Serialize(Object o)
at System.AppDomain.MarshalObject(Object o)
AND this error as well:
EventType clr20r3, P1 webdev.webserver.exe, P2 9.0.0.0, P3 4731664b, P4 umbraco.datalayer, P5 0.3.0.0, P6 4bb1c884, P7 17, P8 2c, P9 umbraco.datalayer.sqlhelper, P10 NIL.
Is your connection string correct? I see that error a lot when the connection string for Umbraco is incorrect, it'll get itself into an infinite loop and things go bad :P
is working on a reply...