CMS Snapshot Analysis - Run Analyzer - Warnings - DOTNet with extension - DotNet Analyzer - Unknown exception System ComponentModel Win32Exception The filename or extension is too long
Problem Description
When running .NET analysis for WPF or Silver-light application you may encounter the below warning in the analysis log and the analyzer exits normally without analyzing anything
Warning� MODULMSG ; Job execution� DOTNET.0003:Unknown exception System.ComponentModel.Win32Exception (0x80004005): The filename or extension is too long
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Roslyn.DotNet.Preprocessors.XamlWpfPreprocessor.GenerateXamlSource(String exeLocation, String language, String sourceExtension, String outputPath, String assemblyName, IEnumerable1 applicationXaml, IEnumerable1 pageXamls, IEnumerable1 sourceFiles, IEnumerable1 assemblyReferences)
at Roslyn.DotNet.ProjectBuilders.RawProjectBuilder.GetPreprocessedXamlFiles(DotNetProject projectDesc)
at Roslyn.DotNet.ProjectBuilders.RawProjectBuilder.GetSourceFiles(ProjectId projectId, DotNetProject projectDesc)
at Roslyn.DotNet.ProjectBuilders.RawProjectBuilder.AddProjectToSolution(Solution& solution, DotNetProject projectDesc, List`1 loadedProjects)
at Roslyn.DotNet.ProjectBuilders.WorkspaceBuilder.LoadAtSolutionLevel(Solution& solution, IEnumerable1 projectsToLoad, List1 loadedProjects)
at Roslyn.DotNet.ProjectBuilders.WorkspaceBuilder.Build(MSBuildWorkspace workspace, List`1 projects)
at Roslyn.DotNet.Analyzer.RunRoslynPartOfAnalysis(LaunchInformation launchInfo)
at Roslyn.DotNet.Analyzer.RunAnalysisAsync(LaunchInformation launchInfo)
Observed in CAST Extension Version
| Release | Yes/No |
|---|---|
| 1.1.x | ✅ |
Observed in RDBMS
| RDBMS | Yes/No |
|---|---|
| Oracle Server | ✅ |
| Microsoft SQL Server | ✅ |
| CSS3 | ✅ |
| CSS2 | ✅ |
Step by Step scenario
- Manage .NET extension 1.1.x in your bases
- Launch Cast-MS
- Run analysis for a DotNet application which has WPF/Silverlight
Action Plan
Perform the below actions
- This issue has been seen in .NET 1.1.x and will be encountered only when you analyze WPF/Silver light application. This is because in these frameworks we have XAML files which get processed by another tool XamlWpfGenerator.exe present in .NET extension folder. When the executable arguments exceeds 260 chars which is the permissible limit of windows OS then the exception is raised.
- Manage 1.0.x extension and run the analysis
- If the above steps do not solve your issue contact CAST Technical Support. with the Relevant Input
Notes/comments
Related Pages