# Error when trying to run sonarscanner for my .netcore project

**URL:** <https://community.sonarsource.com/t/error-when-trying-to-run-sonarscanner-for-my-netcore-project/36365>\
**Category:** SonarQube Server / Community Build\
**Tags:** csharp, msbuild, dotnet, sonarqube, scanner\
**Created:** [December 30, 2020, 2:58am UTC](https://community.sonarsource.com/t/error-when-trying-to-run-sonarscanner-for-my-netcore-project/36365 "2020-12-30T02:58:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Joe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/joe/32/14820_2.png) [@Joe](https://community.sonarsource.com/u/Joe)\
**Post date:** [December 30, 2020, 7:14pm UTC](https://community.sonarsource.com/t/error-when-trying-to-run-sonarscanner-for-my-netcore-project/36365/2 "2020-12-30T19:14:20Z")

</div>

Hi @yapeutat,

Welcome to SonarSource community!

To use SonarScanner for .NET (formerly known as SonarScanner for MSBuild), you have the first right step, but you forgot to pass in your login token, hence the `10:47:05.173 The token you provided doesn’t have sufficient rights to check license.` probably.

For the `/d:sonar.login` property, you need to pass your login token or your login name with the password. In other words, there are 2 ways to pick from:

1. Login, click on your user icon in the top right-hand corner, click on My Account, click on Security and enter a token name, this will generate a login token, this value is what you put in for `/d:sonar.login="2e9f236e256aa0251ed82ae596a871e296e99351"`:  

2. Use your usual login and password and make sure to pass these analysis parameters to the BEGIN step:  
` ... /d:sonar.login="admin" /d:sonar.password="whateverpassword"`

Joe

---

_[View the full topic](https://community.sonarsource.com/t/error-when-trying-to-run-sonarscanner-for-my-netcore-project/36365)._
