CruiseControl Console error message when parsing XML - c#

I have CruiseControl(1.5) running in Win2k8R2 and svn(1.6.9) The error happens on a successful build after nant(0.86) Timeout(600 seconds). When I check the build dir everything is built correctly but CruiseControl Dashboard report Exception
Here is the error shown in console:
[:DEBUG] Exception: System.Xml.XmlException: The ',' character, hexadecimal value 0x2C, cannot be included in a name. Line 5544, position 274.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean defattr)
at ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter.WriteNode(XmlReader reader, Boolean defattr)
at ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter.WriteNode(String xml)

Generaly, this error happens when ccnet is trying to merge Nant ouput with non-xml info into the build report.
Verify the Nant ouput.
Maybe something similar here:
CruiseControl.Net complaining about xml

Related

Error when trying to save EF6 Model (Diagram)

I'm getting an error when I try to save my EF6 Model in Visual Studio.
Severity Code Description Project File Line Suppression State
Error Running transformation: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.VisualStudio.TextTemplating2E969E7BB7507C0E92F45D70D6AE734916F1C3683B5A0611CF49C10204F34C69B4F2034763B4DA31B0F0721B51B303513DC99B843477A989AB522BF93554EA49.GeneratedTextTransformation.TypeMapper.VerifyCaseInsensitiveTypeUniqueness(IEnumerable`1 types, String sourceFile)
at Microsoft.VisualStudio.TextTemplating2E969E7BB7507C0E92F45D70D6AE734916F1C3683B5A0611CF49C10204F34C69B4F2034763B4DA31B0F0721B51B303513DC99B843477A989AB522BF93554EA49.GeneratedTextTransformation.TransformText() NT-LLB.AzureSqlDb C:\Users\lars.hermansen\source\repos\NT-AZURE\NT-LLB.AzureSqlDb\AzureSqlModel.tt 1
I have tried searching for a while without finding any usefull info on the error. This error stops the updating and creation of auto-generated model files. for now I have manually added changes when I add or change tables, but I would really like to get rid of this problem and get the intended functionality back.

Unsupported by Aspose.HTML for .NET symbols in the name of input html file

I am using Aspose.HTML for .NET library and I found out that it doesn’t support ‘#’ character in the name of the input html file when windows handles it OK. Is there any solution of this issue?
Here is sample code:
using (var document = new HTMLDocument(#“D:\work\!%#&$^#.html”))
{
Console.WriteLine(document.BaseURI);
Console.WriteLine(“OK”);
}
Exception I get:
Unhandled Exception: System.Exception: ‘file:///D:/work/!%#&$^#.html’ could not be found. —> Aspose.Html.Dom.DOMException: ‘file:///D:/work/!%#&$^#.html’ could not be found.
at :clubs: .:heart: [T](UInt16 :slight_smile:, String :heart:, String :clubs:, Object[])
at :clubs: .:heart:(String :slight_smile:, Object[] :heart:)
at Aspose.Html.Dom.Document.:heart: .:slight_smile:.:slight_smile:()
at :clubs: .:slight_smile:()
— End of inner exception stack trace —
at .:heart: :slight_smile:(Boolean :slight_smile:)
at :heart: .Dispose()
at Aspose.Html.Dom.Document.:slight_smile:(☼ :slight_smile:)
at Aspose.Html.Dom.Document…ctor(IDocumentInit documentInit)
at Aspose.Html.HTMLDocument…ctor(RequestMessage :slight_smile:, Configuration :heart:, Byte :clubs:)
at Aspose.Html.HTMLDocument…ctor(String address)
at ConsoleApplication1.Program.Main(String[] args) in D:\Labs\PathTest\ConsoleApplication1\Program.cs:line 19
This file definitely exists. I am using Aspose.HTML 20.11.0. Updating to the latest one doesn’t solve this issue

MagickBlobErrorException: no such file or directory

When i run the testcase c# application from windows(local machine) it works fine. But when run from azure pipeline getting below exception. Anyone faced like this error? Please help me on this.
i used code:
MagickImage sourceImage = new MagickImage("../../../Images/OutputImages/output-SlightSkew.jpg");
Got error:
Error Message:
ImageMagick.MagickBlobErrorException : UnableToOpenBlob '../../../Images/OutputImages/output-SlightSkew.jpg': No such file or directory # error/blob.c/OpenBlob/3537
Stack Trace:
at ImageMagick.NativeInstance.CheckException(IntPtr exception, IntPtr result)
at ImageMagick.MagickImage.NativeMagickImage.ReadFile(IMagickSettings1 settings) at ImageMagick.MagickImage.Read(String fileName, IMagickReadSettings1 readSettings, Boolean ping)
at ImageMagick.MagickImage.Read(String fileName, IMagickReadSettings`1 readSettings)
at ImageMagick.MagickImage.Read(String fileName)
at ImageMagick.MagickImage..ctor(String fileName)
According to your error message, the error is most likely due to the wrong file path.
In Azure DevOps pipeline, your source code files are in $(System.DefaultWorkingDirectory).
You can check if there is a output-SlightSkew.jpg file in ../../../Images/OutputImages/ in your repository.
If the answer is no, change your path to the correct path.
If the answer is yes, try to replace your path to a specific path, for example {folder A}/{folder B}/Images/OutputImages/output-SlightSkew.jpg.

XmlException: Name cannot begin with the '<' character in Silverlight xaml designer

since morning, i try to fix but no result yet. I dont make sense. It was working yesterday but today i got the error. Another interesting thing is that Line 7404, I do not have such a large line of code.
XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 7404, position 64.
StackTrace
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
The downloaded xml is not valid.
The exception message refers to the returned xml, so you´ll have to go to Line 7404, position 64 of the returned xml and see how the error occured.
I solved it like this.
right click on the settings.settings file under the project and select Open With. select the automatic editor selector (xml) from the pop-up window. The settings.settings file will be opened in the xml editor

FileNotFoundException - no file missing

When entering a view for the first time, this exception is raised:
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
First of all - why would it just happen the first time I enter that specific view? Even IF the issue was in the constructor (which it could not be), it would be called (and the exception thrown) every time I enter the view.
Second of all - how would I find the source of such an exception? It doesn't break into the debugger, and there are no resource files (like background images, app bar icons) missing.
Lastly - what (except directly referencing files in the code) would throw such an exception?
I would show you the code in question, but the file is a bit too big to post all of it.
UPDATE:
After debugging, I have noticed that the error happens after the constructor and OnNavigatedTo() and before Loaded(). There is a thread being launched in the OnNavigatedTo method, but I have tried to try-catch every single element of that part (and every internal part of it), and no error was found.
UPDATE 2:
After debugging some more, I found the error message:
File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=xxxxxxxxxxxxx', or one of its dependencies, was not found.
Also the stack trace:
at System.ThrowHelper.throwVersion37CompatException(ExceptionType newEType,
String newString, ExceptionType oldEType, String oldString)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Windows.Resx..ctor()
at System.Windows.Resx.GetLoader()
at System.Windows.Resx.GetStringHelper(String name)
at System.Windows.Resx.GetString(String name)
at System.Windows.Controls.Primitives.ToggleButton.ToString()
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj,
IntPtr unmanagedObjArgs, Int32 argsTypeIndex,
Int32 actualArgsTypeIndex, String eventName)
you can set break for the first chance exception visual studio, debug in to see the detail about the FileNotFound exception, which file is missing.
sometime, clr try to find some extension dll, which is normally too magic to us. for example, if you use XmlSerialize in your project, if you don't use sgen.exe to generate the dynamic xml serialize dll for your serializble type, CLR will generate one during runtime, but before this, clr will try to load the assemble, which will cause FileNotFoundException, but catched

Categories