# Can't find Session object in .NET 4.0 driver

**URL:** <https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587>\
**Category:** .NET\
**Created:** [February 11, 2020, 2:46pm UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587 "2020-02-11T14:46:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhhanssen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/hhhanssen/32/6486_2.png) [@hhhanssen](https://community.neo4j.com/u/hhhanssen)\
**Post date:** [February 11, 2020, 2:46pm UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587/1 "2020-02-11T14:46:29Z")

</div>

Hi  
I just upgraded the .NET driver from 1.7.2 to 4.0.0 in Visual Studio and got all sorts of building errors.  
Now I can't find any Session object even though it's in several documented samples on the neo4j site.  
Am I missing something or is only Async supported?

BR  
HHH

---

<div class="post-metadata">

**Author:** ![charlotte.skardon](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/charlotte.skardon/32/35185_2.png) [@charlotte.skardon](https://community.neo4j.com/u/charlotte.skardon)\
**Post date:** [February 11, 2020, 7:52pm UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587/2 "2020-02-11T19:52:01Z")

</div>

Hey HHH,

The `Neo4j.Driver` package _is_ only `async` - _but!_ there is also a `Neo4j.Driver.Simple` package that is closer to what you're used to.

All the best

Chris

---

<div class="post-metadata">

**Author:** ![hhhanssen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/hhhanssen/32/6486_2.png) [@hhhanssen](https://community.neo4j.com/u/hhhanssen)\
**Post date:** [February 13, 2020, 11:49am UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587/4 "2020-02-13T11:49:20Z")

</div>

Thx for the feedback.

Is there a .NET code sample for basic async usage in Neo4j.Driver?  
I can only find outdated stuff like this:

> **[Using Neo4j from .NET - Developer Guides](https://neo4j.com/developer/dotnet/)**
>
> If you are a .NET developer, this guide provides an overview of options for connecting to Neo4j. While this guide is not comprehensive it will introduce the different drivers and link to the relevant resources.

BR  
HHH

---

<div class="post-metadata">

**Author:** ![charlotte.skardon](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/charlotte.skardon/32/35185_2.png) [@charlotte.skardon](https://community.neo4j.com/u/charlotte.skardon)\
**Post date:** [February 13, 2020, 12:34pm UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587/5 "2020-02-13T12:34:04Z")

</div>

Not that I'm aware of particularly - do you have an example in 'sync' that you would like to see in async?

I might be able to convert one for you?

---

<div class="post-metadata">

**Author:** ![hhhanssen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/hhhanssen/32/6486_2.png) [@hhhanssen](https://community.neo4j.com/u/hhhanssen)\
**Post date:** [February 14, 2020, 10:47am UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587/6 "2020-02-14T10:47:10Z")

</div>

Thx Chris, That's a generous offer. I'll may come back to that. 👍

In the doc you write " Each `IDriver` instance maintains a pool of connections inside, as a result, it is recommended to only use **one driver per application**."

Does that mean you recommend the application server share the same driver instance for all users and all requests? Typically instantiate a global driver in global.asax for .NET applications?

BR  
HHH

---

<div class="post-metadata">

**Author:** ![dynamicdeploy](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dynamicdeploy/32/9516_2.png) [@dynamicdeploy](https://community.neo4j.com/u/dynamicdeploy)\
**Post date:** [March 3, 2020, 1:56am UTC](https://community.neo4j.com/t/cant-find-session-object-in-net-4-0-driver/14587/7 "2020-03-03T01:56:26Z")

</div>

Your docs here have no reference to the Neo4J.Driver.Simple here. Defeats the purpose and wastes developer's precious time.

> **[Neo4j documentation - Neo4j Documentation](https://neo4j.com/docs/)**
