When I try to put |DataDirectory| into a Connection String it would keep directing to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE for some reason. Any idea what could have altered the directory path, or where could I find the default setting for DataDirectory? App.config doesn't have a "connectionStrings" in it's code either.
My |DataDirectory| points to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE
980 Views Asked by Dog At
1
There are 1 best solutions below
Related Questions in SQL
- SQL schema for a fill-in-the-blank exercise
- Hibernate: JOIN inheritance question - why the need for two left joins
- What's supposed to be the problem in this query?
- Compare fields in two tables
- How to change woocomerce or full wordpress currency with value from USD to AUD
- Dynamic query creation with Array like implementation
- SQL query to get student enrolled in this month in a course - Moodle
- SQL LAG() function returning 0 for every row despite available previous rows
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- how to use system's environnement variables in sql script
- PHP fetchAll on JOIN
- Multitable joining in Sql
- How to display name starting from 'z' by using BETWEEN cmd only?
Related Questions in WPF
- Sorting a List by its property renames all the objects in the List
- Can't open new instance of another window in my app, in WPF .NET 8
- Binding forecolour and ToolTip to a DataGrid
- how to create Infinite Upgrades in a clicker game
- Try Catch exception is not catching the unhandled exception
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Masking input in TextBox
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- reading configuration file (mytest.exe.config)
- WPF Windows Initializing is locking the separated thread in .Net 8
- How to bind to the DataContext ViewModel of another view?
- mouse coordinates in image go below 0 and above width
- WPF pop up is behaving differently in English language PC and Japanese language PC
- Multi level project reference using dll
- Unable to unzip archive .NET framework
Related Questions in DATADIRECTORY
- psql cannot connect to the server after changing data_directory
- Why does the PostgreSQL 16.0 EDB installer fail when using its own generated data folder for installation?
- MariaDB10.5 datadir change gives error on Redhat Ootpa 8.8
- Unable to start MYSQL service after data directory change
- Changing the docker data directory to a non root location changes the disks name
- Cordova [Android platform] migration from API 29 to API 30
- Is it possible to have Postgres (13 on CentOS 8) data directory on a shared drive with oracle VBOX (6.1 on Windows 10)?
- How can I extract features from audio to dataset?
- How can I read audio files directory in Python?
- In VStudio 2019, VB, .NET-5: for a ClickOnce installed app, how do I locate the application's data directory at runtime?
- Can't connect to localdb when using [DataDirectory] in Windows Forms C# .NET Core
- How to use |DataDirectory| substitution string in appsettings.json with asp.net core?
- Cannot start a clean installation of MongoDB with a clean data directory UserNotFound
- How do I find the data directory for MySQL Server 5.7 on Windows 10?
- Preserve data file prefix when using dist_pkgdata_DATA?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am not sure if you can change it in the
App.config, but you can change theDataDirectorypath in your c# code. In my case, we do this in thebootstrapper, depending on Debug/Release Configuration. You can set theDataDirectorywith this code: