connection-string

The provider did not return a ProviderManifest instance

故事扮演 提交于 2019-12-11 12:33:21
问题 when I want to configure my Datasource (EntityDataSource1) and assign the connectionString that is generated automatically by entity data model to it. I get the error: "The metadata specified in the connection string could not be loaded. Consider rebuilding the web project to build assemblies that may contain metadata. The following error(s) occurred: The provider did not return a ProviderManifest instance". I read so many suggestions like http://blogs.teamb.com/craigstuntz/2010/08/13/38628/

mySQL connection string through SSH tunnel without password

馋奶兔 提交于 2019-12-11 12:18:04
问题 I've been given SSH access to a server running mySQL. My access is authenticated through my public key, with no further password required. Using Putty, I am able to SSH to the server using my private key, log directly into the mySQL database via the command-line tools and run SQL directly. I'm looking to emulate this through a C# service (forwarding port 3306 through the SSH connection), unfortunately all the connection strings listed at http://www.connectionstrings.com/mysql/ require a

How to get connection string from another project in LINQ to SQL?

天涯浪子 提交于 2019-12-11 12:16:01
问题 I've 3 different projects in one solution. I placed my connection string in first project like this <connectionString name="My Connection String"> <parameters> <parameter name="Integrated Security" value="True" /> <parameter name="server" value=".\SQLEXPRESS" isSensitive="true" /> <parameter name="database" value="MyDatabase" isSensitive="false" /> </parameters> </connectionString> Now in another project I make LINQ to SQL class and it generated app.config file and make it's connection string

Ninject UOW pattern, new ConnectionString after user is authenticated

人走茶凉 提交于 2019-12-11 12:15:42
问题 I wonder if any one can point me in the right direction? I am using the UOW repository pattern and have my dependencies injected via Ninject. I have a UnitOfWorkMapping class which inherits from NinjectModule, which I use to bind my IUnitOfWork to a concrete implementation of Dbcontext, see below public class UnitOfWorkMapping : NinjectModule { public override void Load() { Bind<IUnitOfWork>() .To<WebsiteDbContext>() .InRequestScope() .WithConstructorArgument( "connectionString",

Problem with OleDbConnection string - folder name contain white space

别等时光非礼了梦想. 提交于 2019-12-11 11:14:08
问题 I have problem with OleDbConnection string format. I use OleDb classes on access to Excel file. Here is method wich load excel table to dataset. public DataSet LoadExcelFileToDataSet(string file, string sheetName) { string connString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + file + ";" + "Extended Properties=Excel 8.0;"; var oledbConn = new OleDbConnection(connString); try { // Open connection oledbConn.Open(); // Create OleDbCommand object and select data from worksheet Sheet1

LocalDB connection with Integrated security=False

谁说我不能喝 提交于 2019-12-11 10:39:31
问题 I was looking everywhere and still have not found clear answer to this simple question: Is it possible to use SQL authentication with LocalDB, i.e. is it possible to use connection string containing Integrated Security=False ? 回答1: Yes, last I tried it was possible. Just follow the steps from this MDSN article. Keep in mind that it will still be user instance, running under the account that started it, and will be shut down shall the account log out. Also no remote access. 来源: https:/

Why does only one of these connection strings work when they are actually identical?

心已入冬 提交于 2019-12-11 10:30:30
问题 I have 2 identical connection strings. One is for ASP.NET membership etc and the other is for everything else. I can log in to my application, so the following connection string obviously works. <add name="ApplicationServices" connectionString="Data Source=SBS;Initial Catalog=CustomerIntranet;Integrated Security=True;" providerName="System.Data.SqlClient" /> As soon as I try to access a secure page (role based access) I get the dreaded: System.Data.SqlClient.SqlException: A network-related or

Login failed for user a\b

空扰寡人 提交于 2019-12-11 10:07:13
问题 I created a SQL connection as below: SqlConnection scSqlConnection = new SqlConnection("Server= " + ".\\" + strInstanceName + ";Initial Catalog=" + "master" + ";Integrated Security=True;"); and when I try to open this connection in my application there's no problem so I expect to be able to connect via SSMS in windowsAuthentication mode, but when I try to connect via SQL server management with Server name = .\strInstanceName in windowsAuthentication mode, I get the following error : login

Reading excel data when the file is open

我是研究僧i 提交于 2019-12-11 09:42:50
问题 Few days back I asked a question but could not find enough answers. I analyzed the problem a bit more and decided to create a new thread. If I should have not, let me know or close the question. I have an OPEN excel file with a column in Date format with some values like 6/22/2006, 6/22/2006. I am trying to read the excel using OleDbDataReader. The code is like this: string sql = string.Format("SELECT * FROM [{0}]", excelSheetName); internal OleDbCommand command = new OleDbCommand(); command

Understanding the different ways to connect to CRM 2011

怎甘沉沦 提交于 2019-12-11 09:21:54
问题 I'm a beginner CRM developer and I'm quite confused about the connection methods to CRM. What's the difference between creating a SOAP service reference to connect to CRM 2011 from a windows form application VS using connection string VS creating a web service? Are they the same and I can use them interchangeably ? Or it depends on the task I want to do? Thanks 回答1: Out of the 3 links that you have provided, one contains the best approach. this - CRM SDK says to use this approach when you