• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 637
  • Last Modified:

C# Accessing a network path

I have a database network path stored in an app config file.  But I'm having an  issue once this path is put to a variable.  If not in a variable, it works fine.

This works:

But, once in a variable, this does not work:

I've tried adding the extra slashes in the app config file but that doesn't work either.
1 Solution
If you have extra slashes anyway then there is no need of @databasePath  just use databasePath  

carsRSTAuthor Commented:
Coding error on my end as well

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now