The path is not of a legal form
The path is not of a legal form
Hi
Costura.Fody have used the program for embedded resources to the final exe file generation and its implementation after the following message shows:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.Path.GetDirectoryName(String path)
at Stimulsoft.Base.StiAssemblyFinder.GetAssembly(String assemblyName)
at Stimulsoft.Report.StiReport.GetReferencedAssemblies()
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile()
at TestMerge.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TestMerge
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Stimulsoft.Report.Win
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
Stimulsoft.Report
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
Stimulsoft.Base
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
Stimulsoft.Controls.Win
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Stimulsoft.Controls
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I used the following code in the program:
stiReport1.Compile();
stiViewerControl1.Report = stiReport1;
I have used versions of Stimulsoft Reports 2015.2
Costura.Fody have used the program for embedded resources to the final exe file generation and its implementation after the following message shows:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.Path.GetDirectoryName(String path)
at Stimulsoft.Base.StiAssemblyFinder.GetAssembly(String assemblyName)
at Stimulsoft.Report.StiReport.GetReferencedAssemblies()
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile()
at TestMerge.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TestMerge
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Stimulsoft.Report.Win
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
Stimulsoft.Report
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
Stimulsoft.Base
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
Stimulsoft.Controls.Win
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Stimulsoft.Controls
Assembly Version: 2015.2.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/app/TestMerge.exe
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I used the following code in the program:
stiReport1.Compile();
stiViewerControl1.Report = stiReport1;
I have used versions of Stimulsoft Reports 2015.2
- Attachments
-
- TestMerge.zip
- (5.04 MiB) Downloaded 342 times
Re: The path is not of a legal form
Hello,
Please try to check the last prerelease build and let us know about the result.
Thank you.
Please try to check the last prerelease build and let us know about the result.
Thank you.
Re: The path is not of a legal form
Thanks for the answerAleksey wrote:Hello,
Please try to check the last prerelease build and let us know about the result.
Thank you.
In the same message indicates the version of Stimulsoft Reports 2016.3
Please explain the reason for problem.
Thankful
Re: The path is not of a legal form
Hello,
We see the place where the problem arises.
When the report is compiled, the system assemblies are loaded, which are specified in the ReferencesAssemblies.
But you use the utility Fody/Costura, which places assemblies in resources and change loading process.
Perhaps this interferes with normal loading.
To understand the reason - we need debug on the source code, we need your project.
Thank you.
We see the place where the problem arises.
When the report is compiled, the system assemblies are loaded, which are specified in the ReferencesAssemblies.
But you use the utility Fody/Costura, which places assemblies in resources and change loading process.
Perhaps this interferes with normal loading.
To understand the reason - we need debug on the source code, we need your project.
Thank you.
Re: The path is not of a legal form
Thank you for your description
Sample Project
Sample Project
- Attachments
-
- TestMerge.zip
- (5.69 MiB) Downloaded 668 times
Re: The path is not of a legal form
Hello,
We need some additional time to check the issue. We will let you know about the result.
Thank you.
We need some additional time to check the issue. We will let you know about the result.
Thank you.
Re: The path is not of a legal form
Hi
Thank you for your follow-up
I have written a project and only major problem is the issue
A few days to investigate this issue?
Thank you for your follow-up
I have written a project and only major problem is the issue
A few days to investigate this issue?
Re: The path is not of a legal form
Hello,
There are some problems with runs your project in the VS 2017, on which works our developers.
We are working on the problem. We will let you know when the solution is available.
Thank you.
There are some problems with runs your project in the VS 2017, on which works our developers.
We are working on the problem. We will let you know when the solution is available.
Thank you.
Re: The path is not of a legal form
Hi
About the problem after reviewing the results of reach?
About the problem after reviewing the results of reach?
Re: The path is not of a legal form
Hello,
The issue is fixed. The fix will be next release.
Also, in this case, you need to set CalculationMode = StiCalculationMode.Interpretation for the report.
Thank you.
The issue is fixed. The fix will be next release.
Also, in this case, you need to set CalculationMode = StiCalculationMode.Interpretation for the report.
Thank you.