Tagged Questions
2
votes
0answers
22 views
C# / SQL Server : “Error Locating Server/Instance Specified” in just one application
I've been trying to find the exact issue to this for hours but so far I just can't figure out what might be wrong.
I have a WPF application trying to connect to a remote SQL Server using this ...
3
votes
2answers
3k views
Creating Dabatase Model on ASP.NET MVC with MYSQL
I'm using ASP.NET C# with database MYSQL, I follow this step on creating a database model with Entity Data Model Wizard ...
0
votes
0answers
15 views
Using VS2010 Data Connection Tool for Users
since the code for this small ui is free, I'm trying to use it for a connection test tool.
Its working not bad, but unfortunately, it just builds the standard connections.
I add all, which can be ...
0
votes
2answers
31 views
ado.net can't read from my database
This is a really noob-problem but im tearing my hair soon.
I'm trying to read from my local database but it gives me nothing.
Here is the code:
protected void readBtn2_Click(object sender, EventArgs ...
0
votes
0answers
29 views
function runs on scanner emulator, but not scanner itself (C#, SQL)
I'm developing an add-in for a scanner. I've run into problems with a specific function that I'm writing. The problem seems to be with my connection string. The code runs fine on the scanner ...
4
votes
2answers
1k views
Getting the connection string in a c# service
I'm using VS 2008.
I have a service that needs to be deployed. The service won't be used from a .NET client (like a website or Windows client). It needs a database connection.
I initially had a ...
4
votes
5answers
960 views
C# - Opening Settings.settings gets error about invalid xml in app.config (when configSource added)
Following numerous examples, I added the following to my app.config file:
Everything seems to work when I run the application but when I try to open the Settings.settings file, I get the error:
...
0
votes
1answer
30 views
What would be a valid OleDbConnection ConnectionString for an uploaded file?
I am certain I have missed something obvious.
A simple task is before me: 'Upload an Excel (2003) file via ASP.NET on a Forms page and push the contents of that file to a DataTable in preparation ...
1
vote
3answers
42 views
Getting error “A network-related or instance-specific error occurred while establishing a connection to SQL Server…”
Normally, I'd be able to figure this out. But, what I have going on is I have an MVC4 app that, in its current state, will NOT connect to any kind of data source. I believe that MVC, out of the box, ...
1
vote
0answers
48 views
Change default database with ASP.NET Web Application
I have created a C# ASP.NET web site in Visual Studio 2010. Pretty much all of the other kinks have been worked out, but the site is to have a database that stores certain user data. I have this DB ...
-2
votes
1answer
29 views
Creating Oracle Database and connecting to it throw c# application [closed]
can anyone tell me step by step, how to create database (any, which could handle triggers, procedures and so on) and a simple connection string in c#, which describes the username, password and ...
0
votes
1answer
209 views
Connection String argument cannot be null or empty
I'm working with MojoPortal attempting to add some additional modules and services I need for an application. This particular part of the system is fairly isolated from MojoPortal. I've created a ...
-1
votes
2answers
62 views
connectionstring for sql server 2008 r2 [duplicate]
I'm trying to connect to a SQL Server 2008 R2 with a windows form aplication with the app.config file in XML=1.0 using this connection string
Server=10.217.192.130;Database=CanDB;User ...
-2
votes
1answer
75 views
SQL Server 2008 R2 connection string troubles [closed]
I'm trying to connect to a SQL Server 2008 R2 with a windows form aplication with the app.config file in XML=1.0 using this connection string
Server=10.217.192.130;Database=CanDB;User ...
0
votes
0answers
40 views
“The underlying provider failed on Open” error with one specific query
i am trying to debug my code i am getting error here in this line,
var fsr = dbContext.FinalScoreReports.Where(c => c.ConsultantID == cId && c.TargetProjectID == ...
0
votes
1answer
29 views
How to Pass Or Call Entity Frame Work Connection String My Code Attached ?? Asp.net
I am getting error "The underlying provider failed on Open." actually i haven't call entity frame work connection string my code is,
InspectionEntities dbContext = new InspectionEntities();
how to ...
-1
votes
2answers
78 views
How to create connection string dynamically in C# [closed]
How to create connection string dynamically in C#, instead of creating it using string concatenation?
2
votes
1answer
81 views
how to bind data dynamically without pre-implementing the connection string
I have my sql data source but i want my program to dynamically bind it to the data source.
I want my dataAdapter to bind to the data file by looking it through the project folder(source folder of the ...
1
vote
2answers
7k views
Provider needed to be specify on a connectionstring?
I have a very funny problem on my application, I get an error as follow:
System.ArgumentException: An OLE DB Provider was not specified in the ConnectionString. An example would be, ...
2
votes
7answers
9k views
OLEDBConnection.Open() generates 'Unspecified error'
I have an application that uploads an Excel .xls file to the file system, opens the file with an oledbconnection object using the .open() method on the object instance and then stores the data in a ...
0
votes
0answers
54 views
How To Set Entity Framework's ConnectionString's Settings for other computers
I'm developing a program for a customer who has a mysql server. I dont have the mysql server information because of security then I have been developing it on mysql localhost..
So I sent the program ...
-3
votes
1answer
30 views
Invalid value for key 'attachdbfilename' in connection string [closed]
public clscon()
{
con.ConnectionString = ConfigurationManager.ConnectionStrings["eConnectionString"].ConnectionString;
}
The Database cannot be opened because it is a version 706.The server ...
2
votes
4answers
1k views
C# - Get file path from connection string
Is there an existing method in C# to extract the file path from a string that represents a ConnectionString to a SqlCE .sdf file? I want to check if the file exists at initialization and back it up if ...
0
votes
2answers
66 views
what am I missing here? DataGrid and ListView not getting populated in WPF application
I'm following a book on C# object oriented programming and this application isn't working. The DataGrid and ListView aren't populating.
What important point am I missing?
Only thing I can think of is ...
-1
votes
1answer
40 views
Get filepath to LocalDB file from connection string in .NET [duplicate]
How to get the filepath to the .mdf file of a LocalDB database from its connection string in .NET?
Example string:
Data Source=(LocalDb)\v11.0;Initial Catalog=MyDb;Integrated ...
1
vote
7answers
298 views
Web App to SQL Server Not Connecting ( Error Locating Server/Instance Specified)
I know this is an often asked question, but I'm still receiving this error and I have tried:
Using localhost, the IP address and the instance name in the
connection string
Changing the SQL Server ...
-2
votes
3answers
25 views
“Keyword not supported:'pdata source”
What does it mean by "Keyword not supported:'pdata source".As am struggling to find out what exactly is the problem?
InitializeComponent();
connString = "PData ...
1
vote
1answer
230 views
Connect to a database from Web.Config <appSettings> section C# / MVC
I'm currently connected to a database using
Web.Config
<connectionStrings>
<add name="MVCDatabase" connectionString="Data ...
1
vote
2answers
73 views
Get Connection String from Method returning Connection error Object Refrence not Set to the instance of object ??? Asp.net
i am trying to get connection string from method resulting error object reference not set to the instance object my method is,
this method return connection,
namespace InspectionServices.Services
{
...
0
votes
3answers
67 views
failure deploying LocalDB app to Arvixe
I'm trying to deploy a WCF Data Service to Arvixe. The data service is built on Entity Framework 5 and Data Services 5.4. It creates a fair number of LocalDB databases (named according to runtime ...