Page 1 of 2

The path is not of a legal form

Posted: Thu Mar 23, 2017 11:11 am
by kevin_78
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

Re: The path is not of a legal form

Posted: Fri Mar 24, 2017 1:31 pm
by Alex K.
Hello,

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

Posted: Fri Mar 24, 2017 2:48 pm
by kevin_78
Aleksey wrote:Hello,

Please try to check the last prerelease build and let us know about the result.

Thank you.
Thanks for the answer
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

Posted: Sat Mar 25, 2017 10:47 am
by Alex K.
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.

Re: The path is not of a legal form

Posted: Sat Mar 25, 2017 6:16 pm
by kevin_78
Thank you for your description
Sample Project

Re: The path is not of a legal form

Posted: Mon Mar 27, 2017 9:34 pm
by Alex K.
Hello,

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

Posted: Tue Mar 28, 2017 3:11 pm
by kevin_78
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?

Re: The path is not of a legal form

Posted: Thu Mar 30, 2017 11:12 am
by Alex K.
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.

Re: The path is not of a legal form

Posted: Fri Apr 07, 2017 3:45 pm
by kevin_78
Hi
About the problem after reviewing the results of reach?

Re: The path is not of a legal form

Posted: Wed Apr 12, 2017 6:40 am
by Alex K.
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.