connection-string

Connection String for MySQL, VS2010 Pro, ASP .NET MVC3

旧时模样 提交于 2019-12-07 05:09:27
问题 Background I'm following this tutorial, but instead of using SQL Compact, I'd like to use MySQL. I'm having trouble with the connection string needed for this connection. I've installed MySQL Connector v6.4.4. I'm now trying to compose the connection string. Where I'm stuck I'm trying to create a Controller by right-clicking Controllers > Add Controller. I select the Movie Model and the MovieDBContext Context. I receive an error saying "Unable to retrieve metadata". Connection strings

ASP.Net configuration file -> Connection strings for multiple developers and deployment servers

 ̄綄美尐妖づ 提交于 2019-12-07 02:25:45
问题 I have a team of three developers, two of whom use a standard local test database, one of whom uses his own database and there is also a server environment with a production database and a testing database. This amounts to multiple connection strings required. The web.config file periodically gets updated and keeps having to be changed by each developer when a source control update is performed, as well as the fact that sometimes a developer accidentally checks in his personal web.config file

What is the connection string to use Azure Storage Emulator with a Webjob?

风流意气都作罢 提交于 2019-12-06 23:04:36
问题 I have a simple WebJob which I wish to test with the Azure Storage Emulator. I currently have set the AzureJobsRuntime and AzureJobsData set to use development storage as follows: <connectionStrings> <add name="AzureJobsRuntime" connectionString="UseDevelopmentStorage=true;" /> <add name="AzureJobsData" connectionString="UseDevelopmentStorage=true;" /> </connectionStrings> The webjob is very simple: public static void Main(string[] args) { JobHost host = new JobHost(); host.RunAndBlock(); }

Azure Website Exception: Format of the initialization string does not conform to specification starting at index 0

≡放荡痞女 提交于 2019-12-06 22:16:31
问题 I have an Azure Website that I use to host my MVC + Entity Framework project. When I run the site locally using the same connection to my SQL Azure database, everything works perfectly, but when I deploy the site to my Azure Website, I get the following error: Format of the initialization string does not conform to specification starting at index 0. I followed the steps in several other posts and added the connection string to the thrown error and this is what the connection string comes out

C# WinForm application - How to save connection string (SQLite)

有些话、适合烂在心里 提交于 2019-12-06 21:50:38
I have a winform app in .NET 4.0 with database (SQLite). I need to add an option for user to be able to change the path to the file containing the database - in short, to change the connection string. I used app.config to save connection string like this: <connectionStrings> <add name="connectionString" connectionString="Data Source=D:\myDatabase.db; FailIfMissing=True; Version=3"/> </connectionStrings> Is there a way to allow user to modify app.config file (it is located in Program Files folder)? I do not want to run the app as an administrator, is there a way to give administrator rights to

how to connect to access 2007 with c#

倖福魔咒の 提交于 2019-12-06 21:32:22
hey, i am new at connecting to dataBases and for some reason each time i use those following lines my program collapse: string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;DataSource=|DataDirectory|\Company.accdb" OleDbConnection con = new OleDbConnection(connectionString); inside my debug folder i got Company.accdb access file edit: i am getting 'Microsoft.Ace.OLEDB12.0' provider is not registered on the local machine any idea how to solve it? thanks in advance for your help Two things - This connection string rely on ACE OLEDB provider (typically comes with Office 2007 - your

Connection string for SQL Server Express on remote Computer login failed error

拥有回忆 提交于 2019-12-06 20:48:25
I recently asked the question at this address: Remote SQL Server connection string That thread has helped us arrive at this connection string: SqlConnection connection= new SqlConnection("Server=2.221.1.145;Database=Database;User Id=Andy-PC\\Andy;Password=mypass"); This throws the error: Login failed for user 'Andy-PC\Andy' This user owns the database and i guess should have access to it....however I remember when trying this style of authentication locally it did not work - which is why I originally started with Integrated Security=true. Is there something specific I need to do to add this

Error occurred during the pre-login handshake

梦想与她 提交于 2019-12-06 18:52:25
问题 Please read in the entirety before marking this as duplicate. In a project that I am debugging I receive a SqlException saying the following: Additional information: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.) This occurred during a debugging session where the previous session executed only seconds before without problem. Since the initial exception, I

Localdb in Visual Studio 2015 error 52 (SQL Server)

冷暖自知 提交于 2019-12-06 17:40:37
I programmed an application with an attached .mdf database file that works fine on my computer. But on another computer (client PC) I get this error message : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database

Is there a standard dialog for constructing an ADO.Net connection string (that is redistributable)?

杀马特。学长 韩版系。学妹 提交于 2019-12-06 16:46:21
问题 I want to use a standard dialog to solicit user input of an ADO.net connection string. It is trivial to do for the oledb connection string as described here: MSDN Article on MSDASC.DataLinks().Prompt I've also found examples that use Microsoft.Data.ConnectionUI.dll and MicrosoftData.ConnectionUI.Dialog.dll from VS (HOWTO: Using the Choose Data Source dialog of Visual Studio 2005 from your own code). Unfortunately these DLLs are not licensed for redistribution. Is there a standard dialog for