# Cant get HelloWorld running in .Net App

**URL:** <https://community.neo4j.com/t/cant-get-helloworld-running-in-net-app/13738>\
**Category:** Neo4j Graph Platform\
**Tags:** net\
**Created:** [January 17, 2020, 4:35pm UTC](https://community.neo4j.com/t/cant-get-helloworld-running-in-net-app/13738 "2020-01-17T16:35:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeCase](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codecase/32/5260_2.png) [@CodeCase](https://community.neo4j.com/u/CodeCase)\
**Post date:** [January 17, 2020, 4:35pm UTC](https://community.neo4j.com/t/cant-get-helloworld-running-in-net-app/13738/1 "2020-01-17T16:35:34Z")

</div>

Hi and thank you for neo4j,

we would like to use it in Version 4.x inside a Windows App.

So I decided to start with the tutorial from [Using Neo4j from .NET - Developer Guides](https://neo4j.com/developer/dotnet/#dotnet-driver)

but getting an errormessage and cant find any informations how to fix that:

'IDriver' does not contain a definition for 'Session' and no accessible extension method 'Session'

for the following code:

using (var session = \_driver.Session())

Are there any news for neo4j 4.0.0 that not working with the old (1.7) documentation?  
Same on Stackoverflow: [.net - Why does 'IDriver' not contain a definition for 'Session' when using Neo4j in C#? - Stack Overflow](https://stackoverflow.com/questions/59581789/why-does-idriver-not-contain-a-definition-for-session-when-using-neo4j-in-c)

Thank you and best regrads

---

<div class="post-metadata">

**Author:** ![CodeCase](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codecase/32/5260_2.png) [@CodeCase](https://community.neo4j.com/u/CodeCase)\
**Post date:** [February 5, 2020, 5:11pm UTC](https://community.neo4j.com/t/cant-get-helloworld-running-in-net-app/13738/2 "2020-02-05T17:11:48Z")

</div>

Works with:

```auto

        IDriver driver = GraphDatabase.Driver("neo4j://localhost:7687", AuthTokens.Basic("username", "pasSW0rd"));
        IAsyncSession session = driver.AsyncSession(o => o.WithDatabase("neo4j"));
        try
        {
            IResultCursor cursor = await session.RunAsync("CREATE (n) RETURN n");
            await cursor.ConsumeAsync();
        }
        finally
        {
            await session.CloseAsync();
        }

        await driver.CloseAsync();

```
