# SonarQube: Illegal characters in path

**URL:** <https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776>\
**Category:** SonarQube Cloud\
**Tags:** dotnet\
**Created:** [September 6, 2023, 2:30pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776 "2023-09-06T14:30:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 6, 2023, 2:30pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/1 "2023-09-06T14:30:24Z")

</div>

I’m using SonarQube for code analysis in my azure build pipelines. During my last check-in I get an error message: “Illegal characters in path” without any hint about the location of the problem:

```auto
    ##[error]Unhandled Exception:
    ##[error]System.ArgumentException: Illegal characters in path.
       at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
       at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
       at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
       at SonarScanner.MSBuild.Common.ProjectInfoExtensions.<>c.<GetAllAnalysisFiles>b__8_0(String path)
       at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.ToProjectData(IGrouping`2 projectsGroupedByGuid)
       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.TryWriteProperties(PropertiesWriter writer, IEnumerable`1& allProjects)
       at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.GenerateFile()
       at SonarScanner.MSBuild.PostProcessor.PostProcessor.GenerateAndValidatePropertiesFile(AnalysisConfig config)
       at SonarScanner.MSBuild.PostProcessor.PostProcessor.Execute(String[] args, AnalysisConfig config, IBuildSettings settings)
       at SonarScanner.MSBuild.BootstrapperClass.PostProcess()
       at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
    ---

```

I have already elevated the verbosity to find the problem:

```auto
 inputs:
    SonarQube: 'SonarQube'
    scannerMode: 'MSBuild'
    projectKey: 'CT-XXXX'
    extraProperties: |
      sonar.verbose=true
      sonar.log.level=TRACE
      sonar.log.level.app=TRACE
      sonar.log.level.web=TRACE
      sonar.log.level.ce=TRACE
      sonar.log.level.es=TRACE     

```

But didn’t get more information and although I have set it to TRACE it is still:

```auto
sonar.verbose=true was specified - setting the log verbosity to 'Debug'

```

Is there any better switch that prints out the location of the problem?

- ALM used: Azure DevOps
- CI system used: Azure DevOps
- Scanner command used when applicable (private details masked)
- Languages of the repository: C#, C++

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [September 7, 2023, 4:55pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/2 "2023-09-07T16:55:19Z")

</div>

Hey there.

Thanks for the report.

Can you upload a larger range of logs? It’s difficult to know where the issue is coming from right now.

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 7, 2023, 7:06pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/3 "2023-09-07T19:06:35Z")

</div>

Sure. This is what I have

1. The pipeline looks like this:

![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/f/8/f843ac323c05b65cc680e3d19d4bb9784c40a0fb.png)

1. The prepare step is this

```auto
- task: SonarQubePrepare@5
  inputs:
    SonarQube: 'IPIPE SonarQube'
    scannerMode: 'MSBuild'
    projectKey: 'CT-XXXX'
    extraProperties: |
      sonar.c.file.suffixes=-
      sonar.cpp.file.suffixes=-
      sonar.objc.file.suffixes=-
      sonar.exclusions= **/*.xml,** /*.xaml, **/*.yml,** /*.csproj, **/*.sln,** /*.slnf, **/*.cu,** /*.ptx, **/*.g.cs,** /*.dcm, **/*.png,** /*.ipv, **/*.ipp,** /*.ipx, **/*.IRSTBL,** /*.java, **/*.jar,** /*.html, **/*.css,** /*.js, **/*.py,** /*.cshtml,Tables/,Tools/,tools.p/,pipelines/,documentation/

```

1. The Analyze Step is this

```auto
steps:
- task: SonarQubeAnalyze@5
- task: SonarQubePublish@5
  inputs:
    pollingTimeoutSec: '300'

```

which then shows:

```auto
Starting: SonarQubeAnalyze
==============================================================================
Task : Run Code Analysis
Description : Run scanner and upload the results to the SonarQube server.
Version : 5.15.0
Author : sonarsource
Help : Version: 5.15.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
F:\agent\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.15.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end
SonarScanner for MSBuild 5.13
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
16:14:24.982 16:14:24.904 Uninstalling target: F:\agent\_work\2\.sonarqube\bin\targets\SonarQube.Integration.targets
16:14:24.982 16:14:24.982 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
16:14:24.982 Loading the SonarQube analysis config from F:\agent\_work\2\.sonarqube\conf\SonarQubeAnalysisConfig.xml
16:14:24.982 TeamBuild environment detected
16:14:24.982 Analysis base directory: F:\agent\_work\2\.sonarqube
Build directory: F:\agent\_work\2
Bin directory: F:\agent\_work\2\.sonarqube\bin
Config directory: F:\agent\_work\2\.sonarqube\conf
Output directory: F:\agent\_work\2\.sonarqube\out
Config file: F:\agent\_work\2\.sonarqube\conf\SonarQubeAnalysisConfig.xml
16:14:24.997 Generating SonarQube project properties file to F:\agent\_work\2\.sonarqube\out\sonar-project.properties
16:14:25.81 Setting analysis property: sonar.visualstudio.enable=false
16:14:25.825 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\0\Issues.json
16:14:25.825 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\1\Issues.json
16:14:25.841 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\10\Issues.json
16:14:25.841 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\100\Issues.json
16:14:25.841 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\101\Issues.json
16:14:25.857 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\102\Issues.json

```

showing many messages of the “valid json” type

until here:

```auto
   at SonarScanner.MSBuild.Program.<Main>(String[] args)
System.ArgumentException: Illegal characters in path.
   at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
   at SonarScanner.MSBuild.Common.ProjectInfoExtensions.<>c.<GetAllAnalysisFiles>b__8_0(String path)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.ToProjectData(IGrouping`2 projectsGroupedByGuid)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.TryWriteProperties(PropertiesWriter writer, IEnumerable`1& allProjects)
   at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.GenerateFile()
   at SonarScanner.MSBuild.PostProcessor.PostProcessor.GenerateAndValidatePropertiesFile(AnalysisConfig config)
   at SonarScanner.MSBuild.PostProcessor.PostProcessor.Execute(String[] args, AnalysisConfig config, IBuildSettings settings)
   at SonarScanner.MSBuild.BootstrapperClass.PostProcess()
   at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Execute>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Execute>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Main>(String[] args)
##[error]The process 'F:\agent\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.15.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
Finishing: SonarQubeAnalyze

```

and this is all information I have. Maybe there is some switch I can turn on to find at least the path to see whats wrong.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [September 8, 2023, 5:25am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/4 "2023-09-08T05:25:32Z")

</div>

> [@msedi](#):
>
> showing many messages of the “valid json” type

What’s the final one, and would you be able to extract it from the build agent for review?

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 8, 2023, 6:19am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/5 "2023-09-08T06:19:42Z")

</div>

The last one is 99 although there are in total 331. So they obviously not processed in numerical order. So if this is OK, the last one that is displayed is 99.json

```auto

08:07:37.047 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\98\Issues.json
08:07:37.062 The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: F:\agent\_work\2\.sonarqube\out\99\Issues.json

##[error]Unhandled Exception:

```

If it helps, I have uploaded the whole 99 folder. If you require more information - I’m available 😉  
[99.zip](https://community.sonarsource.com/uploads/short-url/allWSQi3TxAG6S7oouPMSDOBkrq.zip) (2.5 KB)

Additionally I have uploaded the last 331 from the numerical order, because it seems this is also the last created folder (by looking at the folder creation date).  
[331.zip](https://community.sonarsource.com/uploads/short-url/6LNap0CGCFBWKzXBPTegTSeGn97.zip) (99.4 KB)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [September 8, 2023, 7:39am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/6 "2023-09-08T07:39:47Z")

</div>

Thanks. I’m not quite sure where to go from here, so I’ll tag this for some experts.

---

<div class="post-metadata">

**Author:** ![gregory.paidis](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregory.paidis/32/39225_2.png) [@gregory.paidis](https://community.sonarsource.com/u/gregory.paidis)\
**Post date:** [September 14, 2023, 1:59pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/8 "2023-09-14T13:59:29Z")

</div>

Hey @msedi ,

#### Share the Scanner for .NET verbose logs

- Add `/d:"sonar.verbose=true"` to the…
  - `SonarScanner.MSBuild.exe` or `dotnet sonarscanner` **begin** command to get more detailed logs
    - For example: `SonarScanner.MSBuild.exe begin /k:"MyProject" /d:"sonar.verbose=true"`

  - “SonarQubePrepare” or “SonarCloudPrepare” task’s `extraProperties` argument if you are using Azure DevOps
    - For example:

```yml
- task: SonarCloudPrepare@1
    inputs:
      SonarCloud: 'sonarcloud'
      organization: 'foo'
      scannerMode: 'MSBuild'
      projectKey: 'foo_sonar-scanning-someconsoleapp'
      projectName: 'sonar-scanning-someconsoleapp'
      extraProperties: |
        sonar.verbose=true

```

- The important logs are in the `END` step (i.e. SonarQubeAnalyze / SonarCloudAnalyze / “Run Code Analysis”)

#### Share the msbuild detailed logs

```auto
MsBuild.exe /t:Rebuild /v:d

```

or

```auto
dotnet build -v:d

```

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 14, 2023, 2:57pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/10 "2023-09-14T14:57:18Z")

</div>

Thanks for your help.

Attached is the log of our whole build pipeline.

[logs\_8790.zip](https://community.sonarsource.com/uploads/short-url/sSLj60NUsMfadSXnyYVTzZbzbI2.zip) (3.6 MB)

I don’t know if this helps. If you need more, please just ask.

Thanks

---

<div class="post-metadata">

**Author:** ![gregory.paidis](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregory.paidis/32/39225_2.png) [@gregory.paidis](https://community.sonarsource.com/u/gregory.paidis)\
**Post date:** [September 18, 2023, 12:07pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/11 "2023-09-18T12:07:19Z")

</div>

Hey again @msedi ,

Could you run the `build` part of your dotnet/msbuild step with verbosity set to `Detailed` and re-send us the logs?

For `MSBuild` you need: `/v:d`  
For `dotnet` you need `-v:d`

For reference, I already opened a [ticket](https://github.com/SonarSource/sonar-scanner-msbuild/issues/1690) on the appropriate a repo, where you can track it.  
I am just curious to see which path is the culprit, which might make our verification more accurate when implementing said ticket 🙂

Thanks again,  
Greg

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 19, 2023, 6:14am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/12 "2023-09-19T06:14:52Z")

</div>

Hi Gregory,

sorry, that was my fault. While playing around I accidently took the wrong pipeline output.  
Attached is the log output with -v:d.

Best  
Martin

[9\_Build solution IPIPE.sln.txt.zip](https://community.sonarsource.com/uploads/short-url/bUcfXGLb1NdRyXgZq4RH3U5Wtzq.zip) (23.0 MB)

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 22, 2023, 1:51pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/13 "2023-09-22T13:51:27Z")

</div>

Hi Gregory,

just for you rinformation. It seems the problem was in the excludes.  
I was using

`sonar.exclusions=...Tables/,Tools/,tools.p/,pipelines/,documentation/`

because I wanted to exclude all files unterneath the given folders. When removing the items it worked again.

To make it work I thought the following line works, but it doesn’t

`sonar.exclusions=Tables/ **,Tools/** ,tools.p/ **,pipelines/** ,documentation/**`

What would be the correct way to exclude everything unterneath a folder?

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [September 28, 2023, 1:11pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/14 "2023-09-28T13:11:58Z")

</div>

Hi Gregory,

unfortunately I thought the problem is the wrong path filters. But this was not the case. So I’m struggling now since 22 days with the problem without any solution. Even our main IT department cannot solve it, so it would be nice if we could work on this.

---

<div class="post-metadata">

**Author:** ![gregory.paidis](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregory.paidis/32/39225_2.png) [@gregory.paidis](https://community.sonarsource.com/u/gregory.paidis)\
**Post date:** [October 2, 2023, 2:42pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/15 "2023-10-02T14:42:33Z")

</div>

Hey @msedi ,

I apologize for the delay.  
Unfortunately, after looking into it a bit more, there doesn’t seem to be an easy solution I can implement right now.

I will inform my team and try to prioritize it as much as possible during upcoming work on the scanner side.

Thanks for raising this and sorry again for my slow reply,  
Greg

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [October 2, 2023, 4:17pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/16 "2023-10-02T16:17:40Z")

</div>

Gregory, no problem. Is there anything I can do from my side? I think the only problem is that I cannot find out which path causes the problem.

The other side is, even if you can solve something on your side, our company installed SonarQube might not be updated accordingly, so solving the problem on my side would help me most at the moment.

Thanks for your help  
Martin

---

<div class="post-metadata">

**Author:** ![gregory.paidis](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregory.paidis/32/39225_2.png) [@gregory.paidis](https://community.sonarsource.com/u/gregory.paidis)\
**Post date:** [October 3, 2023, 12:13pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/17 "2023-10-03T12:13:19Z")

</div>

Hey again Martin,

Based on your error stack trace, what seems to be the problem is a call to `new FileInfo`.

As you can see in the [constructor exceptions](https://learn.microsoft.com/en-us/dotnet/api/system.io.fileinfo.-ctor?view=net-7.0#:~:text=.NET%20Framework%20and%20.NET%20Core%20versions%20older%20than%202.1%3A%20The%20file%20name%20is%20empty%2C%20contains%20only%20white%20spaces%2C%20or%20contains%20invalid%20characters.), there is some detection of illegal characters that throws this stack trace.

You could try to find all the files that are processed during the build process from the verbose logs and write a script to check them.

Note: This seems to be happening only in .NET Framework and early .NET Core versions.

Extra note: If you really want to go in depth, you can also check the [source code](https://referencesource.microsoft.com/#mscorlib/system/security/permissions/fileiopermission.cs,b2a474881a0dd2f5) of the method that is throwing inside the runtime.

---

<div class="post-metadata">

**Author:** ![msedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/msedi/32/48965_2.png) [@msedi](https://community.sonarsource.com/u/msedi)\
**Post date:** [October 11, 2023, 6:38am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/18 "2023-10-11T06:38:16Z")

</div>

Hi Gregory,

I have tried to get the log from the server and scanned through all files in config/FilesToAnalyze.txt and any other files in the config and out that contains file pathes, but couldn’t find the error.

I also checked it by using the dotnet sonar-scanner locally and didn’t see any problems there.

Do you have any other idea what could cause the problem. Obviously there is something different on the server.

---

<div class="post-metadata">

**Author:** ![gregory.paidis](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregory.paidis/32/39225_2.png) [@gregory.paidis](https://community.sonarsource.com/u/gregory.paidis)\
**Post date:** [October 11, 2023, 2:56pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/19 "2023-10-11T14:56:34Z")

</div>

Hey again Martin,

Unfortunately at this time, I am out of ideas.  
It will be tackled in the near future when we will work on the scanner.

Thanks and sorry for not being able to help more,  
Greg

---

<div class="post-metadata">

**Author:** ![achtus](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/achtus/32/61493_2.png) [@achtus](https://community.sonarsource.com/u/achtus)\
**Post date:** [September 5, 2024, 8:07am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/21 "2024-09-05T08:07:35Z")

</div>

I see this is an old post. But have you managed to find a workaround or is there a patch? We’re apparently using the latest version 6.3.2 and we’re encountering exactly the same problem in a net8 project without being able to identify ‘the’ file containing illegal characters.

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/2/6/268e2a524df41c6c4079aeddc298e9a9a5ccdff1.png)

---

<div class="post-metadata">

**Author:** ![gregory.paidis](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregory.paidis/32/39225_2.png) [@gregory.paidis](https://community.sonarsource.com/u/gregory.paidis)\
**Post date:** [September 6, 2024, 4:01pm UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/22 "2024-09-06T16:01:03Z")

</div>

Hey Frederic,

Thanks for the reminder.  
I have a fix for this, and I will try to add it on the next or second-next release of the scanner for .NET.

---

<div class="post-metadata">

**Author:** ![achtus](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/achtus/32/61493_2.png) [@achtus](https://community.sonarsource.com/u/achtus)\
**Post date:** [September 9, 2024, 7:05am UTC](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776/23 "2024-09-09T07:05:41Z")

</div>

As soon as it’s available, I’ll let you know.

[Next page](https://community.sonarsource.com/t/sonarqube-illegal-characters-in-path/98776.md?page=2)
