.NET 8 error when using ASP.NET AspNetCore.Reporting.LocalReport
var result = localReport.Execute(AspNetCore.Reporting.RenderType.ExcelOpenXml, 1, param, "");
Error message
Inner Exception 1:
DefinitionInvalidException: The definition of the report 'C:\FGCI Projects\FGCI Report Server\fgcireportserver\fgcireportservercore\fgcireportservercore\bin\Debug\net8.0\Reports\AccountingManagementReportFormats\voucherroutereportexcel.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Compiler executable file C:\WINDOWS\Microsoft.NET\Framework64\v8.0.1\vbc.exe cannot be found.
Inner Exception 2:
ReportProcessingException: An unexpected error occurred in Report Processing.
Compiler executable file C:\WINDOWS\Microsoft.NET\Framework64\v8.0.1\vbc.exe cannot be found.
Inner Exception 3:
InvalidOperationException: Compiler executable file C:\WINDOWS\Microsoft.NET\Framework64\v8.0.1\vbc.exe cannot be found.
Inner Exception 1:
DefinitionInvalidException: The definition of the report 'C:\FGCI Projects\FGCI Report Server\fgcireportserver\fgcireportservercore\fgcireportservercore\bin\Debug\net8.0\Reports\AccountingManagementReportFormats\voucherroutereportexcel.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Compiler executable file C:\WINDOWS\Microsoft.NET\Framework64\v8.0.1\vbc.exe cannot be found.
Inner Exception 2:
ReportProcessingException: An unexpected error occurred in Report Processing.
Compiler executable file C:\WINDOWS\Microsoft.NET\Framework64\v8.0.1\vbc.exe cannot be found.
Inner Exception 3:
InvalidOperationException: Compiler executable file C:\WINDOWS\Microsoft.NET\Framework64\v8.0.1\vbc.exe cannot be found.
So I was working with Node<T> in PreOrder Traversal when i try to test it gives me an error message saying Something is wrong in our systems, your code took too long to execute.
Here's my code
public class Node<T>
{
public T value;
public Node<T> left, right, parent;
public Node(T value)
{
this.value = value;
}
public Node(T value, Node<T> left, Node<T> right)
{
this.value = value;
this.left = left;
this.right = right;
left.parent = right.parent = this;
}
public IEnumerable<T> PreOrder
{
get
{
return new PreOrderIterator<T>(this);
}
}
}
public class PreOrderIterator<T> : IEnumerable<T>
{
private Stack<Node<T>> stack = new Stack<Node<T>>();
public PreOrderIterator(Node<T> root)
{
stack.Push(root);
}
public IEnumerator<T> GetEnumerator()
{
return GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
}
public class Node<T>
{
public T value;
public Node<T> left, right, parent;
public Node(T value)
{
this.value = value;
}
public Node(T value, Node<T> left, Node<T> right)
{
this.value = value;
this.left = left;
this.right = right;
left.parent = right.parent = this;
}
public IEnumerable<T> PreOrder
{
get
{
return new PreOrderIterator<T>(this);
}
}
}
public class PreOrderIterator<T> : IEnumerable<T>
{
private Stack<Node<T>> stack = new Stack<Node<T>>();